Skip to content

Commit 0e0f807

Browse files
authored
Merge branch 'master' into docker-fix-log-capture
2 parents 5c56e26 + fe76954 commit 0e0f807

File tree

337 files changed

+6030
-1971
lines changed

Some content is hidden

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

337 files changed

+6030
-1971
lines changed

.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: 148 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,150 @@
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
35+
36+
## [2.16.0] - 2024-09-05
37+
38+
### Added
39+
40+
- runtime-v2: option to update meta only on termination or
41+
suspend
42+
([#948](https://github.com/walmartlabs/concord/pull/948));
43+
- policy-engine: allow rewriting with multiple values in
44+
`dependencyRewrite` policies
45+
([#952](https://github.com/walmartlabs/concord/pull/952));
46+
- concord-server: allow non-standard runtimes
47+
([#954](https://github.com/walmartlabs/concord/pull/954));
48+
- oidc: support "from" when logging out
49+
([#958](https://github.com/walmartlabs/concord/pull/958)).
50+
51+
### Changed
52+
53+
- runtime-v1: update bpm library to fix saving variables
54+
before suspend
55+
([#955](https://github.com/walmartlabs/concord/pull/955));
56+
- concord-server: fix DB change set 1580200-a when
57+
`superuserAvailable` is set to `false`
58+
([#957](https://github.com/walmartlabs/concord/pull/957));
59+
- concord-server: skip pull\_request process start when
60+
useEventCommitId is enabled and event is from a different repo
61+
([#959](https://github.com/walmartlabs/concord/pull/959));
62+
- docker-images: update ansible galaxy community.docker version
63+
([#960](https://github.com/walmartlabs/concord/pull/960));
64+
- cli: fix duplicate step logs
65+
([#963](https://github.com/walmartlabs/concord/pull/963)).
66+
67+
68+
69+
## [2.15.0] - 2024-08-07
70+
71+
### Added
72+
73+
- agent: configure host/ip for maintenance-mode endpoint
74+
([#945](https://github.com/walmartlabs/concord/pull/945));
75+
- concord-task: new method to wait and check that processes
76+
have finished
77+
([#943](https://github.com/walmartlabs/concord/pull/943));
78+
- agent-operator: use maintenance mode before terminating
79+
agent
80+
([#946](https://github.com/walmartlabs/concord/pull/946));
81+
82+
### Changed
83+
84+
- pfed-sso: fix to not return null for not permanently
85+
disabled users
86+
([#947](https://github.com/walmartlabs/concord/pull/947)).
87+
- agent-operator: consider pods already marked for deletion
88+
during downscaling
89+
([#951](https://github.com/walmartlabs/concord/pull/951)).
90+
91+
92+
93+
## [2.14.0] - 2024-07-13
94+
95+
### Added
96+
97+
- concord-server: calculate total process RUNNING time
98+
([#933](https://github.com/walmartlabs/concord/pull/933));
99+
- concord-server: expose websocket channels
100+
([#935](https://github.com/walmartlabs/concord/pull/935));
101+
- resource-tasks: add versions of writeAs* methods that
102+
accept destination
103+
([#937](https://github.com/walmartlabs/concord/pull/937));
104+
- runtime-v1: option to update meta only on termination
105+
or suspend
106+
([#938](https://github.com/walmartlabs/concord/pull/938));
107+
- project: add JDK 21 profiles
108+
([#941](https://github.com/walmartlabs/concord/pull/941)).
109+
110+
### Changed
111+
112+
- project: update Groovy to 2.5.23
113+
([#940](https://github.com/walmartlabs/concord/pull/940));
114+
- dependency-manager: resolve only unique dependencies
115+
([#936](https://github.com/walmartlabs/concord/pull/936));
116+
- concord-server: move com.walmartlabs.concord.server.ansible.*
117+
into ansible plugin
118+
([#502](https://github.com/walmartlabs/concord/pull/502));
119+
- concord-server: migrate to PROCESS_META and
120+
PROCESS_TRIGGER_INFO tables
121+
([#669](https://github.com/walmartlabs/concord/pull/669));
122+
- runtime-v2: use draft-07 of JSON Schema for better tool
123+
compatibility
124+
([#939](https://github.com/walmartlabs/concord/pull/939));
125+
- project: update dependency versions in the parent pom
126+
([#942](https://github.com/walmartlabs/concord/pull/942)).
127+
128+
129+
130+
## [2.13.0] - 2024-06-19
131+
132+
### Added
133+
134+
- runtime-v2: "suspend" status support for log segments
135+
([#927](https://github.com/walmartlabs/concord/pull/927));
136+
- mocks: examples, support for storing the input, add
137+
`throwError`
138+
([#928](https://github.com/walmartlabs/concord/pull/928));
139+
- runtime-v2: add more events to execution listeners
140+
([#931](https://github.com/walmartlabs/concord/pull/931)).
141+
142+
### Changed
143+
144+
- runtime-v2: rename MultiException and limit stack trace depth
145+
([#930](https://github.com/walmartlabs/concord/pull/930)).
146+
147+
2148

3149
## [2.12.0] - 2024-06-12
4150

@@ -2881,7 +3027,7 @@ called in an expression.
28813027

28823028

28833029

2884-
## [1.37.1] - 2010-01-06
3030+
## [1.37.1] - 2020-01-06
28853031

28863032
### Changed
28873033

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: 7 additions & 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.12.1-SNAPSHOT</version>
9+
<version>2.17.1-SNAPSHOT</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212

@@ -103,6 +103,12 @@
103103
<artifactId>commons-collections</artifactId>
104104
</dependency>
105105

106+
<dependency>
107+
<groupId>org.immutables</groupId>
108+
<artifactId>value</artifactId>
109+
<scope>compile</scope>
110+
</dependency>
111+
106112
<!-- testing -->
107113
<dependency>
108114
<groupId>org.junit.jupiter</groupId>

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
*/
2222

2323

24+
import com.walmartlabs.concord.agentoperator.agent.AgentClientFactory;
2425
import com.walmartlabs.concord.agentoperator.crd.AgentPool;
2526
import com.walmartlabs.concord.agentoperator.crd.AgentPoolList;
2627
import com.walmartlabs.concord.agentoperator.scheduler.AutoScalerFactory;
@@ -52,11 +53,13 @@ public static void main(String[] args) {
5253

5354
String baseUrl = getEnv("CONCORD_BASE_URL", "http://192.168.99.1:8001"); // use minikube/vbox host's default address
5455
String apiToken = getEnv("CONCORD_API_TOKEN", null);
56+
boolean useMaintenanceMode = Boolean.parseBoolean(getEnv("USE_AGENT_MAINTENANCE_MODE", "false"));
5557

5658
// TODO use secrets for the token?
5759
Scheduler.Configuration cfg = new Scheduler.Configuration(baseUrl, apiToken);
5860
AutoScalerFactory autoScalerFactory = new AutoScalerFactory(cfg, client);
59-
Scheduler scheduler = new Scheduler(autoScalerFactory, client);
61+
AgentClientFactory agentClientFactory = new AgentClientFactory(useMaintenanceMode);
62+
Scheduler scheduler = new Scheduler(autoScalerFactory, client, agentClientFactory);
6063
scheduler.start();
6164

6265
// TODO retries

0 commit comments

Comments
 (0)