@@ -61,14 +61,14 @@ variables:
61
61
variant : init_test_run
62
62
- name : build_test_image
63
63
variant : init_test_run
64
- - name : build_agent_images_ubi
65
- variant : init_test_run
66
64
- name : build_readiness_probe_image
67
65
variant : init_test_run
68
66
- name : build_upgrade_hook_image
69
67
variant : init_test_run
70
68
- name : build_mco_test_image
71
69
variant : init_test_run
70
+ - name : build_agent_images_ubi
71
+ variant : init_test_run
72
72
73
73
- &setup_group
74
74
setup_group_can_fail_task : true
@@ -347,19 +347,6 @@ tasks:
347
347
image_name : init-ops-manager
348
348
include_tags : release
349
349
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
350
# pct only triggers this variant once a new agent image is out
364
351
- name : release_agent
365
352
# this enables us to run this variant either manually (patch) which pct does or during an OM bump (github_pr)
@@ -371,8 +358,7 @@ tasks:
371
358
- func : setup_docker_sbom
372
359
- func : legacy_pipeline
373
360
vars :
374
- image_name : agent-pct
375
- include_tags : release
361
+ image_name : agent
376
362
377
363
- name : run_precommit_and_push
378
364
tags : ["patch-run"]
@@ -392,48 +378,17 @@ tasks:
392
378
working_dir : src/github.com/mongodb/mongodb-kubernetes
393
379
binary : scripts/evergreen/precommit_bump.sh
394
380
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
- - name : release_agents_on_ecr
411
- # this enables us to run this variant either manually (patch) which pct does or during an OM bump (github_pr)
412
- allowed_requesters : [ "patch", "github_pr" ]
413
- priority : 70
414
- commands :
415
- - func : clone
416
- - func : setup_building_host
417
- - func : legacy_pipeline
418
- vars :
419
- image_name : agent-pct
420
- skip_tags : release
421
-
422
381
- name : release_all_agents_on_ecr
423
- # this enables us to run this manually (patch) and release all agent versions to ECR
424
- # it's needed during operator new version release process - e2e tests (especially olm tests)
425
- # will look for agent with new operator version suffix, but during PR checks we only build
426
- # agent versions for most recent major OM versions and the tests will fail. Before running the PR
427
- # we have to manually release all agents to ECR by triggering this patch
382
+ # this enables us to run this manually (patch) and release all agent versions to ECR to verify
383
+ # Dockerfile, script changes etc.
428
384
allowed_requesters : [ "patch" ]
429
385
commands :
430
386
- func : clone
431
387
- func : setup_building_host
432
- - func : legacy_pipeline
388
+ - func : pipeline
433
389
vars :
434
- image_name : agent-pct
435
- skip_tags : release
436
- all_agents : true
390
+ image_name : agent
391
+ all_agents : " --all-agents"
437
392
438
393
- name : build_test_image
439
394
commands :
@@ -1334,8 +1289,7 @@ buildvariants:
1334
1289
variant : init_test_run
1335
1290
- name : build_init_database_image_ubi
1336
1291
variant : init_test_run
1337
- - name : build_agent_images_ubi
1338
- variant : init_test_run
1292
+
1339
1293
tasks :
1340
1294
- name : e2e_custom_domain_task_group
1341
1295
@@ -1369,8 +1323,7 @@ buildvariants:
1369
1323
variant : init_test_run
1370
1324
- name : build_init_database_image_ubi
1371
1325
variant : init_test_run
1372
- - name : build_agent_images_ubi
1373
- variant : init_test_run
1326
+
1374
1327
run_on :
1375
1328
- ubuntu2204-small
1376
1329
tasks :
@@ -1594,6 +1547,8 @@ buildvariants:
1594
1547
variant : init_test_run
1595
1548
- name : prepare_and_upload_openshift_bundles_for_e2e
1596
1549
variant : init_tests_with_olm
1550
+ - name : build_agent_images_ubi
1551
+ variant : init_test_run
1597
1552
tasks :
1598
1553
- name : e2e_kind_olm_group
1599
1554
@@ -1619,6 +1574,7 @@ buildvariants:
1619
1574
variant : init_test_run
1620
1575
- name : build_agent_images_ubi
1621
1576
variant : init_test_run
1577
+
1622
1578
tasks :
1623
1579
- name : e2e_kind_olm_group
1624
1580
@@ -1683,18 +1639,6 @@ buildvariants:
1683
1639
- name : build_upgrade_hook_image
1684
1640
- name : prepare_aws
1685
1641
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
1642
- name : run_pre_commit
1699
1643
priority : 70
1700
1644
display_name : run_pre_commit
@@ -1722,8 +1666,7 @@ buildvariants:
1722
1666
variant : init_test_run
1723
1667
- name : build_init_om_images_ubi
1724
1668
variant : init_test_run
1725
- - name : build_agent_images_ubi
1726
- variant : init_test_run
1669
+
1727
1670
run_on :
1728
1671
- ubuntu2204-small
1729
1672
tasks :
@@ -1809,13 +1752,6 @@ buildvariants:
1809
1752
- name : release_init_database
1810
1753
- name : release_init_ops_manager
1811
1754
- 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
1755
1820
1756
- name : preflight_release_images
1821
1757
display_name : preflight_release_images
@@ -1847,13 +1783,13 @@ buildvariants:
1847
1783
1848
1784
# It will be called by pct while bumping the agent cloud manager image
1849
1785
- name : release_agent
1850
- display_name : (Static Containers) Release Agent matrix
1786
+ display_name : release_agent
1851
1787
tags : [ "release_agent" ]
1852
1788
run_on :
1853
1789
- release-ubuntu2204-large # This is required for CISA attestation https://jira.mongodb.org/browse/DEVPROD-17780
1854
1790
depends_on :
1855
- - variant : init_release_agents_on_ecr
1856
- name : ' * '
1791
+ - variant : init_test_run
1792
+ name : build_agent_images_ubi # this ensures the agent gets released to ECR as well
1857
1793
- variant : e2e_multi_cluster_kind
1858
1794
name : ' *'
1859
1795
- variant : e2e_static_multi_cluster_2_clusters
0 commit comments