Skip to content

Commit a7daa71

Browse files
authored
chore(ci): use Node.js 20 in CI (#6100)
* chore(ci): use Node.js 20 in CI * fixup: bump Node.js in Dockerfile * fixup: use CustomEvent and EventTarget from window * fixup! fixup: use CustomEvent and EventTarget from window * fixup: use shell for spawning batch scripts, remove extra `which` indirection * fixup: bump kerberos to latest * fixup: check * fixup: skip kerberos rtld for macos * fixup: refactor hadron-build run error messaging * fixup: move EventTarget and friends to jsdom-extra-mocks-register * fixup: docker file version management suggestion * fixup: mention new minimum version in CONTRIBUTING.md
1 parent b2cd719 commit a7daa71

File tree

21 files changed

+92
-112
lines changed

21 files changed

+92
-112
lines changed

.evergreen/connectivity-tests/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# "bullseye" is the debian distribution that ubuntu:20.04 is based on
2-
FROM node:18-bullseye
2+
ARG NODE_JS_VERSION=20
3+
FROM node:${NODE_JS_VERSION}-bullseye
34

45
COPY .evergreen/connectivity-tests/krb5.conf /etc/krb5.conf
56

.evergreen/connectivity-tests/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ MONOREPO_ROOT_DIR="$(cd $(dirname "$0")/../..; pwd)"
77
cd $MONOREPO_ROOT_DIR
88

99
echo "building connectivity tests image from ${PWD}"
10-
docker build -t devtools-connectivity-tests -f "./.evergreen/connectivity-tests/Dockerfile" .
10+
docker build -t devtools-connectivity-tests --build-arg "NODE_JS_VERSION=$NODE_JS_VERSION" -f "./.evergreen/connectivity-tests/Dockerfile" .
1111
echo "connectivity tests image built"
1212

1313
echo running connectivity tests image

.evergreen/functions.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,7 @@ variables:
4040
EVERGREEN_VERSION_ID: ${version_id}
4141
EVERGREEN_WORKDIR: ${workdir}
4242
EVERGREEN_CREATED_AT: ${created_at}
43-
# WARN: This version is behind our electron runtime, but updating it will
44-
# drop support for some older linux platforms, so we are keeping them out of
45-
# sync for now
46-
# TODO: https://jira.mongodb.org/browse/COMPASS-6915
47-
NODE_JS_VERSION: '18.19.1'
43+
NODE_JS_VERSION: '20.16.0'
4844
NPM_VERSION: '10.2.4'
4945
# secrets
5046
HADRON_METRICS_INTERCOM_APP_ID: ${metrics_intercom_app_id}

.evergreen/print-compass-env.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,13 @@ function printCompassEnv() {
107107
printVar('DEV_VERSION_IDENTIFIER', process.env.DEV_VERSION_IDENTIFIER);
108108
printVar('EVERGREEN_REVISION', process.env.EVERGREEN_REVISION);
109109
printVar('EVERGREEN_REVISION_ORDER_ID', process.env.EVERGREEN_REVISION_ORDER_ID);
110+
111+
if (process.platform === 'darwin') {
112+
// Without this, kerberos 2.1.1 is broken on macOS, but this flag is only
113+
// really relevant for Linux.
114+
// https://jira.mongodb.org/browse/NODE-6320
115+
printVar('GYP_DEFINES', 'kerberos_use_rtld=false');
116+
}
110117
}
111118

112119
printCompassEnv();

.github/workflows/authors-and-third-party-notices.yaml

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

2626
- uses: actions/setup-node@v3
2727
with:
28-
node-version: 18.19.1
28+
node-version: 20.16.0
2929
cache: 'npm'
3030

3131
- name: Install [email protected]

.github/workflows/bump-packages.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
2727
- uses: actions/setup-node@v3
2828
with:
29-
node-version: 18.19.1
29+
node-version: 20.16.0
3030
cache: 'npm'
3131

3232
- name: Install [email protected]

.github/workflows/publish-compass.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup Node.js Environment
2323
uses: actions/setup-node@v3
2424
with:
25-
node-version: 18.19.1
25+
node-version: 20.16.0
2626
cache: 'npm'
2727

2828
- name: Install [email protected]

.github/workflows/publish-packages.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: "Use Node.js 14"
3535
uses: actions/setup-node@v3
3636
with:
37-
node-version: 18.19.1
37+
node-version: 20.16.0
3838

3939
- name: Install [email protected]
4040
run: npm install -g [email protected]

.github/workflows/start-beta.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
3030
- uses: actions/setup-node@v3
3131
with:
32-
node-version: 18.19.1
32+
node-version: 20.16.0
3333
cache: 'npm'
3434

3535
- name: Install [email protected]

.github/workflows/start-ga.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
3030
- uses: actions/setup-node@v3
3131
with:
32-
node-version: 18.19.1
32+
node-version: 20.16.0
3333
cache: 'npm'
3434

3535
- name: Install [email protected]

0 commit comments

Comments
 (0)