Skip to content

Commit 7c39ed8

Browse files
authored
Merge branch 'master' into ib/pr-labels
2 parents 5cfe4aa + 2c4dc6a commit 7c39ed8

File tree

138 files changed

+2318
-1061
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+2318
-1061
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,9 @@ jobs:
7373
- name: Build and test with Maven
7474
env:
7575
SKIP_DOCKER_TESTS: "true"
76-
# re-enable old agent tests once we are several versions ahead
77-
SKIP_OLD_AGENT_TESTS: "true"
7876
run: |
7977
if [[ "${{ needs.check-labels.outputs.skip_tests }}" == "true" ]]; then
8078
./mvnw -s .github/settings.xml -B clean install -Pgha -Pdocker -P${{ matrix.profile }} -DskipTests
8179
else
8280
./mvnw -s .github/settings.xml -B clean install -Pgha -Pdocker -Pit -P${{ matrix.profile }}
8381
fi
84-

.mvn/wrapper/MavenWrapperDownloader.java

Lines changed: 0 additions & 117 deletions
This file was deleted.

.mvn/wrapper/maven-wrapper.jar

-49.5 KB
Binary file not shown.

.mvn/wrapper/maven-wrapper.properties

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,19 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
wrapperVersion=3.3.2
18+
distributionType=only-script
119
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip
2-
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar

CHANGELOG.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,37 @@
1-
# Change log
1+
# Change Log
2+
3+
## [2.17.0] - 2024-09-18
4+
5+
### Added
6+
7+
- runtime-v2: option for event batching for runner events
8+
([#949](https://github.com/walmartlabs/concord/pull/949));
9+
- runtime-v1: option for event batching for runner events
10+
([#950](https://github.com/walmartlabs/concord/pull/950));
11+
- console2, server: simple user info page
12+
([#952](https://github.com/walmartlabs/concord/pull/952)).
13+
14+
### Changed
15+
16+
- project: update Maven wrapper
17+
([#967](https://github.com/walmartlabs/concord/pull/967));
18+
- oidc: redirect back to auth in failed callbacks
19+
([#969](https://github.com/walmartlabs/concord/pull/969));
20+
- project: miscellaneous fixes for build-time warnings,
21+
add missing @deprecated annotations, remove redundant
22+
dependencies
23+
([#970](https://github.com/walmartlabs/concord/pull/970));
24+
- agent-operator: create agent pod client only for
25+
Running pods
26+
([#973](https://github.com/walmartlabs/concord/pull/973));
27+
- concord-server: remove GithubTriggerProcessor interface
28+
([#974](https://github.com/walmartlabs/concord/pull/974));
29+
- docker: configure safe.directory for git 2.35+
30+
([#976](https://github.com/walmartlabs/concord/pull/976)).
31+
32+
33+
34+
### Changed
235

336
## [2.16.0] - 2024-09-05
437

NOTES.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,31 @@
55
Prefer explicit binding using `com.google.inject.Module` over `@Named` annotations.
66
Use `@Named` for top-level modules and server plugins.
77

8-
Some classes require explicit bindings using `Multibinder.newSetBinder`:
9-
- com.walmartlabs.concord.server.sdk.ScheduledTask
8+
Some classes require explicit binding using `Multibinder.newSetBinder`:
9+
- ApiDescriptor
10+
- AuditLogListener
11+
- AuthenticationHandler
12+
- BackgroundTask
13+
- Component
14+
- ContextHandlerConfigurator
15+
- CustomEnqueueProcessor
16+
- ExceptionMapper
17+
- Filter
18+
- FilterChainConfigurator
19+
- FilterHolder
20+
- GaugeProvider
21+
- HttpServlet
22+
- ModeProcessor
23+
- PolicyApplier
24+
- ProcessEventListener
25+
- ProcessLogListener
26+
- ProcessStatusListener
27+
- ProcessWaitHandler
28+
- Realm
29+
- RepositoryRefreshListener
30+
- RequestErrorHandler
31+
- ScheduledTask
32+
- SecretStore
33+
- ServletContextListener
34+
- ServletHolder
35+
- UserInfoProvider

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,15 @@ See the [examples](examples) directory.
103103

104104
## How To Release New Versions
105105

106-
- perform the regular Maven release:
106+
- perform a regular Maven release:
107107
```
108108
$ ./mvnw release:prepare release:perform
109109
```
110-
- push the tags:
110+
- push the new tag:
111111
```
112-
$ git push --tags
112+
$ git push origin RELEASE_TAG
113113
```
114-
- sync to Central;
114+
- sync to [Central](https://central.sonatype.com/);
115115
- build and push the Docker images:
116116
```
117117
$ git checkout RELEASE_TAG

agent-operator/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>com.walmartlabs.concord</groupId>
88
<artifactId>parent</artifactId>
9-
<version>2.16.1-SNAPSHOT</version>
9+
<version>2.17.1-SNAPSHOT</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212

agent-operator/src/main/java/com/walmartlabs/concord/agentoperator/agent/AgentClientFactory.java

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
* Licensed under the Apache License, Version 2.0 (the "License");
1010
* you may not use this file except in compliance with the License.
1111
* You may obtain a copy of the License at
12-
*
12+
*
1313
* http://www.apache.org/licenses/LICENSE-2.0
14-
*
14+
*
1515
* Unless required by applicable law or agreed to in writing, software
1616
* distributed under the License is distributed on an "AS IS" BASIS,
1717
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -48,10 +48,18 @@ public AgentClientFactory(boolean useMaintenanceMode) {
4848
}
4949

5050
public AgentClient create(Pod pod) {
51-
if (useMaintenanceMode && pod.getStatus() != null && pod.getStatus().getPodIP() != null) {
51+
if (useMaintenanceMode && isRunning(pod) && hasIP(pod)) {
5252
return new DefaultAgentClient(httpClient, pod.getStatus().getPodIP());
5353
} else {
5454
return new NopAgentClient();
5555
}
5656
}
57+
58+
private static boolean isRunning(Pod pod) {
59+
return pod.getStatus() != null && "Running".equals(pod.getStatus().getPhase());
60+
}
61+
62+
private static boolean hasIP(Pod pod) {
63+
return pod.getStatus() != null && pod.getStatus().getPodIP() != null;
64+
}
5765
}

agent/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>com.walmartlabs.concord</groupId>
88
<artifactId>parent</artifactId>
9-
<version>2.16.1-SNAPSHOT</version>
9+
<version>2.17.1-SNAPSHOT</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212

0 commit comments

Comments
 (0)