Skip to content

Commit 47f8f5c

Browse files
authored
Merge branch 'main' into MONGOSH-2486-add-legacy-uuid-support
2 parents a80991d + 7e28603 commit 47f8f5c

File tree

177 files changed

+7850
-3675
lines changed

Some content is hidden

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

177 files changed

+7850
-3675
lines changed

.evergreen.yml

Lines changed: 1880 additions & 461 deletions
Large diffs are not rendered by default.

.evergreen/InstallNode.ps1

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,4 @@ Write-Output "$filename downloaded"
1515
Write-Output "Time taken: $((Get-Date).Subtract($start_time).Seconds) second(s)"
1616

1717
Expand-Archive $node_zip -DestinationPath $PSScriptRoot
18-
Get-ChildItem -Path $PSScriptRoot
19-
20-
Set-Location -Path $node_dir
21-
Remove-Item .\npm
22-
Remove-Item .\npm.cmd
23-
if (Test-Path .\npm.ps1) { Remove-Item .\npm.ps1 }
24-
Remove-Item .\npx
25-
Remove-Item .\npx.cmd
26-
if (Test-Path .\npx.ps1) { Remove-Item .\npx.ps1 }
27-
Move-Item .\node_modules\npm -Destination .\node_modules\npm2
28-
.\node.exe .\node_modules\npm2\bin\npm-cli.js i -g npm@6
18+
Get-ChildItem -Path $PSScriptRoot

.evergreen/build-variants/unit-tests-build-variants.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export type UnitTestsBuildVariant = {
1010
nShort: string;
1111
nVersion: string;
1212
skipNodeVersionCheck: boolean;
13+
disable: boolean;
1314
};
1415

1516
export const UNIT_TESTS_BUILD_VARIANTS: UnitTestsBuildVariant[];

.evergreen/build-variants/unit-tests-build-variants.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ for (const {
1313
shortName: nShort,
1414
versionSpec: nVersion,
1515
skipNodeVersionCheck,
16+
optional,
1617
} of NODE_VERSIONS) {
1718
for (const platform of PLATFORMS) {
1819
const platformDetails = platformToDetails[platform];
@@ -27,6 +28,7 @@ for (const {
2728
nShort,
2829
nVersion,
2930
skipNodeVersionCheck,
31+
disable: optional === true,
3032
});
3133
for (const {
3234
shortName: mShort,
@@ -64,6 +66,7 @@ for (const {
6466
mShort,
6567
mVersion,
6668
skipNodeVersionCheck,
69+
disable: optional === true,
6770
});
6871
}
6972
}

.evergreen/constants.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ exports.platformToDetails = {
2424
const NODE_JS_VERSION_20 = require('./node-20-latest.json').version;
2525
exports.NODE_JS_VERSION_20 = NODE_JS_VERSION_20;
2626

27+
const NODE_JS_VERSION_24 = require('./node-24-latest.json').version;
28+
exports.NODE_JS_VERSION_24 = NODE_JS_VERSION_24;
29+
2730
exports.MONGODB_VERSIONS = [
2831
{ shortName: '42xc', versionSpec: '4.2.x' },
2932
{ shortName: '42xe', versionSpec: '4.2.x-enterprise' },
@@ -47,5 +50,12 @@ exports.NODE_VERSIONS = [
4750
shortName: '20',
4851
versionSpec: NODE_JS_VERSION_20,
4952
skipNodeVersionCheck: '',
53+
optional: false,
54+
},
55+
{
56+
shortName: '24',
57+
versionSpec: NODE_JS_VERSION_24,
58+
skipNodeVersionCheck: '',
59+
optional: true,
5060
},
5161
];

.evergreen/evergreen.yml.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1166,6 +1166,7 @@ tasks:
11661166
- func: install
11671167
vars:
11681168
node_js_version: ${node_js_version}
1169+
puppeteer_skip_download: "<% out(usePuppeteer ? "false" : "true") %>"
11691170
- func: test
11701171
vars:
11711172
mongosh_server_test_version: ${mongosh_server_test_version}
@@ -1174,7 +1175,6 @@ tasks:
11741175
mongosh_test_id: "<% out(id) %>"
11751176
mongosh_run_only_in_package: "<% out(packageName) %>"
11761177
task_name: ${task_name}
1177-
puppeteer_skip_download: "<% out(usePuppeteer ? "false" : "true") %>"
11781178
<% } %>
11791179

11801180
###
@@ -1560,6 +1560,7 @@ buildvariants:
15601560
display_name: "<% out(variant.displayName) %>"
15611561
run_on: <% out(variant.runOn) %>
15621562
tags: <% out(variant.tags) %>
1563+
disable: <% out(variant.disable) %>
15631564
expansions:
15641565
executable_os_id: <% out(variant.executableOsId) %>
15651566
mongosh_server_test_version: "<% out(variant.mVersion || '') %>"

.evergreen/install-node.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,14 @@ set -e
33
set -x
44
export BASEDIR="$PWD/.evergreen"
55

6-
NPM_VERSION=10.8.3 # 10.9.0 does not install well on Windows
7-
86
if [ "$OS" == "Windows_NT" ]; then
97
powershell "$(cygpath -w "$BASEDIR")"/InstallNode.ps1
108
. "$BASEDIR/setup-env.sh"
11-
mkdir -p "$BASEDIR/npm-10" && (cd "$BASEDIR/npm-10" && echo '{}' > package.json && npm i npm@$NPM_VERSION)
12-
# using npm 10 because npm 9.9.3 does not install well on windows
13-
14-
curl -sSfLO https://raw.githubusercontent.com/mongodb-js/compass/42e6142ae08be6fec944b80ff6289e6bcd11badf/.evergreen/node-gyp-bug-workaround.sh && bash node-gyp-bug-workaround.sh
159
else
1610
if [ `uname` = Darwin ]; then
1711
export NVM_DIR="$BASEDIR/.nvm"
1812
mkdir -p "${NVM_DIR}"
19-
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
13+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
2014

2115
echo "Setting NVM environment home: $NVM_DIR"
2216
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

.evergreen/node-20-latest.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
2-
"version": "20.19.5",
2+
"version": "20.19.6",
33
"major": 20,
44
"minor": 19,
5-
"patch": 5,
5+
"patch": 6,
66
"tag": "",
77
"codename": "iron",
88
"versionName": "v20",
99
"start": "2023-04-18T00:00:00.000Z",
1010
"lts": "2023-10-24T00:00:00.000Z",
1111
"maintenance": "2024-10-22T00:00:00.000Z",
1212
"end": "2026-04-30T00:00:00.000Z",
13-
"releaseDate": "2025-09-03T00:00:00.000Z",
13+
"releaseDate": "2025-11-25T00:00:00.000Z",
1414
"isLts": true,
1515
"isSupported": true,
1616
"isMaintenance": true,
@@ -44,6 +44,6 @@
4444
"v8": "11.3.244.8",
4545
"uv": "1.46.0",
4646
"zlib": "1.3.1",
47-
"openssl": "3.0.16"
47+
"openssl": "3.0.17"
4848
}
4949
}

.evergreen/node-24-latest.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"version": "24.11.1",
3+
"major": 24,
4+
"minor": 11,
5+
"patch": 1,
6+
"tag": "",
7+
"codename": "krypton",
8+
"versionName": "v24",
9+
"start": "2025-05-06T00:00:00.000Z",
10+
"lts": "2025-10-28T00:00:00.000Z",
11+
"maintenance": "2026-10-20T00:00:00.000Z",
12+
"end": "2028-04-30T00:00:00.000Z",
13+
"releaseDate": "2025-11-11T00:00:00.000Z",
14+
"isLts": true,
15+
"isSupported": true,
16+
"isMaintenance": false,
17+
"isSecurity": false,
18+
"modules": "137",
19+
"files": [
20+
"aix-ppc64",
21+
"headers",
22+
"linux-arm64",
23+
"linux-ppc64le",
24+
"linux-s390x",
25+
"linux-x64",
26+
"osx-arm64-tar",
27+
"osx-x64-pkg",
28+
"osx-x64-tar",
29+
"src",
30+
"win-arm64-7z",
31+
"win-arm64-zip",
32+
"win-x64-7z",
33+
"win-x64-exe",
34+
"win-x64-msi",
35+
"win-x64-zip"
36+
],
37+
"dependencies": {
38+
"npm": "11.6.2",
39+
"v8": "13.6.233.10",
40+
"uv": "1.51.0",
41+
"zlib": "1.3.1",
42+
"openssl": "3.5.4"
43+
}
44+
}

.evergreen/setup-env.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ set -x
44
OS_ARCH="$(uname "-m")"
55

66
export BASEDIR="$PWD/.evergreen"
7-
export PATH="$BASEDIR/npm-10/node_modules/.bin:$BASEDIR/node-v$NODE_JS_VERSION-win-x64:/opt/java/jdk16/bin:$PATH"
8-
7+
export PATH="$BASEDIR/node-v$NODE_JS_VERSION-win-x64:/opt/java/jdk17/bin:$PATH"
98
export MONGOSH_GLOBAL_CONFIG_FILE_FOR_TESTING="$BASEDIR/../../testing/tests-globalconfig.conf"
109

1110
export IS_MONGOSH_EVERGREEN_CI=1
@@ -69,7 +68,7 @@ fi
6968

7069
# On RHEL hosts, we run as root for some reason
7170
if [ `uname` = Linux ]; then
72-
export npm_config_unsafe_perm=true
71+
export npm_config_unsafe_perm=true
7372
fi
7473

7574
# npm@7 changed the behavior to run install scripts for packages

0 commit comments

Comments
 (0)