Commit 4292e4a
authored
chore(ci): add all relevant Node.js 24 variants to evergreen for CI MONGOSH-2995 (#2586)
* chore: Update boxednode to 3.0.0, so we can support Node.js 24
We are also upgrading the Node.js version we use for the driver
nightly tests to 24.11.1 (latest LTS version at the moment of
this commit)
* chore: Update to latest node-gyp. It should work with Node.js>=20
* chore: Add a Node.js 24 variant to evergreen runs
We will be running all tests in both Node.js 20 and Node.js 24
with the current driver version. The nightly driver run that
happens every day should do the same with the nightly driver
without additional changes.
* chore: We should be using the npm version provided by Node.js
While older versions of npm had specific issues on Windows, the
latest npm@10 and npm@11 seem to be working fine, as they are
the ones we are using already in boxednode.
* chore: Use --jitless while we have the bugged 24.10 version of Node
* chore: In Node.js 22 and Node.js 24 __dirname does not exist
For some reason, Node.js 22 and Node.js 24 are more strict on
whether __dirname exists. Because import.meta.dirname always
exist, and must be equal, replace at the beginning of the script.
* chore: Update dependencies and update minimum Node.js version
Update to the minimum Node.js version that we have in the
devtools-toolchain (20.19.3)
* chore: Use process.cwd() instead of __dirname or import.meta
While this doesn't have the exact same semantic, it works
identical in all Node.js versions and we have control of
the cwd of the process, so this should be consistent and
work without ESM/CJS trics.
* chore: Path was somehow wrong, and it triggered using ESM
* chore: Overwriting __dirname just breaks Node 20.
* chore: use --no-experimental-strip-types in 24.11.1
* chore: Remove unused config (was not wired yet)
* chore: Rollback changes on .evergreen-nightly-driver
* chore: Fixes from PR comments
* chore: Remove the --jitless flag on v24
Evergreen is already working on providing an up-to-date
version of Node.js doesn't contain the JIT compiler
issue. We need JIT for WASM support.
* chore: Make Node.js 24 variants optional, so they don't block releases
Node.js 24 variants are going to be broken for a while, while we
work on the upgrade. It doesn't make much sense to keep them
running and blocking CI, so we will disable them by default and
only run them when a patch asks for it.
* chore: Update evergreen config so Node.js 24 is finally optional1 parent 382a11f commit 4292e4a
File tree
12 files changed
+8274
-1270
lines changed- .evergreen
- build-variants
- scripts
12 files changed
+8274
-1270
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
| 69 | + | |
67 | 70 | | |
68 | 71 | | |
69 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
50 | 60 | | |
51 | 61 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1560 | 1560 | | |
1561 | 1561 | | |
1562 | 1562 | | |
| 1563 | + | |
1563 | 1564 | | |
1564 | 1565 | | |
1565 | 1566 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | 6 | | |
9 | 7 | | |
10 | 8 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 9 | | |
16 | 10 | | |
17 | 11 | | |
18 | 12 | | |
19 | | - | |
| 13 | + | |
20 | 14 | | |
21 | 15 | | |
22 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | 15 | | |
20 | 16 | | |
21 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
69 | 68 | | |
70 | 69 | | |
71 | 70 | | |
72 | | - | |
| 71 | + | |
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
| |||
0 commit comments