Skip to content

Commit 8fa4b79

Browse files
Merge branch 'master' into kubectl-plugin-goreleaser
2 parents 42ebe40 + ba955a8 commit 8fa4b79

File tree

149 files changed

+3901
-1868
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+3901
-1868
lines changed

.evergreen-functions.yml

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ functions:
336336
- command: shell.exec
337337
type: setup
338338
params:
339+
continue_on_err: true
339340
shell: bash
340341
working_dir: src/github.com/mongodb/mongodb-kubernetes
341342
script: |
@@ -392,7 +393,7 @@ functions:
392393
add_to_path:
393394
- ${workdir}/bin
394395
working_dir: src/github.com/mongodb/mongodb-kubernetes
395-
binary: scripts/evergreen/run_python.sh scripts/update_supported_dockerfiles.py
396+
binary: scripts/dev/run_python.sh scripts/update_supported_dockerfiles.py
396397
- command: subprocess.exec
397398
type: setup
398399
params:
@@ -420,6 +421,7 @@ functions:
420421
upload_e2e_logs:
421422
- command: s3.put
422423
params:
424+
continue_on_err: true
423425
aws_key: ${enterprise_aws_access_key_id}
424426
aws_secret: ${enterprise_aws_secret_access_key}
425427
local_files_include_filter:
@@ -486,7 +488,7 @@ functions:
486488
include_expansions_in_env:
487489
- image_version
488490
- rh_pyxis
489-
binary: scripts/evergreen/run_python.sh scripts/preflight_images.py --image ${image_name} --submit "${preflight_submit}"
491+
binary: scripts/dev/run_python.sh scripts/preflight_images.py --image ${image_name} --submit "${preflight_submit}"
490492

491493
# build_multi_cluster_binary:
492494
# - command: subprocess.exec
@@ -553,6 +555,27 @@ functions:
553555
- ${workdir}
554556

555557
pipeline:
558+
- *switch_context
559+
- command: shell.exec
560+
type: setup
561+
params:
562+
shell: bash
563+
script: |
564+
# Docker Hub workaround
565+
# docker buildx needs the moby/buildkit image when setting up a builder so we pull it from our mirror
566+
docker buildx create --driver=docker-container --driver-opt=image=268558157000.dkr.ecr.eu-west-1.amazonaws.com/docker-hub-mirrors/moby/buildkit:buildx-stable-1 --use
567+
docker buildx inspect --bootstrap
568+
- command: subprocess.exec
569+
retry_on_failure: true
570+
type: setup
571+
params:
572+
shell: bash
573+
<<: *e2e_include_expansions_in_env
574+
working_dir: src/github.com/mongodb/mongodb-kubernetes
575+
binary: scripts/dev/run_python.sh scripts/release/pipeline_main.py --parallel ${image_name} ${all_agents}
576+
577+
# TODO: CLOUDP-335471 ; once all image builds are made with the new atomic pipeline, remove the following function
578+
legacy_pipeline:
556579
- *switch_context
557580
- command: shell.exec
558581
type: setup
@@ -586,7 +609,7 @@ functions:
586609
shell: bash
587610
<<: *e2e_include_expansions_in_env
588611
working_dir: src/github.com/mongodb/mongodb-kubernetes
589-
binary: scripts/evergreen/run_python.sh pipeline.py --include ${image_name} --parallel --sign
612+
binary: scripts/dev/run_python.sh pipeline.py --include ${image_name} --parallel --sign
590613

591614
teardown_cloud_qa_all:
592615
- *switch_context
@@ -597,7 +620,7 @@ functions:
597620
working_dir: src/github.com/mongodb/mongodb-kubernetes
598621
script: |
599622
source .generated/context.export.env
600-
scripts/evergreen/run_python.sh scripts/evergreen/e2e/setup_cloud_qa.py delete_all
623+
scripts/dev/run_python.sh scripts/evergreen/e2e/setup_cloud_qa.py delete_all
601624
602625
# Updates current expansions with variables from release.json file.
603626
# Use e.g. ${mongoDbOperator} afterwards.
@@ -644,7 +667,7 @@ functions:
644667
add_to_path:
645668
- ${workdir}/bin
646669
# Below script deletes agent images created for an Evergreen patch older than 1 day
647-
command: scripts/evergreen/run_python.sh scripts/evergreen/periodic-cleanup-aws.py
670+
command: scripts/dev/run_python.sh scripts/evergreen/periodic-cleanup-aws.py
648671

649672
### Test Functions ###
650673

@@ -743,7 +766,7 @@ functions:
743766
working_dir: src/github.com/mongodb/mongodb-kubernetes
744767
script: |
745768
source .generated/context.export.env
746-
scripts/evergreen/run_python.sh scripts/evergreen/e2e/performance/create_variants.py ${variant} ${size}> evergreen_tasks.json
769+
scripts/dev/run_python.sh scripts/evergreen/e2e/performance/create_variants.py ${variant} ${size}> evergreen_tasks.json
747770
echo "tasks to run:"
748771
cat evergreen_tasks.json
749772
- command: generate.tasks

.evergreen-periodic-builds.yaml

Lines changed: 0 additions & 152 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@ variables:
1919
- func: switch_context
2020

2121
tasks:
22-
- name: periodic_build_operator
23-
commands:
24-
- func: pipeline
25-
vars:
26-
image_name: operator-daily
27-
2822
- name: periodic_teardown_aws
2923
commands:
3024
- func: cleanup_aws
@@ -33,134 +27,7 @@ tasks:
3327
commands:
3428
- func: teardown_cloud_qa_all
3529

36-
- name: periodic_build_init_appdb
37-
commands:
38-
- func: pipeline
39-
vars:
40-
image_name: init-appdb-daily
41-
42-
- name: periodic_build_init_database
43-
commands:
44-
- func: pipeline
45-
vars:
46-
image_name: init-database-daily
47-
48-
- name: periodic_build_init_opsmanager
49-
commands:
50-
- func: pipeline
51-
vars:
52-
image_name: init-ops-manager-daily
53-
54-
- name: periodic_build_database
55-
commands:
56-
- func: pipeline
57-
vars:
58-
image_name: database-daily
59-
60-
- name: periodic_build_sbom_cli
61-
commands:
62-
- func: pipeline
63-
vars:
64-
image_name: cli
65-
66-
- name: periodic_build_ops_manager_6
67-
commands:
68-
- func: pipeline
69-
vars:
70-
image_name: ops-manager-6-daily
71-
72-
- name: periodic_build_ops_manager_7
73-
commands:
74-
- func: pipeline
75-
vars:
76-
image_name: ops-manager-7-daily
77-
78-
- name: periodic_build_ops_manager_8
79-
commands:
80-
- func: pipeline
81-
vars:
82-
image_name: ops-manager-8-daily
83-
84-
# the periodic agent builds are more commented in the pipeline.py file.
85-
# The gist is - we want to split up the periodic build on as many machines as possible
86-
# To speed up the builds as we have too many agents due to the matrix build.
87-
# For now its one without operator suffix and the last 3. This only works as long as we
88-
# only have operator versions we support (minor version), as soon as we have multiple patch versions -
89-
# this won't work anymore and we will need a dynamic solution.
90-
- name: periodic_build_agent
91-
exec_timeout_secs: 43200
92-
commands:
93-
- func: enable_QEMU
94-
- func: pipeline
95-
vars:
96-
image_name: mongodb-agent-daily
97-
98-
- name: periodic_build_agent_1
99-
exec_timeout_secs: 43200
100-
commands:
101-
- func: enable_QEMU
102-
- func: pipeline
103-
vars:
104-
image_name: mongodb-agent-1-daily
105-
106-
- name: periodic_build_agent_2
107-
exec_timeout_secs: 43200
108-
commands:
109-
- func: enable_QEMU
110-
- func: pipeline
111-
vars:
112-
image_name: mongodb-agent-2-daily
113-
114-
- name: periodic_build_agent_3
115-
exec_timeout_secs: 43200
116-
commands:
117-
- func: enable_QEMU
118-
- func: pipeline
119-
vars:
120-
image_name: mongodb-agent-3-daily
121-
122-
#TODO should we still build the community operator?
123-
- name: periodic_build_community_operator
124-
commands:
125-
- func: enable_QEMU
126-
- func: pipeline
127-
vars:
128-
image_name: mongodb-kubernetes-operator-daily
129-
130-
- name: periodic_build_readiness_probe
131-
commands:
132-
- func: pipeline
133-
vars:
134-
image_name: readinessprobe-daily
135-
136-
- name: periodic_build_version_upgrade_post_start_hook
137-
commands:
138-
- func: pipeline
139-
vars:
140-
image_name: operator-version-upgrade-post-start-hook-daily
141-
14230
task_groups:
143-
- name: periodic_build_task_group
144-
max_hosts: -1
145-
<<: *setup_group
146-
tasks:
147-
- periodic_build_operator
148-
- periodic_build_readiness_probe
149-
- periodic_build_version_upgrade_post_start_hook
150-
- periodic_build_init_appdb
151-
- periodic_build_init_database
152-
- periodic_build_init_opsmanager
153-
- periodic_build_ops_manager_6
154-
- periodic_build_ops_manager_7
155-
- periodic_build_ops_manager_8
156-
- periodic_build_database
157-
- periodic_build_community_operator
158-
- periodic_build_sbom_cli
159-
- periodic_build_agent
160-
- periodic_build_agent_1
161-
- periodic_build_agent_2
162-
- periodic_build_agent_3
163-
16431
- name: periodic_teardown_task_group
16532
<<: *setup_group
16633
tasks:
@@ -175,22 +42,3 @@ buildvariants:
17542
- ubuntu2204-small
17643
tasks:
17744
- name: periodic_teardown_task_group
178-
179-
- name: periodic_build
180-
display_name: periodic_build
181-
tags: [ "periodic_build" ]
182-
run_on:
183-
- release-ubuntu2204-large # This is required for CISA attestation https://jira.mongodb.org/browse/DEVPROD-17780
184-
tasks:
185-
- name: periodic_build_task_group
186-
187-
- name: preflight_release_images_check_only
188-
display_name: preflight_release_images_check_only
189-
tags: [ "periodic_build" ]
190-
depends_on:
191-
- name: "*"
192-
variant: periodic_build
193-
run_on:
194-
- rhel90-large
195-
tasks:
196-
- name: preflight_images_task_group

0 commit comments

Comments
 (0)