Skip to content

Commit aac6ffe

Browse files
authored
Merge branch 'master' into update-client-go
2 parents edeac62 + b90c986 commit aac6ffe

19 files changed

+77
-32
lines changed

.evergreen-functions.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,17 @@ functions:
541541
- ${workdir}/bin
542542
binary: scripts/evergreen/e2e/build_tests_image_ibm.sh
543543

544+
pipeline_migrate_agents:
545+
- *switch_context
546+
- command: subprocess.exec
547+
retry_on_failure: false
548+
type: setup
549+
params:
550+
shell: bash
551+
<<: *e2e_include_expansions_in_env
552+
working_dir: src/github.com/mongodb/mongodb-kubernetes
553+
binary: scripts/release/pipeline_migrate_agent.sh
554+
544555
pipeline:
545556
- *switch_context
546557
- command: subprocess.exec

.evergreen.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,15 @@ tasks:
356356
image_name: agent
357357
build_scenario: --build-scenario manual_release
358358

359+
- name: migrate_all_agents
360+
# this enables us to run this variant manually to build all the agents for the new registry
361+
allowed_requesters: [ "patch" ]
362+
commands:
363+
- func: clone
364+
- func: setup_building_host
365+
- func: quay_login
366+
- func: pipeline_migrate_agents
367+
359368
- name: run_precommit_and_push
360369
tags: ["patch-run"]
361370
commands:
@@ -1375,7 +1384,7 @@ buildvariants:
13751384
display_name: e2e_om60_kind_ubi
13761385
tags: [ "e2e_test_suite" ]
13771386
run_on:
1378-
- ubuntu2204-large
1387+
- ubuntu2204-medium-high-memory
13791388
<<: *base_om6_dependency
13801389
tasks:
13811390
- name: e2e_ops_manager_kind_only_task_group
@@ -1387,7 +1396,7 @@ buildvariants:
13871396
display_name: e2e_static_om60_kind_ubi
13881397
tags: [ "e2e_test_suite" ]
13891398
run_on:
1390-
- ubuntu2204-large
1399+
- ubuntu2204-medium
13911400
<<: *base_om6_dependency
13921401
tasks:
13931402
- name: e2e_static_ops_manager_kind_only_task_group
@@ -1397,7 +1406,7 @@ buildvariants:
13971406
display_name: e2e_om70_kind_ubi
13981407
tags: [ "e2e_test_suite" ]
13991408
run_on:
1400-
- ubuntu2204-large
1409+
- ubuntu2204-medium-high-memory
14011410
<<: *base_om7_dependency
14021411
tasks:
14031412
- name: e2e_ops_manager_kind_only_task_group
@@ -1420,7 +1429,7 @@ buildvariants:
14201429
display_name: e2e_om80_kind_ubi
14211430
tags: [ "e2e_test_suite" ]
14221431
run_on:
1423-
- ubuntu2204-large
1432+
- ubuntu2204-medium-high-memory
14241433
<<: *base_om8_dependency
14251434
tasks:
14261435
- name: e2e_ops_manager_kind_only_task_group
@@ -2097,3 +2106,11 @@ buildvariants:
20972106
tasks:
20982107
- name: publish_ops_manager
20992108
- name: release_agent
2109+
2110+
- name: migrate_all_agents
2111+
display_name: migrate_all_agents
2112+
allowed_requesters: [ "patch" ]
2113+
run_on:
2114+
- ubuntu2204-large
2115+
tasks:
2116+
- name: migrate_all_agents

.githooks/pre-commit

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ wait_for_all_background_jobs() {
202202
for failure in "${failures[@]}"; do
203203
echo -e "$failure"
204204
done
205-
echo -e "${RED}To see the details look for the job's logs by it's prefixed name (e.g. \"shellcheck:\").${NO_COLOR}"
205+
echo -e "${RED}To see the details look/filter for the job's logs by it's prefixed name (e.g. \"start_shellcheck:\", \"lint_code:\", \"shellcheck failed\").${NO_COLOR}"
206206
return 1
207207
fi
208208

@@ -229,10 +229,17 @@ pre_commit() {
229229
# Function to run shellcheck on a single file
230230
run_shellcheck() {
231231
local file="$1"
232-
echo "Running shellcheck on $file"
233-
if ! shellcheck --color=always -x "$file" -e SC2154 -e SC1091 -e SC1090 -e SC2148 -o require-variable-braces -P "scripts"; then
232+
233+
local diff_output
234+
diff_output=$(shellcheck -f diff "$file" -e SC2154 -e SC1091 -e SC1090 -e SC2148 -o require-variable-braces -P "scripts" 2>&1)
235+
236+
if [[ -n "$diff_output" && "$diff_output" != *"Issues were detected, but none were auto-fixable"* ]]; then
237+
echo "$diff_output" | git apply
238+
echo "Applied auto-fixes for $file"
239+
elif [[ "$diff_output" == *"Issues were detected, but none were auto-fixable"* ]]; then
234240
echo -e "${RED}shellcheck failed on $file${NO_COLOR}"
235-
exit 1
241+
shellcheck --color=always -x "$file" -e SC2154 -e SC1091 -e SC1090 -e SC2148 -o require-variable-braces -P "scripts"
242+
return 1
236243
fi
237244
}
238245

config/manager/manager.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,6 @@ spec:
130130
value: "quay.io/mongodb/mongodb-kubernetes-init-ops-manager:1.2.0"
131131
- name: RELATED_IMAGE_INIT_APPDB_IMAGE_REPOSITORY_1_2_0
132132
value: "quay.io/mongodb/mongodb-kubernetes-init-appdb:1.2.0"
133-
- name: RELATED_IMAGE_AGENT_IMAGE_107_0_11_8645_1
134-
value: "quay.io/mongodb/mongodb-agent-ubi:107.0.11.8645-1"
135133
- name: RELATED_IMAGE_AGENT_IMAGE_107_0_12_8669_1
136134
value: "quay.io/mongodb/mongodb-agent-ubi:107.0.12.8669-1"
137135
- name: RELATED_IMAGE_AGENT_IMAGE_107_0_13_8702_1

helm_chart/values-openshift.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ relatedImages:
9999
- 8.0.0-ubi8
100100
- 8.0.0-ubi9
101101
agent:
102-
- 107.0.11.8645-1
103102
- 107.0.12.8669-1
104103
- 107.0.13.8702-1
105104
- 107.0.15.8741-1

public/mongodb-kubernetes-openshift.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,8 +434,6 @@ spec:
434434
value: "quay.io/mongodb/mongodb-kubernetes-init-ops-manager:1.2.0"
435435
- name: RELATED_IMAGE_INIT_APPDB_IMAGE_REPOSITORY_1_2_0
436436
value: "quay.io/mongodb/mongodb-kubernetes-init-appdb:1.2.0"
437-
- name: RELATED_IMAGE_AGENT_IMAGE_107_0_11_8645_1
438-
value: "quay.io/mongodb/mongodb-agent-ubi:107.0.11.8645-1"
439437
- name: RELATED_IMAGE_AGENT_IMAGE_107_0_12_8669_1
440438
value: "quay.io/mongodb/mongodb-agent-ubi:107.0.12.8669-1"
441439
- name: RELATED_IMAGE_AGENT_IMAGE_107_0_13_8702_1

release.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,6 @@
117117
"agent_version": "12.0.35.7911-1",
118118
"tools_version": "100.10.0"
119119
},
120-
"7.0.11": {
121-
"agent_version": "107.0.11.8645-1",
122-
"tools_version": "100.10.0"
123-
},
124120
"7.0.12": {
125121
"agent_version": "107.0.12.8669-1",
126122
"tools_version": "100.10.0"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
3+
set -Eeou pipefail
4+
5+
script_name=$(readlink -f "${BASH_SOURCE[0]}")
6+
script_dir=$(dirname "${script_name}")
7+
8+
source "${script_dir}/root-context"
9+
10+
export preflight_submit=true

scripts/dev/contexts/variables/om60

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export CUSTOM_OM_VERSION
1313
export CUSTOM_MDB_VERSION=6.0.21
1414
export CUSTOM_MDB_PREV_VERSION=5.0.7
1515

16-
export AGENT_VERSION=12.0.33.7866-1
16+
export AGENT_VERSION=12.0.35.7911-1
1717
export AGENT_IMAGE="${MDB_AGENT_IMAGE_REPOSITORY}:${AGENT_VERSION}"
1818

1919
export CUSTOM_APPDB_VERSION=6.0.21-ent

scripts/dev/contexts/variables/om70

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export CUSTOM_OM_VERSION
1313
export CUSTOM_MDB_VERSION=7.0.18
1414
export CUSTOM_MDB_PREV_VERSION=6.0.21
1515

16-
export AGENT_VERSION=107.0.11.8645-1
16+
export AGENT_VERSION=107.0.17.8771-1
1717
export AGENT_IMAGE="${MDB_AGENT_IMAGE_REPOSITORY}:${AGENT_VERSION}"
1818

1919
export CUSTOM_APPDB_VERSION=7.0.18-ent

0 commit comments

Comments
 (0)