Skip to content

Commit 3cf3bcf

Browse files
committed
Working release tasks
1 parent 2977e1c commit 3cf3bcf

File tree

6 files changed

+83
-63
lines changed

6 files changed

+83
-63
lines changed

.evergreen-functions.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ variables:
4848
- community_private_preview_pullsecret_dockerconfigjson
4949
- RELEASE_INITIAL_VERSION
5050
- RELEASE_INITIAL_COMMIT_SHA
51-
- OVERRIDE_OPERATOR_VERSION
51+
- RELEASE_OPERATOR_VERSION
5252

5353
functions:
5454

@@ -576,8 +576,8 @@ functions:
576576
shell: bash
577577
<<: *e2e_include_expansions_in_env
578578
working_dir: src/github.com/mongodb/mongodb-kubernetes
579-
# By default, use the git tag that triggered the task which can be overridden with OVERRIDE_OPERATOR_VERSION
580-
binary: scripts/dev/run_python.sh scripts/release/pipeline_main.py ${image_name} --build-scenario release --version ${OVERRIDE_OPERATOR_VERSION|*triggered_by_git_tag}
579+
# By default, use the git tag that triggered the task which can be overridden with RELEASE_OPERATOR_VERSION
580+
binary: scripts/dev/run_python.sh scripts/release/pipeline_main.py ${image_name} --build-scenario release --version ${RELEASE_OPERATOR_VERSION|*triggered_by_git_tag}
581581

582582
teardown_cloud_qa_all:
583583
- *switch_context
@@ -871,17 +871,17 @@ functions:
871871
- macos_notary_secret
872872
- workdir
873873
- triggered_by_git_tag
874+
- RELEASE_OPERATOR_VERSION
874875
env:
875876
XDG_CONFIG_HOME: ${go_base_path}${workdir}
876877
GO111MODULE: "on"
877878
GOROOT: "/opt/golang/go1.24"
878879
MACOS_NOTARY_KEY: ${macos_notary_keyid}
879880
MACOS_NOTARY_SECRET: ${macos_notary_secret}
880-
GORELEASER_CURRENT_TAG: ${triggered_by_git_tag}
881881
# shell.exec EVG Task doesn't have add_to_path, so we need to explicitly add the path export below.
882882
script: |
883883
set -Eeu pipefail
884-
884+
export GORELEASER_CURRENT_TAG=${RELEASE_OPERATOR_VERSION|*triggered_by_git_tag}
885885
export PATH=$GOROOT/bin:$PATH
886886
export GITHUB_TOKEN=${generated_token}
887887
${workdir}/goreleaser release --clean

.evergreen-release.yml

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@ include:
22
- filename: .evergreen-functions.yml
33

44
tasks:
5+
- name: build_test_image_for_smoke_tests
6+
display_name: build_test_image_for_smoke_tests
7+
tags: [ "e2e_smoke_release_test_suite" ]
8+
commands:
9+
- func: clone
10+
- func: setup_building_host
11+
- func: build_multi_cluster_binary
12+
- func: pipeline
13+
vars:
14+
image_name: meko-tests
15+
build_scenario: --build-scenario patch
516

617
- name: release_operator
718
tags: [ "image_release" ]
@@ -103,7 +114,7 @@ buildvariants:
103114
allowed_requesters: [ "patch", "github_tag" ]
104115
max_hosts: -1
105116
run_on:
106-
- release-ubuntu2204-large # This is required for CISA attestation https://jira.mongodb.org/browse/DEVPROD-17780
117+
- release-ubuntu2404-small # This is required for CISA attestation https://jira.mongodb.org/browse/DEVPROD-17780
107118
tasks:
108119
- name: release_operator
109120
- name: release_init_appdb
@@ -135,7 +146,7 @@ buildvariants:
135146
- name: "*"
136147
variant: preflight_release_images
137148
run_on:
138-
- ubuntu2204-large
149+
- ubuntu2404-small
139150
tasks:
140151
- name: run_conditionally_prepare_and_upload_openshift_bundles
141152

@@ -148,27 +159,38 @@ buildvariants:
148159
name: '*'
149160
patch_optional: true
150161
run_on:
151-
- ubuntu2204-small
162+
- ubuntu2404-small
152163
tasks:
153164
- name: gke_code_snippets_task_group
154165

166+
- name: init_smoke_tests
167+
display_name: init_smoke_tests
168+
tags: [ "e2e_smoke_release_test_suite" ]
169+
allowed_requesters: [ "patch", "github_tag" ]
170+
run_on:
171+
- release-ubuntu2404-small # This is required for CISA attestation https://jira.mongodb.org/browse/DEVPROD-17780
172+
tasks:
173+
- name: build_test_image_for_smoke_tests
174+
155175
- name: e2e_smoke
156176
display_name: e2e_smoke
157177
tags: [ "e2e_smoke_release_test_suite" ]
158178
run_on:
159-
- ubuntu2204-large
179+
- ubuntu2404-large
160180
allowed_requesters: [ "patch", "github_tag" ]
161181
depends_on:
162182
- name: "*"
163183
variant: release_images
184+
- name: "*"
185+
variant: init_smoke_tests
164186
tasks:
165187
- name: e2e_smoke_task_group
166188

167189
- name: e2e_static_smoke
168190
display_name: e2e_static_smoke
169191
tags: [ "e2e_smoke_release_test_suite" ]
170192
run_on:
171-
- ubuntu2204-large
193+
- ubuntu2404-large
172194
allowed_requesters: [ "patch", "github_tag" ]
173195
depends_on:
174196
- name: "*"
@@ -180,7 +202,7 @@ buildvariants:
180202
display_name: release_kubectl_mongodb_plugin
181203
tags: [ "release" ]
182204
run_on:
183-
- release-ubuntu2204-small # This is required for CISA attestation https://jira.mongodb.org/browse/DEVPROD-17780
205+
- release-ubuntu2404-small # This is required for CISA attestation https://jira.mongodb.org/browse/DEVPROD-17780
184206
allowed_requesters: [ "patch", "github_tag" ]
185207
tasks:
186208
- name: release_kubectl_mongodb_plugin

0 commit comments

Comments
 (0)