Skip to content

Commit b9bba0f

Browse files
ci(NODE-6557): Add Node.js 22 to support matrix (#4330)
Co-authored-by: Aditi Khare <[email protected]>
1 parent 1673748 commit b9bba0f

File tree

2 files changed

+125
-8
lines changed

2 files changed

+125
-8
lines changed

.evergreen/ci_matrix_constants.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ const MONGODB_VERSIONS = ['latest', 'rapid', '8.0', '7.0', '6.0', '5.0', '4.4',
22
const versions = [
33
{ codeName: 'gallium', versionNumber: 16, npmVersion: 9 },
44
{ codeName: 'hydrogen', versionNumber: 18, npmVersion: 'latest' },
5-
{ codeName: 'iron', versionNumber: 20, npmVersion: 'latest' }
5+
{ codeName: 'iron', versionNumber: 20, npmVersion: 'latest' },
6+
{ codeName: 'jod', versionNumber: 22, npmVersion: 'latest' },
67
];
78
const NODE_VERSIONS = versions.map(({ versionNumber }) => versionNumber).sort();
89
const LOWEST_LTS = NODE_VERSIONS[0];

.evergreen/config.yml

+123-7
Original file line numberDiff line numberDiff line change
@@ -3555,6 +3555,18 @@ tasks:
35553555
- {key: NPM_VERSION, value: latest}
35563556
- func: install dependencies
35573557
- func: run unit tests
3558+
- name: run-unit-tests-node-22
3559+
tags:
3560+
- unit-tests
3561+
commands:
3562+
- command: expansions.update
3563+
type: setup
3564+
params:
3565+
updates:
3566+
- {key: NODE_LTS_VERSION, value: '22'}
3567+
- {key: NPM_VERSION, value: latest}
3568+
- func: install dependencies
3569+
- func: run unit tests
35583570
- name: run-lint-checks
35593571
tags:
35603572
- lint-checks
@@ -4892,6 +4904,64 @@ buildvariants:
48924904
- test-tls-support-5.0
48934905
- test-tls-support-4.4
48944906
- test-tls-support-4.2
4907+
- name: rhel80-large-Node22
4908+
display_name: rhel8 Node22
4909+
run_on: rhel80-large
4910+
expansions:
4911+
NODE_LTS_VERSION: 22
4912+
NPM_VERSION: latest
4913+
CLIENT_ENCRYPTION: true
4914+
tasks:
4915+
- test-latest-server
4916+
- test-latest-replica_set
4917+
- test-latest-sharded_cluster
4918+
- test-rapid-server
4919+
- test-rapid-replica_set
4920+
- test-rapid-sharded_cluster
4921+
- test-8.0-server
4922+
- test-8.0-replica_set
4923+
- test-8.0-sharded_cluster
4924+
- test-7.0-server
4925+
- test-7.0-replica_set
4926+
- test-7.0-sharded_cluster
4927+
- test-6.0-server
4928+
- test-6.0-replica_set
4929+
- test-6.0-sharded_cluster
4930+
- test-5.0-server
4931+
- test-5.0-replica_set
4932+
- test-5.0-sharded_cluster
4933+
- test-4.4-server
4934+
- test-4.4-replica_set
4935+
- test-4.4-sharded_cluster
4936+
- test-4.2-server
4937+
- test-4.2-replica_set
4938+
- test-4.2-sharded_cluster
4939+
- test-4.0-server
4940+
- test-4.0-replica_set
4941+
- test-4.0-sharded_cluster
4942+
- test-latest-server-v1-api
4943+
- test-x509-authentication
4944+
- test-atlas-connectivity
4945+
- test-5.0-load-balanced
4946+
- test-6.0-load-balanced
4947+
- test-7.0-load-balanced
4948+
- test-8.0-load-balanced
4949+
- test-rapid-load-balanced
4950+
- test-latest-load-balanced
4951+
- test-auth-kerberos
4952+
- test-auth-ldap
4953+
- test-socks5
4954+
- test-socks5-csfle
4955+
- test-socks5-tls
4956+
- test-zstd-compression
4957+
- test-snappy-compression
4958+
- test-tls-support-latest
4959+
- test-tls-support-8.0
4960+
- test-tls-support-7.0
4961+
- test-tls-support-6.0
4962+
- test-tls-support-5.0
4963+
- test-tls-support-4.4
4964+
- test-tls-support-4.2
48954965
- name: rhel80-large-node-latest
48964966
display_name: rhel8 Node Latest
48974967
run_on: rhel80-large
@@ -5080,6 +5150,52 @@ buildvariants:
50805150
- test-tls-support-5.0
50815151
- test-tls-support-4.4
50825152
- test-tls-support-4.2
5153+
- name: windows-vsCurrent-large-Node22
5154+
display_name: Windows Node22
5155+
run_on: windows-vsCurrent-large
5156+
expansions:
5157+
NODE_LTS_VERSION: 22
5158+
NPM_VERSION: latest
5159+
tasks:
5160+
- test-latest-server
5161+
- test-latest-replica_set
5162+
- test-latest-sharded_cluster
5163+
- test-rapid-server
5164+
- test-rapid-replica_set
5165+
- test-rapid-sharded_cluster
5166+
- test-8.0-server
5167+
- test-8.0-replica_set
5168+
- test-8.0-sharded_cluster
5169+
- test-7.0-server
5170+
- test-7.0-replica_set
5171+
- test-7.0-sharded_cluster
5172+
- test-6.0-server
5173+
- test-6.0-replica_set
5174+
- test-6.0-sharded_cluster
5175+
- test-5.0-server
5176+
- test-5.0-replica_set
5177+
- test-5.0-sharded_cluster
5178+
- test-4.4-server
5179+
- test-4.4-replica_set
5180+
- test-4.4-sharded_cluster
5181+
- test-4.2-server
5182+
- test-4.2-replica_set
5183+
- test-4.2-sharded_cluster
5184+
- test-4.0-server
5185+
- test-4.0-replica_set
5186+
- test-4.0-sharded_cluster
5187+
- test-latest-server-v1-api
5188+
- test-socks5
5189+
- test-socks5-tls
5190+
- test-zstd-compression
5191+
- test-snappy-compression
5192+
- test-tls-support-latest
5193+
- test-tls-support-8.0
5194+
- test-tls-support-7.0
5195+
- test-tls-support-6.0
5196+
- test-tls-support-5.0
5197+
- test-tls-support-4.4
5198+
- test-tls-support-4.2
50835199
- name: rhel8-node16-test-csfle-mongocryptd
50845200
display_name: rhel 8 Node16 test mongocryptd
50855201
run_on: rhel80-large
@@ -5097,8 +5213,8 @@ buildvariants:
50975213
- test-5.0-csfle-mongocryptd
50985214
- test-4.4-csfle-mongocryptd
50995215
- test-4.2-csfle-mongocryptd
5100-
- name: rhel8-node20-test-csfle-mongocryptd
5101-
display_name: rhel 8 Node20 test mongocryptd
5216+
- name: rhel8-node22-test-csfle-mongocryptd
5217+
display_name: rhel 8 Node22 test mongocryptd
51025218
run_on: rhel80-large
51035219
expansions:
51045220
CLIENT_ENCRYPTION: true
@@ -5115,10 +5231,10 @@ buildvariants:
51155231
- test-4.4-csfle-mongocryptd
51165232
- test-4.2-csfle-mongocryptd
51175233
- name: macos-1100
5118-
display_name: MacOS 11 Node20
5234+
display_name: MacOS 11 Node22
51195235
run_on: macos-1100
51205236
expansions:
5121-
NODE_LTS_VERSION: 20
5237+
NODE_LTS_VERSION: 22
51225238
CLIENT_ENCRYPTION: true
51235239
tasks:
51245240
- test-rapid-server
@@ -5138,7 +5254,7 @@ buildvariants:
51385254
display_name: MONGODB-AWS Auth test
51395255
run_on: ubuntu2004-small
51405256
expansions:
5141-
NODE_LTS_VERSION: 20
5257+
NODE_LTS_VERSION: 22
51425258
tasks:
51435259
- aws-latest-auth-test-run-aws-auth-test-with-regular-aws-credentials
51445260
- aws-latest-auth-test-run-aws-auth-test-with-assume-role-credentials
@@ -5228,7 +5344,7 @@ buildvariants:
52285344
display_name: Atlas Data Lake Tests
52295345
run_on: ubuntu2204-large
52305346
expansions:
5231-
NODE_LTS_VERSION: 20
5347+
NODE_LTS_VERSION: 22
52325348
tasks:
52335349
- test-atlas-data-lake
52345350
- name: rhel8-custom-dependency-tests
@@ -5264,7 +5380,7 @@ buildvariants:
52645380
display_name: MONGODB-OIDC Auth Tests
52655381
run_on: ubuntu2004-small
52665382
expansions:
5267-
NODE_LTS_VERSION: 20
5383+
NODE_LTS_VERSION: 22
52685384
batchtime: 20160
52695385
tasks:
52705386
- testtestoidc_task_group

0 commit comments

Comments
 (0)