Skip to content

Commit 06cca65

Browse files
authored
chore(deps): update boxednode to 3.0.0, so we can support Node.js 24 MONGOSH-2995 (#2582)
* 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 our packages and the smoke tests to use also Node 24 * chore: Setup MSBuild for Windows builds (required for Node.js 24) * chore: Upgrade node-gyp, when supported, so it works with clang-cl Older versions of node-gyp use the /LCTG:INCREMENTAL flag, which is not supported by clang-cl: it's only supported in the "standard" msvc compiler. * chore: Upgrade dependencies and use bundled npm on smoke tests The latest Node.js version should provide the best npm version with it. npm@10 is already older to what Node.js 24 provides (npm@11). * chore: Update to latest node-gyp. It should work with Node.js>=20 * chore: Upgrade all GHA to use the latest Node.js setup * chore: Use bundled MSBuild in the GHA, it should still work * chore: Rollback changes on .evergreen-nightly-driver
1 parent d748962 commit 06cca65

File tree

11 files changed

+771
-497
lines changed

11 files changed

+771
-497
lines changed

.github/workflows/bump-auxiliary-packages.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
app-id: ${{ vars.DEVTOOLS_BOT_APP_ID }}
2525
private-key: ${{ secrets.DEVTOOLS_BOT_PRIVATE_KEY }}
26-
- uses: actions/checkout@v4
26+
- uses: actions/checkout@v5
2727
with:
2828
# don't checkout a detached HEAD
2929
ref: ${{ github.head_ref }}
@@ -33,14 +33,10 @@ jobs:
3333
fetch-depth: "0"
3434
token: ${{ steps.app-token.outputs.token }}
3535

36-
- uses: actions/setup-node@v4
36+
- uses: actions/setup-node@v6
3737
with:
38-
node-version: ^20.x
39-
cache: "npm"
40-
41-
- name: Install [email protected]
42-
run: |
43-
npm install -g [email protected]
38+
check-latest: true
39+
node-version: 24.x
4440

4541
- name: Install Dependencies
4642
run: |

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141

4242
steps:
4343
- name: Checkout repository
44-
uses: actions/checkout@v3
44+
uses: actions/checkout@v5
4545
with:
4646
ref: ${{ github.event.inputs.sha || github.sha }}
4747

.github/workflows/cron-tasks.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
app-id: ${{ vars.DEVTOOLS_BOT_APP_ID }}
2727
private-key: ${{ secrets.DEVTOOLS_BOT_PRIVATE_KEY }}
2828

29-
- uses: actions/checkout@v4
29+
- uses: actions/checkout@v5
3030
with:
3131
# don't checkout a detached HEAD
3232
ref: ${{ github.head_ref }}
@@ -36,14 +36,10 @@ jobs:
3636
fetch-depth: "0"
3737
token: ${{ steps.app-token.outputs.token }}
3838

39-
- uses: actions/setup-node@v4
39+
- uses: actions/setup-node@v6
4040
with:
41-
node-version: ^20.x
42-
cache: "npm"
43-
44-
- name: Install npm@8
45-
run: |
46-
npm install -g npm@10
41+
check-latest: true
42+
node-version: 24.x
4743

4844
- name: Install Dependencies and Compile
4945
run: |

.github/workflows/merge-release-tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
app-id: ${{ vars.DEVTOOLS_BOT_APP_ID }}
2020
private-key: ${{ secrets.DEVTOOLS_BOT_PRIVATE_KEY }}
2121

22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@v5
2323
with:
2424
ref: main
2525
fetch-depth: "0"

.github/workflows/publish-auxiliary-packages.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
app-id: ${{ vars.DEVTOOLS_BOT_APP_ID }}
3535
private-key: ${{ secrets.DEVTOOLS_BOT_PRIVATE_KEY }}
3636

37-
- uses: actions/checkout@v4
37+
- uses: actions/checkout@v5
3838
with:
3939
# don't checkout a detatched HEAD
4040
ref: ${{ github.head_ref }}
@@ -44,13 +44,10 @@ jobs:
4444
fetch-depth: "0"
4545
token: ${{ steps.app-token.outputs.token }}
4646

47-
- name: "Use Node.js 20"
48-
uses: actions/setup-node@v4
47+
- uses: actions/setup-node@v6
4948
with:
50-
node-version: ^20.x
51-
52-
- name: Install [email protected]
53-
run: npm install -g [email protected]
49+
check-latest: true
50+
node-version: 24.x
5451

5552
- name: Install Dependencies
5653
run: |

.github/workflows/smoke-tests.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,20 @@ jobs:
1414
strategy:
1515
matrix:
1616
runner: [ubuntu, macos, windows]
17-
node: [20.x, 22.x, 23.x]
17+
node: [20.x, 22.x, 24.x]
1818
fail-fast: false
1919
runs-on: ${{ matrix.runner }}-latest
20-
timeout-minutes: 20 # Installing dependencies on windows can take a while
20+
timeout-minutes: 30 # Installing dependencies on windows can take a while
2121
env:
2222
npm_config_loglevel: verbose
2323
npm_config_foreground_scripts: "true"
2424
PUPPETEER_SKIP_DOWNLOAD: "true"
2525
steps:
26-
- uses: actions/checkout@v4
27-
- uses: actions/setup-node@v4
26+
- uses: actions/checkout@v5
27+
- uses: actions/setup-node@v6
2828
with:
29+
check-latest: true
2930
node-version: ${{ matrix.node }}
30-
cache: "npm"
31-
32-
- name: Install npm@10
33-
run: npm install -g npm@10
3431

3532
- name: Install dependencies
3633
run: npm ci

.github/workflows/update-cta.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
npm_config_foreground_scripts: "true"
3333
PUPPETEER_SKIP_DOWNLOAD: "true"
3434
steps:
35-
- uses: actions/checkout@v4
35+
- uses: actions/checkout@v5
3636
- name: configure aws credentials
3737
uses: aws-actions/[email protected]
3838
with:
@@ -41,10 +41,10 @@ jobs:
4141
- name: Sts GetCallerIdentity
4242
run: |
4343
aws sts get-caller-identity
44-
- uses: actions/setup-node@v4
44+
- uses: actions/setup-node@v6
4545
with:
46-
node-version: ^20.x
47-
cache: "npm"
46+
check-latest: true
47+
node-version: 24.x
4848
- name: Install Dependencies and Compile
4949
run: |
5050
npm ci

.github/workflows/update-node-js.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,16 @@ jobs:
2020
app-id: ${{ vars.DEVTOOLS_BOT_APP_ID }}
2121
private-key: ${{ secrets.DEVTOOLS_BOT_PRIVATE_KEY }}
2222

23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@v5
2424
with:
2525
# don't checkout a detached HEAD
2626
ref: ${{ github.head_ref }}
2727
token: ${{ steps.app-token.outputs.token }}
2828

29-
- uses: actions/setup-node@v4
29+
- uses: actions/setup-node@v6
3030
with:
31-
node-version: 20.x
32-
cache: "npm"
33-
34-
- name: Install npm@10
35-
run: |
36-
npm install -g npm@10
31+
check-latest: true
32+
node-version: 24.x
3733

3834
- name: Bump packages
3935
run: |

0 commit comments

Comments
 (0)