@@ -33,8 +33,7 @@ variables:
33
33
variant : init_test_run
34
34
- name : build_init_om_images_ubi
35
35
variant : init_test_run
36
- - name : build_agent_images_ubi
37
- variant : init_test_run
36
+
38
37
39
38
- &base_no_om_image_dependency
40
39
depends_on :
@@ -52,17 +51,15 @@ variables:
52
51
variant : init_test_run
53
52
- name : build_init_appdb_images_ubi
54
53
variant : init_test_run
55
- - name : build_agent_images_ubi
56
- variant : init_test_run
54
+
57
55
58
56
- &community_dependency
59
57
depends_on :
60
58
- name : build_operator_ubi
61
59
variant : init_test_run
62
60
- name : build_test_image
63
61
variant : init_test_run
64
- - name : build_agent_images_ubi
65
- variant : init_test_run
62
+
66
63
- name : build_readiness_probe_image
67
64
variant : init_test_run
68
65
- name : build_upgrade_hook_image
@@ -153,8 +150,7 @@ variables:
153
150
variant : init_test_run
154
151
- name : build_init_om_images_ubi
155
152
variant : init_test_run
156
- - name : build_agent_images_ubi
157
- variant : init_test_run
153
+
158
154
159
155
- &base_om7_dependency_with_race
160
156
depends_on :
@@ -172,8 +168,7 @@ variables:
172
168
variant : init_test_run
173
169
- name : build_init_om_images_ubi
174
170
variant : init_test_run
175
- - name : build_agent_images_ubi
176
- variant : init_test_run
171
+
177
172
178
173
- &base_om8_dependency
179
174
depends_on :
@@ -191,8 +186,7 @@ variables:
191
186
variant : init_test_run
192
187
- name : build_init_om_images_ubi
193
188
variant : init_test_run
194
- - name : build_agent_images_ubi
195
- variant : init_test_run
189
+
196
190
197
191
parameters :
198
192
- key : evergreen_retry
@@ -347,19 +341,6 @@ tasks:
347
341
image_name : init-ops-manager
348
342
include_tags : release
349
343
350
- - name : release_agent_operator_release
351
- tags : [ "image_release" ]
352
- allowed_requesters : [ "patch", "github_tag" ]
353
- commands :
354
- - func : clone
355
- - func : setup_building_host
356
- - func : quay_login
357
- - func : setup_docker_sbom
358
- - func : legacy_pipeline
359
- vars :
360
- image_name : agent
361
- include_tags : release
362
-
363
344
# pct only triggers this variant once a new agent image is out
364
345
- name : release_agent
365
346
# this enables us to run this variant either manually (patch) which pct does or during an OM bump (github_pr)
@@ -392,21 +373,6 @@ tasks:
392
373
working_dir : src/github.com/mongodb/mongodb-kubernetes
393
374
binary : scripts/evergreen/precommit_bump.sh
394
375
395
- # Pct only triggers this variant once a new agent image is out
396
- # these releases the agent with the operator suffix (not patch id) on ecr to allow for digest pinning to pass.
397
- # For this to work, we rely on skip_tags which is used to determine whether
398
- # we want to release on quay or not, in this case - ecr instead.
399
- # We rely on the init_database from ecr for the agent x operator images.
400
- # This runs on agent releases that are not concurrent with operator releases.
401
- - name : release_agents_on_ecr_conditional
402
- commands :
403
- - func : clone
404
- - func : run_task_conditionally
405
- vars :
406
- condition_script : scripts/evergreen/should_release_agents_on_ecr.sh
407
- variant : init_release_agents_on_ecr
408
- task : release_agents_on_ecr
409
-
410
376
- name : release_agents_on_ecr
411
377
# this enables us to run this variant either manually (patch) which pct does or during an OM bump (github_pr)
412
378
allowed_requesters : [ "patch", "github_pr" ]
@@ -1334,8 +1300,7 @@ buildvariants:
1334
1300
variant : init_test_run
1335
1301
- name : build_init_database_image_ubi
1336
1302
variant : init_test_run
1337
- - name : build_agent_images_ubi
1338
- variant : init_test_run
1303
+
1339
1304
tasks :
1340
1305
- name : e2e_custom_domain_task_group
1341
1306
@@ -1369,8 +1334,7 @@ buildvariants:
1369
1334
variant : init_test_run
1370
1335
- name : build_init_database_image_ubi
1371
1336
variant : init_test_run
1372
- - name : build_agent_images_ubi
1373
- variant : init_test_run
1337
+
1374
1338
run_on :
1375
1339
- ubuntu2204-small
1376
1340
tasks :
@@ -1617,8 +1581,7 @@ buildvariants:
1617
1581
variant : init_tests_with_olm
1618
1582
- name : build_init_database_image_ubi
1619
1583
variant : init_test_run
1620
- - name : build_agent_images_ubi
1621
- variant : init_test_run
1584
+
1622
1585
tasks :
1623
1586
- name : e2e_kind_olm_group
1624
1587
@@ -1683,18 +1646,6 @@ buildvariants:
1683
1646
- name : build_upgrade_hook_image
1684
1647
- name : prepare_aws
1685
1648
1686
- - name : init_release_agents_on_ecr
1687
- display_name : init_release_agents_on_ecr
1688
- # this enables us to run this variant either manually (patch) which pct does or during an OM bump (github_pr)
1689
- allowed_requesters : [ "patch", "github_pr" ]
1690
- tags : [ "release_agents_on_ecr" ]
1691
- # We want that to run first and finish asap. Digest pinning depends on this to succeed.
1692
- priority : 70
1693
- run_on :
1694
- - ubuntu2204-large
1695
- tasks :
1696
- - name : release_agents_on_ecr_conditional
1697
-
1698
1649
- name : run_pre_commit
1699
1650
priority : 70
1700
1651
display_name : run_pre_commit
@@ -1722,8 +1673,7 @@ buildvariants:
1722
1673
variant : init_test_run
1723
1674
- name : build_init_om_images_ubi
1724
1675
variant : init_test_run
1725
- - name : build_agent_images_ubi
1726
- variant : init_test_run
1676
+
1727
1677
run_on :
1728
1678
- ubuntu2204-small
1729
1679
tasks :
@@ -1809,13 +1759,6 @@ buildvariants:
1809
1759
- name : release_init_database
1810
1760
- name : release_init_ops_manager
1811
1761
- name : release_database
1812
- # Once we release the operator, we will also release the init databases, we require them to be out first
1813
- # such that we can reference them and retrieve those binaries.
1814
- # Since we immediately run daily rebuild after creating the image, we can ensure that the init_database is out
1815
- # such that the agent image build can use it.
1816
- - name : release_agent_operator_release
1817
- depends_on :
1818
- - name : release_init_database
1819
1762
1820
1763
- name : preflight_release_images
1821
1764
display_name : preflight_release_images
@@ -1847,13 +1790,13 @@ buildvariants:
1847
1790
1848
1791
# It will be called by pct while bumping the agent cloud manager image
1849
1792
- name : release_agent
1850
- display_name : (Static Containers) Release Agent matrix
1793
+ display_name : release_agent
1851
1794
tags : [ "release_agent" ]
1852
1795
run_on :
1853
1796
- release-ubuntu2204-large # This is required for CISA attestation https://jira.mongodb.org/browse/DEVPROD-17780
1854
1797
depends_on :
1855
- - variant : init_release_agents_on_ecr
1856
- name : ' * '
1798
+ - variant : init_test_run
1799
+ name : build_agent_images_ubi # this ensures the agent gets released to ECR as well
1857
1800
- variant : e2e_multi_cluster_kind
1858
1801
name : ' *'
1859
1802
- variant : e2e_static_multi_cluster_2_clusters
0 commit comments