Skip to content

Commit e2c5390

Browse files
committed
Drop node 16 and add node 22 to CI test matrix
1 parent ea58f30 commit e2c5390

File tree

9 files changed

+1389
-1387
lines changed

9 files changed

+1389
-1387
lines changed

.evergreen.yml

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

.evergreen/evergreen.yml.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
const path = require('path');
33

44
const NODE_JS_VERSION_20 = require('./node-20-latest.json').version;
5-
const NODE_JS_VERSION_16 = require('./node-16-latest.json').version;
5+
const NODE_JS_VERSION_22 = require('./node-22-latest.json').version;
66

77
const MONGODB_VERSIONS = [
88
{ shortName: '42xc', versionSpec: '4.2.x' },
@@ -21,7 +21,7 @@ const MONGODB_VERSIONS = [
2121
];
2222
const NODE_VERSIONS = [
2323
{ shortName: '20', versionSpec: NODE_JS_VERSION_20, skipNodeVersionCheck: '' },
24-
{ shortName: '16', versionSpec: NODE_JS_VERSION_16, skipNodeVersionCheck: '' }
24+
{ shortName: '22', versionSpec: NODE_JS_VERSION_22, skipNodeVersionCheck: '' }
2525
];
2626

2727
const pathToPackages = path.join(__dirname, '..', 'packages');
@@ -1108,7 +1108,7 @@ tasks:
11081108

11091109
###
11101110
# UNIT TESTS
1111-
# E.g. test_m60xc_n16 stands for mongod 6.0.x, community edition, Node.js 16
1111+
# E.g. test_m60xc_n20 stands for mongod 6.0.x, community edition, Node.js 20
11121112
###
11131113
<% for (const { id, nShort, nVersion, mShort, mVersion, skipNodeVersionCheck, packageName } of ALL_UNIT_TESTS) { %>
11141114
- name: test_<% out(id) %>

.evergreen/install-node.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@ set -e
22
set -x
33
export BASEDIR="$PWD/.evergreen"
44

5-
if echo $NODE_JS_VERSION | grep -q ^16 ; then
6-
NPM_VERSION=9.9.2 # 9.9.3 does not install well on Windows
7-
else
8-
NPM_VERSION=10.8.3 # 10.9.0 does not install well on Windows
9-
fi
5+
NPM_VERSION=10.8.3 # 10.9.0 does not install well on Windows
106

117
if [ "$OS" == "Windows_NT" ]; then
128
powershell "$(cygpath -w "$BASEDIR")"/InstallNode.ps1

.evergreen/node-16-latest.json

Lines changed: 0 additions & 43 deletions
This file was deleted.

.evergreen/node-22-latest.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"version": "22.11.0",
3+
"major": 22,
4+
"minor": 11,
5+
"patch": 0,
6+
"tag": "",
7+
"codename": "jod",
8+
"versionName": "v22",
9+
"start": "2024-04-24T00:00:00.000Z",
10+
"lts": "2024-10-29T00:00:00.000Z",
11+
"maintenance": "2025-10-21T00:00:00.000Z",
12+
"end": "2027-04-30T00:00:00.000Z",
13+
"releaseDate": "2024-10-29T00:00:00.000Z",
14+
"isLts": true,
15+
"files": [
16+
"aix-ppc64",
17+
"headers",
18+
"linux-arm64",
19+
"linux-armv7l",
20+
"linux-ppc64le",
21+
"linux-s390x",
22+
"linux-x64",
23+
"osx-arm64-tar",
24+
"osx-x64-pkg",
25+
"osx-x64-tar",
26+
"src",
27+
"win-arm64-7z",
28+
"win-arm64-zip",
29+
"win-x64-7z",
30+
"win-x64-exe",
31+
"win-x64-msi",
32+
"win-x64-zip",
33+
"win-x86-7z",
34+
"win-x86-exe",
35+
"win-x86-msi",
36+
"win-x86-zip"
37+
],
38+
"dependencies": {
39+
"npm": "10.9.0",
40+
"v8": "12.4.254.21",
41+
"uv": "1.48.0",
42+
"zlib": "1.3.0.1-motley",
43+
"openssl": "3.0.15+quic"
44+
}
45+
}

.github/workflows/cron-tasks.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
# this is important so git log can pick up on
2222
# the whole history to generate the list of AUTHORS
23-
fetch-depth: '0'
23+
fetch-depth: "0"
2424

2525
- name: Set up Git
2626
run: |
@@ -29,12 +29,12 @@ jobs:
2929
3030
- uses: actions/setup-node@v2
3131
with:
32-
node-version: ^16.x
33-
cache: 'npm'
32+
node-version: ^20.x
33+
cache: "npm"
3434

3535
- name: Install npm@8
3636
run: |
37-
npm install -g npm@8
37+
npm install -g npm@10
3838
3939
- name: Install Dependencies and Compile
4040
run: |
@@ -84,7 +84,7 @@ jobs:
8484
with:
8585
commit-message: Update auto-generated files
8686
branch: ci/cron-tasks-update-files
87-
title: 'chore: update auto-generated files'
87+
title: "chore: update auto-generated files"
8888
body: |
8989
- Update auto-generated files
9090

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
# this is important so git log can pick up on
2020
# the whole history to generate the list of AUTHORS
21-
fetch-depth: '0'
21+
fetch-depth: "0"
2222

2323
- name: Setup git
2424
run: |
@@ -27,12 +27,12 @@ jobs:
2727
2828
- uses: actions/setup-node@v2
2929
with:
30-
node-version: 16.x
31-
cache: 'npm'
30+
node-version: 20.x
31+
cache: "npm"
3232

33-
- name: Install npm@8.19.4
33+
- name: Install npm@10
3434
run: |
35-
npm install -g npm@8.19.4
35+
npm install -g npm@10
3636
3737
- name: Bump packages
3838
run: |
@@ -46,8 +46,8 @@ jobs:
4646
uses: peter-evans/create-pull-request@v6
4747
with:
4848
token: ${{ secrets.GITHUB_TOKEN }}
49-
commit-message: 'chore: update node.js'
49+
commit-message: "chore: update node.js"
5050
branch: ci/update-node-js-versions
51-
title: 'chore: update node.js'
51+
title: "chore: update node.js"
5252
body: |
5353
- Update node.js

package-lock.json

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"create-purls-file": "node scripts/create-purls.js .sbom/dependencies.json .sbom/node-js-dep.json > .sbom/purls.txt",
5252
"preupdate-third-party-notices": "npm run create-dependency-sbom-lists",
5353
"update-third-party-notices": "mongodb-sbom-tools generate-3rd-party-notices --product='mongosh' --dependencies=.sbom/dependencies.json > THIRD_PARTY_NOTICES.md",
54-
"update-node-js-versions": "npx @pkgjs/nv ls v20 > .evergreen/node-20-latest.json && npx @pkgjs/nv ls v16 > .evergreen/node-16-latest.json",
54+
"update-node-js-versions": "npx @pkgjs/nv ls v20 > .evergreen/node-20-latest.json && npx @pkgjs/nv ls v22 > .evergreen/node-22-latest.json",
5555
"update-evergreen-config": "npm run test-evergreen-expansions && node .evergreen/generate-evergreen-yml.js .evergreen/evergreen.yml.in > .evergreen.yml",
5656
"update-cli-usage-text": "node scripts/update-cli-usage-text.js",
5757
"update-security-test-summary": "ts-node scripts/generate-security-test-summary.ts > docs/security-test-summary.md",
@@ -129,7 +129,8 @@
129129
"webpack-cli": "^4.3.1",
130130
"which": "^2.0.2",
131131
"yaml": "^1.10.0",
132-
"depcheck": "^1.4.7"
132+
"depcheck": "^1.4.7",
133+
"@pkgjs/nv": "^0.2.2"
133134
},
134135
"optionalDependencies": {
135136
"lerna": "^8.1.8"

0 commit comments

Comments
 (0)