@@ -33,8 +33,6 @@ 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
38
36
39
37
- &base_no_om_image_dependency
40
38
depends_on :
@@ -52,17 +50,14 @@ variables:
52
50
variant : init_test_run
53
51
- name : build_init_appdb_images_ubi
54
52
variant : init_test_run
55
- - name : build_agent_images_ubi
56
- variant : init_test_run
57
53
58
54
- &community_dependency
59
55
depends_on :
60
56
- name : build_operator_ubi
61
57
variant : init_test_run
62
58
- name : build_test_image
63
59
variant : init_test_run
64
- - name : build_agent_images_ubi
65
- variant : init_test_run
60
+
66
61
- name : build_readiness_probe_image
67
62
variant : init_test_run
68
63
- name : build_upgrade_hook_image
@@ -153,8 +148,6 @@ variables:
153
148
variant : init_test_run
154
149
- name : build_init_om_images_ubi
155
150
variant : init_test_run
156
- - name : build_agent_images_ubi
157
- variant : init_test_run
158
151
159
152
- &base_om7_dependency_with_race
160
153
depends_on :
@@ -172,8 +165,6 @@ variables:
172
165
variant : init_test_run
173
166
- name : build_init_om_images_ubi
174
167
variant : init_test_run
175
- - name : build_agent_images_ubi
176
- variant : init_test_run
177
168
178
169
- &base_om8_dependency
179
170
depends_on :
@@ -191,8 +182,7 @@ variables:
191
182
variant : init_test_run
192
183
- name : build_init_om_images_ubi
193
184
variant : init_test_run
194
- - name : build_agent_images_ubi
195
- variant : init_test_run
185
+
196
186
197
187
parameters :
198
188
- key : evergreen_retry
@@ -347,19 +337,6 @@ tasks:
347
337
image_name : init-ops-manager
348
338
include_tags : release
349
339
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
340
# pct only triggers this variant once a new agent image is out
364
341
- name : release_agent
365
342
# this enables us to run this variant either manually (patch) which pct does or during an OM bump (github_pr)
@@ -392,21 +369,6 @@ tasks:
392
369
working_dir : src/github.com/mongodb/mongodb-kubernetes
393
370
binary : scripts/evergreen/precommit_bump.sh
394
371
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
372
- name : release_agents_on_ecr
411
373
# this enables us to run this variant either manually (patch) which pct does or during an OM bump (github_pr)
412
374
allowed_requesters : [ "patch", "github_pr" ]
@@ -1334,8 +1296,7 @@ buildvariants:
1334
1296
variant : init_test_run
1335
1297
- name : build_init_database_image_ubi
1336
1298
variant : init_test_run
1337
- - name : build_agent_images_ubi
1338
- variant : init_test_run
1299
+
1339
1300
tasks :
1340
1301
- name : e2e_custom_domain_task_group
1341
1302
@@ -1369,8 +1330,7 @@ buildvariants:
1369
1330
variant : init_test_run
1370
1331
- name : build_init_database_image_ubi
1371
1332
variant : init_test_run
1372
- - name : build_agent_images_ubi
1373
- variant : init_test_run
1333
+
1374
1334
run_on :
1375
1335
- ubuntu2204-small
1376
1336
tasks :
@@ -1617,8 +1577,7 @@ buildvariants:
1617
1577
variant : init_tests_with_olm
1618
1578
- name : build_init_database_image_ubi
1619
1579
variant : init_test_run
1620
- - name : build_agent_images_ubi
1621
- variant : init_test_run
1580
+
1622
1581
tasks :
1623
1582
- name : e2e_kind_olm_group
1624
1583
@@ -1683,18 +1642,6 @@ buildvariants:
1683
1642
- name : build_upgrade_hook_image
1684
1643
- name : prepare_aws
1685
1644
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
1645
- name : run_pre_commit
1699
1646
priority : 70
1700
1647
display_name : run_pre_commit
@@ -1722,8 +1669,7 @@ buildvariants:
1722
1669
variant : init_test_run
1723
1670
- name : build_init_om_images_ubi
1724
1671
variant : init_test_run
1725
- - name : build_agent_images_ubi
1726
- variant : init_test_run
1672
+
1727
1673
run_on :
1728
1674
- ubuntu2204-small
1729
1675
tasks :
@@ -1809,13 +1755,6 @@ buildvariants:
1809
1755
- name : release_init_database
1810
1756
- name : release_init_ops_manager
1811
1757
- 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
1758
1820
1759
- name : preflight_release_images
1821
1760
display_name : preflight_release_images
@@ -1847,13 +1786,13 @@ buildvariants:
1847
1786
1848
1787
# It will be called by pct while bumping the agent cloud manager image
1849
1788
- name : release_agent
1850
- display_name : (Static Containers) Release Agent matrix
1789
+ display_name : release_agent
1851
1790
tags : [ "release_agent" ]
1852
1791
run_on :
1853
1792
- release-ubuntu2204-large # This is required for CISA attestation https://jira.mongodb.org/browse/DEVPROD-17780
1854
1793
depends_on :
1855
- - variant : init_release_agents_on_ecr
1856
- name : ' * '
1794
+ - variant : init_test_run
1795
+ name : build_agent_images_ubi # this ensures the agent gets released to ECR as well
1857
1796
- variant : e2e_multi_cluster_kind
1858
1797
name : ' *'
1859
1798
- variant : e2e_static_multi_cluster_2_clusters
0 commit comments