Commit 765c86c
authored
CLOUDP-305848 & CLOUDP-338152 - release on master merges axuillary images (#626)
# Summary
- replacing ambiguous flags with clearer version selection, removing
legacy/manual release variants, and ensuring proper argument passing
throughout the pipeline
**Pipeline and Release Process Improvements:**
* Replaces the `release_agent` task/variant with a new
`release_on_merge` task/variant that runs automatically on every merge,
detecting changes to `release.json` and releasing images based on evg
anchors. Manual/manual-patch-only variants for agent and OM 6.0 images
are removed.
* Updates the agent image build logic to use an explicit `agent_version`
parameter (`all`, `current`, or a specific version), removing the
previous use of `--all-agents` and `--current-agents` flags. Tools
version is now required for specific agent builds.
```mermaid
flowchart TD
A[Merge to master] --> B[release_on_merge task]
B --> C[Load config<br/>release.json + .evergreen.yml]
C --> D[Release via pipeline.py cloud_manager agent]
C --> E{For each OM version<br/>6.0, 7.0, 8.0}
E --> F[Release via pipeline.py ops-manager image]
E --> G[Release via pipeline.py matching agent]
D & F & G --> H[atomic_pipeline.py skip_if_exists handles duplicates]
```
related pct pr: 10gen/mms#149833
## Proof of Work
- manual run:
[Patch](https://spruce.mongodb.com/task/mongodb_kubernetes_release_on_merge_release_on_merge_patch_0b18efc62ffc05d9eb7047d206f43b185a2913b3_69369ba4b3de00000781dcff_25_12_08_09_34_30/logs?execution=0)
- relevant logs
```
[2025/12/05 16:18:51.394] 2025-12-05 15:18:51,394 - INFO - Found OM 60: 6.0.27
[2025/12/05 16:18:51.394] 2025-12-05 15:18:51,394 - INFO - Found OM 70: 7.0.19
[2025/12/05 16:18:51.394] 2025-12-05 15:18:51,394 - INFO - Found OM 80: 8.0.16
[2025/12/05 16:18:51.394] 2025-12-05 15:18:51,394 - INFO - === Releasing cloud_manager agent: 13.43.0.9995-1 ===
...
...
All specified image tags already exist. Skipping build.
```
- new tool dry-run
```
[2025/12/08 10:39:51.814] ============================================================
[2025/12/08 10:39:51.814] RELEASE SUMMARY:
[2025/12/08 10:39:51.814] ============================================================
[2025/12/08 10:39:51.814] Agents:
[2025/12/08 10:39:51.814] ✓ 13.43.0.9995-1 (cloud_manager)
[2025/12/08 10:39:51.814] ✓ 12.0.35.7911-1 (OM 6.0.27)
[2025/12/08 10:39:51.814] ✓ 107.0.19.8805-1 (OM 7.0.19)
[2025/12/08 10:39:51.814] ✓ 108.0.16.8895-1 (OM 8.0.16)
[2025/12/08 10:39:51.814] Ops Manager:
[2025/12/08 10:39:51.814] ✓ 6.0.27
[2025/12/08 10:39:51.814] ✓ 7.0.19
[2025/12/08 10:39:51.814] ✓ 8.0.16
[2025/12/08 10:39:51.814] Total: 7 releases
[2025/12/08 10:39:51.814] ============================================================
```
## Checklist
- [x] Have you linked a jira ticket and/or is the ticket in the title?
- [x] Have you checked whether your jira ticket required DOCSP changes?
- [x] Have you added changelog file?
- use `skip-changelog` label if not needed
- refer to [Changelog files and Release
Notes](https://github.com/mongodb/mongodb-kubernetes/blob/master/CONTRIBUTING.md#changelog-files-and-release-notes)
section in CONTRIBUTING.md for more details1 parent 3faf0fd commit 765c86c
File tree
10 files changed
+431
-432
lines changed- scripts/release
- agent
- build
- tests
10 files changed
+431
-432
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
496 | 496 | | |
497 | 497 | | |
498 | 498 | | |
| 499 | + | |
499 | 500 | | |
500 | 501 | | |
501 | 502 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
294 | 293 | | |
295 | 294 | | |
| 295 | + | |
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
303 | 305 | | |
304 | 306 | | |
305 | 307 | | |
| |||
343 | 345 | | |
344 | 346 | | |
345 | 347 | | |
| 348 | + | |
346 | 349 | | |
347 | | - | |
| 350 | + | |
348 | 351 | | |
349 | 352 | | |
350 | 353 | | |
| |||
356 | 359 | | |
357 | 360 | | |
358 | 361 | | |
| 362 | + | |
359 | 363 | | |
360 | | - | |
| 364 | + | |
361 | 365 | | |
362 | 366 | | |
363 | 367 | | |
| |||
463 | 467 | | |
464 | 468 | | |
465 | 469 | | |
466 | | - | |
| 470 | + | |
| 471 | + | |
467 | 472 | | |
468 | 473 | | |
469 | 474 | | |
| |||
749 | 754 | | |
750 | 755 | | |
751 | 756 | | |
752 | | - | |
| 757 | + | |
753 | 758 | | |
754 | 759 | | |
755 | 760 | | |
| |||
1893 | 1898 | | |
1894 | 1899 | | |
1895 | 1900 | | |
1896 | | - | |
1897 | | - | |
1898 | | - | |
1899 | | - | |
1900 | | - | |
1901 | | - | |
1902 | | - | |
1903 | | - | |
1904 | | - | |
1905 | | - | |
1906 | | - | |
1907 | | - | |
1908 | | - | |
1909 | | - | |
1910 | | - | |
1911 | | - | |
1912 | | - | |
1913 | | - | |
1914 | | - | |
1915 | | - | |
1916 | 1901 | | |
1917 | 1902 | | |
1918 | 1903 | | |
| |||
1946 | 1931 | | |
1947 | 1932 | | |
1948 | 1933 | | |
1949 | | - | |
1950 | | - | |
1951 | | - | |
1952 | | - | |
1953 | | - | |
1954 | | - | |
1955 | | - | |
1956 | | - | |
1957 | | - | |
1958 | | - | |
1959 | | - | |
1960 | | - | |
1961 | | - | |
1962 | | - | |
1963 | | - | |
1964 | | - | |
1965 | | - | |
1966 | | - | |
1967 | | - | |
1968 | | - | |
1969 | | - | |
1970 | | - | |
1971 | | - | |
1972 | | - | |
1973 | | - | |
1974 | | - | |
1975 | | - | |
1976 | | - | |
1977 | | - | |
1978 | | - | |
1979 | | - | |
1980 | | - | |
1981 | | - | |
1982 | | - | |
1983 | | - | |
1984 | | - | |
1985 | | - | |
1986 | | - | |
1987 | | - | |
1988 | | - | |
1989 | | - | |
1990 | | - | |
1991 | | - | |
1992 | | - | |
1993 | | - | |
1994 | 1934 | | |
1995 | 1935 | | |
1996 | 1936 | | |
| |||
1999 | 1939 | | |
2000 | 1940 | | |
2001 | 1941 | | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
Lines changed: 0 additions & 71 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | 22 | | |
49 | 23 | | |
50 | 24 | | |
| |||
60 | 34 | | |
61 | 35 | | |
62 | 36 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | 37 | | |
86 | 38 | | |
87 | 39 | | |
| |||
206 | 158 | | |
207 | 159 | | |
208 | 160 | | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
330 | 329 | | |
331 | 330 | | |
332 | 331 | | |
333 | | - | |
334 | | - | |
| 332 | + | |
| 333 | + | |
335 | 334 | | |
336 | | - | |
337 | | - | |
| 335 | + | |
338 | 336 | | |
339 | 337 | | |
340 | | - | |
| 338 | + | |
341 | 339 | | |
342 | | - | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
343 | 344 | | |
344 | | - | |
345 | | - | |
| 345 | + | |
346 | 346 | | |
347 | 347 | | |
348 | | - | |
| 348 | + | |
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
27 | | - | |
28 | | - | |
29 | 26 | | |
| 27 | + | |
30 | 28 | | |
31 | 29 | | |
32 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
65 | 68 | | |
66 | 69 | | |
67 | 70 | | |
| |||
142 | 145 | | |
143 | 146 | | |
144 | 147 | | |
145 | | - | |
146 | | - | |
147 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
148 | 167 | | |
149 | 168 | | |
150 | 169 | | |
| |||
160 | 179 | | |
161 | 180 | | |
162 | 181 | | |
163 | | - | |
164 | | - | |
165 | 182 | | |
| 183 | + | |
166 | 184 | | |
167 | 185 | | |
168 | 186 | | |
| |||
277 | 295 | | |
278 | 296 | | |
279 | 297 | | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
288 | 303 | | |
289 | 304 | | |
290 | 305 | | |
| |||
0 commit comments