Skip to content

Commit 3cc584e

Browse files
committed
derive executable OS ID from name
1 parent 56f4d97 commit 3cc584e

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

.evergreen.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8276,7 +8276,7 @@ tasks:
82768276
node_js_version: ${node_js_version}
82778277
- func: download_compiled_artifact
82788278
vars:
8279-
executable_os_id: build_linux_x64
8279+
executable_os_id: linux-x64
82808280
- func: run_e2e_tests
82818281
vars:
82828282
node_js_version: ${node_js_version}
@@ -8296,7 +8296,7 @@ tasks:
82968296
node_js_version: ${node_js_version}
82978297
- func: download_compiled_artifact
82988298
vars:
8299-
executable_os_id: build_linux_arm64
8299+
executable_os_id: linux-arm64
83008300
- func: run_e2e_tests
83018301
vars:
83028302
node_js_version: ${node_js_version}
@@ -8316,7 +8316,7 @@ tasks:
83168316
node_js_version: ${node_js_version}
83178317
- func: download_compiled_artifact
83188318
vars:
8319-
executable_os_id: build_darwin
8319+
executable_os_id: darwin-x64
83208320
- func: run_e2e_tests
83218321
vars:
83228322
node_js_version: ${node_js_version}
@@ -8336,7 +8336,7 @@ tasks:
83368336
node_js_version: ${node_js_version}
83378337
- func: download_compiled_artifact
83388338
vars:
8339-
executable_os_id: build_darwin_arm64
8339+
executable_os_id: darwin-arm64
83408340
- func: run_e2e_tests
83418341
vars:
83428342
node_js_version: ${node_js_version}
@@ -8356,7 +8356,7 @@ tasks:
83568356
node_js_version: ${node_js_version}
83578357
- func: download_compiled_artifact
83588358
vars:
8359-
executable_os_id: build_win32
8359+
executable_os_id: win32
83608360
- func: run_e2e_tests
83618361
vars:
83628362
node_js_version: ${node_js_version}
@@ -15296,7 +15296,7 @@ buildvariants:
1529615296
run_on: macos-11-arm64
1529715297
tags: []
1529815298
expansions:
15299-
executable_os_id: "darwin-arm64"
15299+
executable_os_id: "darwin-x64"
1530015300
disable_openssl_shared_config_for_bundled_openssl: false
1530115301
node_js_version: "20.18.1"
1530215302
mongosh_server_test_version: "stable-enterprise"

.evergreen/evergreen.yml.in

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ const ALL_E2E_TEST_BUILD_VARIANTS = [
583583
displayName: "MacOS Big Sur arm64",
584584
runOn: "macos-11-arm64",
585585
name: "darwin_arm64",
586-
executableOsId: "darwin-arm64",
586+
executableOsId: "darwin-x64",
587587
mVersion: "stable",
588588
},
589589
{
@@ -1818,8 +1818,11 @@ tasks:
18181818
# E2E TESTS
18191819
###
18201820
# Tests reuse the same compilation build variant, so we create those variations based on this.
1821-
<% for (const compileBuildVariant of ['build_linux_x64', 'build_linux_arm64', 'build_darwin', 'build_darwin_arm64', 'build_win32']) { %>
1822-
- name: e2e_tests<% out(compileBuildVariant ? `_${compileBuildVariant.replace('build_', '')}` : '') %>
1821+
<% for (const compileBuildVariant of ['build_linux_x64', 'build_linux_arm64', 'build_darwin', 'build_darwin_arm64', 'build_win32']) {
1822+
const platformName = compileBuildVariant.replace('build_', '');
1823+
const executableOsId = platformName == 'darwin' ? 'darwin-x64' : platformName.replaceAll('_', '-');
1824+
%>
1825+
- name: e2e_tests_<% out(platformName) %>
18231826
tags: ["e2e-test", "assigned_to_jira_team_mongosh_mongosh"]
18241827
depends_on:
18251828
- name: compile_artifact
@@ -1833,7 +1836,7 @@ tasks:
18331836
node_js_version: ${node_js_version}
18341837
- func: download_compiled_artifact
18351838
vars:
1836-
executable_os_id: <% out(compileBuildVariant) %>
1839+
executable_os_id: <% out(executableOsId) %>
18371840
- func: run_e2e_tests
18381841
vars:
18391842
node_js_version: ${node_js_version}

0 commit comments

Comments
 (0)