Skip to content

ci(NODE-6557): Add Node.js 22 to support matrix #4330

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .evergreen/ci_matrix_constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ const MONGODB_VERSIONS = ['latest', 'rapid', '8.0', '7.0', '6.0', '5.0', '4.4',
const versions = [
{ codeName: 'gallium', versionNumber: 16, npmVersion: 9 },
{ codeName: 'hydrogen', versionNumber: 18, npmVersion: 'latest' },
{ codeName: 'iron', versionNumber: 20, npmVersion: 'latest' }
{ codeName: 'iron', versionNumber: 20, npmVersion: 'latest' },
{ codeName: 'jod', versionNumber: 22, npmVersion: 'latest' },
];
const NODE_VERSIONS = versions.map(({ versionNumber }) => versionNumber).sort();
const LOWEST_LTS = NODE_VERSIONS[0];
Expand Down
130 changes: 123 additions & 7 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3555,6 +3555,18 @@ tasks:
- {key: NPM_VERSION, value: latest}
- func: install dependencies
- func: run unit tests
- name: run-unit-tests-node-22
tags:
- unit-tests
commands:
- command: expansions.update
type: setup
params:
updates:
- {key: NODE_LTS_VERSION, value: '22'}
- {key: NPM_VERSION, value: latest}
- func: install dependencies
- func: run unit tests
- name: run-lint-checks
tags:
- lint-checks
Expand Down Expand Up @@ -4892,6 +4904,64 @@ buildvariants:
- test-tls-support-5.0
- test-tls-support-4.4
- test-tls-support-4.2
- name: rhel80-large-Node22
display_name: rhel8 Node22
run_on: rhel80-large
expansions:
NODE_LTS_VERSION: 22
NPM_VERSION: latest
CLIENT_ENCRYPTION: true
tasks:
- test-latest-server
- test-latest-replica_set
- test-latest-sharded_cluster
- test-rapid-server
- test-rapid-replica_set
- test-rapid-sharded_cluster
- test-8.0-server
- test-8.0-replica_set
- test-8.0-sharded_cluster
- test-7.0-server
- test-7.0-replica_set
- test-7.0-sharded_cluster
- test-6.0-server
- test-6.0-replica_set
- test-6.0-sharded_cluster
- test-5.0-server
- test-5.0-replica_set
- test-5.0-sharded_cluster
- test-4.4-server
- test-4.4-replica_set
- test-4.4-sharded_cluster
- test-4.2-server
- test-4.2-replica_set
- test-4.2-sharded_cluster
- test-4.0-server
- test-4.0-replica_set
- test-4.0-sharded_cluster
- test-latest-server-v1-api
- test-x509-authentication
- test-atlas-connectivity
- test-5.0-load-balanced
- test-6.0-load-balanced
- test-7.0-load-balanced
- test-8.0-load-balanced
- test-rapid-load-balanced
- test-latest-load-balanced
- test-auth-kerberos
- test-auth-ldap
- test-socks5
- test-socks5-csfle
- test-socks5-tls
- test-zstd-compression
- test-snappy-compression
- test-tls-support-latest
- test-tls-support-8.0
- test-tls-support-7.0
- test-tls-support-6.0
- test-tls-support-5.0
- test-tls-support-4.4
- test-tls-support-4.2
- name: rhel80-large-node-latest
display_name: rhel8 Node Latest
run_on: rhel80-large
Expand Down Expand Up @@ -5080,6 +5150,52 @@ buildvariants:
- test-tls-support-5.0
- test-tls-support-4.4
- test-tls-support-4.2
- name: windows-vsCurrent-large-Node22
display_name: Windows Node22
run_on: windows-vsCurrent-large
expansions:
NODE_LTS_VERSION: 22
NPM_VERSION: latest
tasks:
- test-latest-server
- test-latest-replica_set
- test-latest-sharded_cluster
- test-rapid-server
- test-rapid-replica_set
- test-rapid-sharded_cluster
- test-8.0-server
- test-8.0-replica_set
- test-8.0-sharded_cluster
- test-7.0-server
- test-7.0-replica_set
- test-7.0-sharded_cluster
- test-6.0-server
- test-6.0-replica_set
- test-6.0-sharded_cluster
- test-5.0-server
- test-5.0-replica_set
- test-5.0-sharded_cluster
- test-4.4-server
- test-4.4-replica_set
- test-4.4-sharded_cluster
- test-4.2-server
- test-4.2-replica_set
- test-4.2-sharded_cluster
- test-4.0-server
- test-4.0-replica_set
- test-4.0-sharded_cluster
- test-latest-server-v1-api
- test-socks5
- test-socks5-tls
- test-zstd-compression
- test-snappy-compression
- test-tls-support-latest
- test-tls-support-8.0
- test-tls-support-7.0
- test-tls-support-6.0
- test-tls-support-5.0
- test-tls-support-4.4
- test-tls-support-4.2
- name: rhel8-node16-test-csfle-mongocryptd
display_name: rhel 8 Node16 test mongocryptd
run_on: rhel80-large
Expand All @@ -5097,8 +5213,8 @@ buildvariants:
- test-5.0-csfle-mongocryptd
- test-4.4-csfle-mongocryptd
- test-4.2-csfle-mongocryptd
- name: rhel8-node20-test-csfle-mongocryptd
display_name: rhel 8 Node20 test mongocryptd
- name: rhel8-node22-test-csfle-mongocryptd
display_name: rhel 8 Node22 test mongocryptd
run_on: rhel80-large
expansions:
CLIENT_ENCRYPTION: true
Expand All @@ -5115,10 +5231,10 @@ buildvariants:
- test-4.4-csfle-mongocryptd
- test-4.2-csfle-mongocryptd
- name: macos-1100
display_name: MacOS 11 Node20
display_name: MacOS 11 Node22
run_on: macos-1100
expansions:
NODE_LTS_VERSION: 20
NODE_LTS_VERSION: 22
CLIENT_ENCRYPTION: true
tasks:
- test-rapid-server
Expand All @@ -5138,7 +5254,7 @@ buildvariants:
display_name: MONGODB-AWS Auth test
run_on: ubuntu2004-small
expansions:
NODE_LTS_VERSION: 20
NODE_LTS_VERSION: 22
tasks:
- aws-latest-auth-test-run-aws-auth-test-with-regular-aws-credentials
- aws-latest-auth-test-run-aws-auth-test-with-assume-role-credentials
Expand Down Expand Up @@ -5228,7 +5344,7 @@ buildvariants:
display_name: Atlas Data Lake Tests
run_on: ubuntu2204-large
expansions:
NODE_LTS_VERSION: 20
NODE_LTS_VERSION: 22
tasks:
- test-atlas-data-lake
- name: rhel8-custom-dependency-tests
Expand Down Expand Up @@ -5264,7 +5380,7 @@ buildvariants:
display_name: MONGODB-OIDC Auth Tests
run_on: ubuntu2004-small
expansions:
NODE_LTS_VERSION: 20
NODE_LTS_VERSION: 22
batchtime: 20160
tasks:
- testtestoidc_task_group
Expand Down