@@ -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
@@ -124,9 +124,9 @@ variables:
124
124
- func : setup_cloud_qa
125
125
teardown_task_can_fail_task : true
126
126
teardown_task :
127
+ - func : teardown_cloud_qa
127
128
- func : upload_e2e_logs
128
129
- func : teardown_kubernetes_environment
129
- - func : teardown_cloud_qa
130
130
131
131
- &setup_and_teardown_task
132
132
setup_task_can_fail_task : true
@@ -163,6 +163,25 @@ variables:
163
163
- name : build_agent_images_ubi
164
164
variant : init_test_run
165
165
166
+ - &base_om7_dependency_with_race
167
+ depends_on :
168
+ - name : build_om_images
169
+ variant : build_om70_images
170
+ - name : build_operator_race_ubi
171
+ variant : init_test_run
172
+ - name : build_init_database_image_ubi
173
+ variant : init_test_run
174
+ - name : build_database_image_ubi
175
+ variant : init_test_run
176
+ - name : build_test_image
177
+ variant : init_test_run
178
+ - name : build_init_appdb_images_ubi
179
+ variant : init_test_run
180
+ - name : build_init_om_images_ubi
181
+ variant : init_test_run
182
+ - name : build_agent_images_ubi
183
+ variant : init_test_run
184
+
166
185
- &base_om8_dependency
167
186
depends_on :
168
187
- name : build_om_images
@@ -335,19 +354,6 @@ tasks:
335
354
image_name : init-ops-manager
336
355
include_tags : release
337
356
338
- - name : release_agent_operator_release
339
- tags : [ "image_release" ]
340
- allowed_requesters : [ "patch", "github_tag" ]
341
- commands :
342
- - func : clone
343
- - func : setup_building_host
344
- - func : quay_login
345
- - func : setup_docker_sbom
346
- - func : legacy_pipeline
347
- vars :
348
- image_name : agent
349
- include_tags : release
350
-
351
357
# pct only triggers this variant once a new agent image is out
352
358
- name : release_agent
353
359
# this enables us to run this variant either manually (patch) which pct does or during an OM bump (github_pr)
@@ -359,8 +365,7 @@ tasks:
359
365
- func : setup_docker_sbom
360
366
- func : legacy_pipeline
361
367
vars :
362
- image_name : agent-pct
363
- include_tags : release
368
+ image_name : agent
364
369
365
370
- name : run_precommit_and_push
366
371
tags : ["patch-run"]
@@ -380,48 +385,17 @@ tasks:
380
385
working_dir : src/github.com/mongodb/mongodb-kubernetes
381
386
binary : scripts/evergreen/precommit_bump.sh
382
387
383
- # Pct only triggers this variant once a new agent image is out
384
- # these releases the agent with the operator suffix (not patch id) on ecr to allow for digest pinning to pass.
385
- # For this to work, we rely on skip_tags which is used to determine whether
386
- # we want to release on quay or not, in this case - ecr instead.
387
- # We rely on the init_database from ecr for the agent x operator images.
388
- # This runs on agent releases that are not concurrent with operator releases.
389
- - name : release_agents_on_ecr_conditional
390
- commands :
391
- - func : clone
392
- - func : run_task_conditionally
393
- vars :
394
- condition_script : scripts/evergreen/should_release_agents_on_ecr.sh
395
- variant : init_release_agents_on_ecr
396
- task : release_agents_on_ecr
397
-
398
- - name : release_agents_on_ecr
399
- # this enables us to run this variant either manually (patch) which pct does or during an OM bump (github_pr)
400
- allowed_requesters : [ "patch", "github_pr" ]
401
- priority : 70
402
- commands :
403
- - func : clone
404
- - func : setup_building_host
405
- - func : legacy_pipeline
406
- vars :
407
- image_name : agent-pct
408
- skip_tags : release
409
-
410
388
- name : release_all_agents_on_ecr
411
- # this enables us to run this manually (patch) and release all agent versions to ECR
412
- # it's needed during operator new version release process - e2e tests (especially olm tests)
413
- # will look for agent with new operator version suffix, but during PR checks we only build
414
- # agent versions for most recent major OM versions and the tests will fail. Before running the PR
415
- # we have to manually release all agents to ECR by triggering this patch
389
+ # this enables us to run this manually (patch) and release all agent versions to ECR to verify
390
+ # Dockerfile, script changes etc.
416
391
allowed_requesters : [ "patch" ]
417
392
commands :
418
393
- func : clone
419
394
- func : setup_building_host
420
- - func : legacy_pipeline
395
+ - func : pipeline
421
396
vars :
422
- image_name : agent-pct
423
- skip_tags : release
424
- all_agents : true
397
+ image_name : agent
398
+ all_agents : " --all-agents"
425
399
426
400
- name : build_test_image
427
401
commands :
@@ -461,18 +435,23 @@ tasks:
461
435
- func : setup_building_host
462
436
- func : pipeline
463
437
vars :
464
- skip_tags : ubuntu,release
465
- distro : ubi
466
438
image_name : operator
467
439
440
+ - name : build_operator_race_ubi
441
+ commands :
442
+ - func : clone
443
+ - func : setup_building_host
444
+ - func : pipeline
445
+ vars :
446
+ image_name : operator-race
447
+
468
448
- name : build_init_om_images_ubi
469
449
commands :
470
450
- func : clone
471
451
- func : setup_building_host
472
452
- func : pipeline
473
453
vars :
474
454
image_name : init-ops-manager
475
- skip_tags : ubuntu,release
476
455
477
456
- name : build_init_appdb_images_ubi
478
457
commands :
@@ -481,7 +460,6 @@ tasks:
481
460
- func : pipeline
482
461
vars :
483
462
image_name : init-appdb
484
- skip_tags : ubuntu,release
485
463
486
464
- name : build_agent_images_ubi
487
465
commands :
@@ -490,7 +468,6 @@ tasks:
490
468
- func : pipeline
491
469
vars :
492
470
image_name : agent
493
- skip_tags : ubuntu,release
494
471
495
472
- name : build_init_database_image_ubi
496
473
commands :
@@ -499,7 +476,6 @@ tasks:
499
476
- func : pipeline
500
477
vars :
501
478
image_name : init-database
502
- skip_tags : ubuntu,release
503
479
504
480
- name : build_database_image_ubi
505
481
commands :
@@ -508,7 +484,6 @@ tasks:
508
484
- func : pipeline
509
485
vars :
510
486
image_name : database
511
- skip_tags : ubuntu,release
512
487
513
488
- name : build_readiness_probe_image
514
489
commands :
@@ -517,7 +492,6 @@ tasks:
517
492
- func : pipeline
518
493
vars :
519
494
image_name : readiness-probe
520
- skip_tags : ubuntu,release
521
495
522
496
- name : build_upgrade_hook_image
523
497
commands :
@@ -526,7 +500,6 @@ tasks:
526
500
- func : pipeline
527
501
vars :
528
502
image_name : upgrade-hook
529
- skip_tags : ubuntu,release
530
503
531
504
- name : prepare_aws
532
505
priority : 59
@@ -1354,8 +1327,7 @@ buildvariants:
1354
1327
variant : init_test_run
1355
1328
- name : build_init_database_image_ubi
1356
1329
variant : init_test_run
1357
- - name : build_agent_images_ubi
1358
- variant : init_test_run
1330
+
1359
1331
tasks :
1360
1332
- name : e2e_custom_domain_task_group
1361
1333
@@ -1389,8 +1361,7 @@ buildvariants:
1389
1361
variant : init_test_run
1390
1362
- name : build_init_database_image_ubi
1391
1363
variant : init_test_run
1392
- - name : build_agent_images_ubi
1393
- variant : init_test_run
1364
+
1394
1365
run_on :
1395
1366
- ubuntu2204-small
1396
1367
tasks :
@@ -1472,7 +1443,7 @@ buildvariants:
1472
1443
tags : [ "e2e_test_suite" ]
1473
1444
run_on :
1474
1445
- ubuntu1804-xlarge
1475
- << : *base_om7_dependency
1446
+ << : *base_om7_dependency_with_race
1476
1447
tasks :
1477
1448
- name : e2e_operator_race_with_telemetry_task_group
1478
1449
@@ -1674,6 +1645,8 @@ buildvariants:
1674
1645
variant : init_test_run
1675
1646
- name : prepare_and_upload_openshift_bundles_for_e2e
1676
1647
variant : init_tests_with_olm
1648
+ - name : build_agent_images_ubi
1649
+ variant : init_test_run
1677
1650
tasks :
1678
1651
- name : e2e_kind_olm_group
1679
1652
@@ -1699,6 +1672,7 @@ buildvariants:
1699
1672
variant : init_test_run
1700
1673
- name : build_agent_images_ubi
1701
1674
variant : init_test_run
1675
+
1702
1676
tasks :
1703
1677
- name : e2e_kind_olm_group
1704
1678
@@ -1751,6 +1725,7 @@ buildvariants:
1751
1725
- ubuntu2204-small
1752
1726
tasks :
1753
1727
- name : build_operator_ubi
1728
+ - name : build_operator_race_ubi
1754
1729
- name : build_test_image
1755
1730
- name : build_mco_test_image
1756
1731
- name : build_init_appdb_images_ubi
@@ -1780,18 +1755,6 @@ buildvariants:
1780
1755
tasks :
1781
1756
- name : build_test_image_ibm
1782
1757
1783
- - name : init_release_agents_on_ecr
1784
- display_name : init_release_agents_on_ecr
1785
- # this enables us to run this variant either manually (patch) which pct does or during an OM bump (github_pr)
1786
- allowed_requesters : [ "patch", "github_pr" ]
1787
- tags : [ "release_agents_on_ecr" ]
1788
- # We want that to run first and finish asap. Digest pinning depends on this to succeed.
1789
- priority : 70
1790
- run_on :
1791
- - ubuntu2204-large
1792
- tasks :
1793
- - name : release_agents_on_ecr_conditional
1794
-
1795
1758
- name : run_pre_commit
1796
1759
priority : 70
1797
1760
display_name : run_pre_commit
@@ -1819,8 +1782,7 @@ buildvariants:
1819
1782
variant : init_test_run
1820
1783
- name : build_init_om_images_ubi
1821
1784
variant : init_test_run
1822
- - name : build_agent_images_ubi
1823
- variant : init_test_run
1785
+
1824
1786
run_on :
1825
1787
- ubuntu2204-small
1826
1788
tasks :
@@ -1906,13 +1868,6 @@ buildvariants:
1906
1868
- name : release_init_database
1907
1869
- name : release_init_ops_manager
1908
1870
- name : release_database
1909
- # Once we release the operator, we will also release the init databases, we require them to be out first
1910
- # such that we can reference them and retrieve those binaries.
1911
- # Since we immediately run daily rebuild after creating the image, we can ensure that the init_database is out
1912
- # such that the agent image build can use it.
1913
- - name : release_agent_operator_release
1914
- depends_on :
1915
- - name : release_init_database
1916
1871
1917
1872
- name : preflight_release_images
1918
1873
display_name : preflight_release_images
@@ -1944,13 +1899,13 @@ buildvariants:
1944
1899
1945
1900
# It will be called by pct while bumping the agent cloud manager image
1946
1901
- name : release_agent
1947
- display_name : (Static Containers) Release Agent matrix
1902
+ display_name : release_agent
1948
1903
tags : [ "release_agent" ]
1949
1904
run_on :
1950
1905
- release-ubuntu2204-large # This is required for CISA attestation https://jira.mongodb.org/browse/DEVPROD-17780
1951
1906
depends_on :
1952
- - variant : init_release_agents_on_ecr
1953
- name : ' * '
1907
+ - variant : init_test_run
1908
+ name : build_agent_images_ubi # this ensures the agent gets released to ECR as well
1954
1909
- variant : e2e_multi_cluster_kind
1955
1910
name : ' *'
1956
1911
- variant : e2e_static_multi_cluster_2_clusters
0 commit comments