Skip to content

Commit

Permalink
test(NODE-5618): use npm 9 on eol node versions (#3862)
Browse files Browse the repository at this point in the history
  • Loading branch information
durran authored Sep 14, 2023
1 parent cdc3d53 commit 85996c3
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 17 deletions.
3 changes: 2 additions & 1 deletion .evergreen/config.in.yml
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ functions:
working_dir: "src"
script: |
${PREPARE_SHELL}
NODE_LTS_VERSION=${NODE_LTS_VERSION} NPM_OPTIONS=${NPM_OPTIONS}\
NODE_LTS_VERSION=${NODE_LTS_VERSION} NPM_OPTIONS=${NPM_OPTIONS} NPM_VERSION=${NPM_VERSION}\
bash ${PROJECT_DIRECTORY}/.evergreen/install-dependencies.sh
"run atlas tests":
Expand Down Expand Up @@ -1048,6 +1048,7 @@ tasks:
- func: install dependencies
vars:
NODE_LTS_VERSION: 18
NPM_VERSION: 9
- func: bootstrap mongo-orchestration
vars:
VERSION: rapid
Expand Down
37 changes: 36 additions & 1 deletion .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ functions:
working_dir: src
script: |
${PREPARE_SHELL}
NODE_LTS_VERSION=${NODE_LTS_VERSION} NPM_OPTIONS=${NPM_OPTIONS}\
NODE_LTS_VERSION=${NODE_LTS_VERSION} NPM_OPTIONS=${NPM_OPTIONS} NPM_VERSION=${NPM_VERSION}\
bash ${PROJECT_DIRECTORY}/.evergreen/install-dependencies.sh
run atlas tests:
- command: shell.exec
Expand Down Expand Up @@ -986,6 +986,7 @@ tasks:
- func: install dependencies
vars:
NODE_LTS_VERSION: 18
NPM_VERSION: 9
- func: bootstrap mongo-orchestration
vars:
VERSION: rapid
Expand Down Expand Up @@ -2378,6 +2379,7 @@ tasks:
- func: install dependencies
vars:
NODE_LTS_VERSION: 12
NPM_VERSION: 8
- func: run unit tests
- name: run-lint-checks
tags:
Expand All @@ -2386,6 +2388,7 @@ tasks:
- func: install dependencies
vars:
NODE_LTS_VERSION: 12
NPM_VERSION: 8
- func: run lint checks
- name: check-types-typescript-next
tags:
Expand All @@ -2404,6 +2407,7 @@ tasks:
- func: install dependencies
vars:
NODE_LTS_VERSION: 12
NPM_VERSION: 8
- func: compile driver
vars:
TS_VERSION: current
Expand Down Expand Up @@ -2443,6 +2447,7 @@ tasks:
- func: install dependencies
vars:
NODE_LTS_VERSION: 12
NPM_VERSION: 8
- func: bootstrap mongo-orchestration
vars:
VERSION: '5.0'
Expand All @@ -2457,6 +2462,7 @@ tasks:
- func: install dependencies
vars:
NODE_LTS_VERSION: 12
NPM_VERSION: 8
- func: bootstrap mongo-orchestration
vars:
VERSION: '5.0'
Expand All @@ -2466,6 +2472,7 @@ tasks:
func: run bson-ext test
vars:
NODE_LTS_VERSION: 12
NPM_VERSION: 8
TEST_NPM_SCRIPT: check:test
- name: run-bson-ext-unit
tags:
Expand All @@ -2474,6 +2481,7 @@ tasks:
- func: install dependencies
vars:
NODE_LTS_VERSION: 12
NPM_VERSION: 8
- func: bootstrap mongo-orchestration
vars:
VERSION: '5.0'
Expand All @@ -2483,6 +2491,7 @@ tasks:
func: run bson-ext test
vars:
NODE_LTS_VERSION: 12
NPM_VERSION: 8
TEST_NPM_SCRIPT: check:unit
- name: run-custom-csfle-tests-5.0-pinned-commit
tags:
Expand All @@ -2491,6 +2500,7 @@ tasks:
- func: install dependencies
vars:
NODE_LTS_VERSION: 12
NPM_VERSION: 8
- func: bootstrap mongo-orchestration
vars:
VERSION: '5.0'
Expand All @@ -2506,6 +2516,7 @@ tasks:
- func: install dependencies
vars:
NODE_LTS_VERSION: 12
NPM_VERSION: 8
- func: bootstrap mongo-orchestration
vars:
VERSION: '5.0'
Expand All @@ -2521,6 +2532,7 @@ tasks:
- func: install dependencies
vars:
NODE_LTS_VERSION: 12
NPM_VERSION: 8
- func: bootstrap mongo-orchestration
vars:
VERSION: rapid
Expand All @@ -2536,6 +2548,7 @@ tasks:
- func: install dependencies
vars:
NODE_LTS_VERSION: 12
NPM_VERSION: 8
- func: bootstrap mongo-orchestration
vars:
VERSION: rapid
Expand All @@ -2551,6 +2564,7 @@ tasks:
- func: install dependencies
vars:
NODE_LTS_VERSION: 12
NPM_VERSION: 8
- func: bootstrap mongo-orchestration
vars:
VERSION: latest
Expand All @@ -2566,6 +2580,7 @@ tasks:
- func: install dependencies
vars:
NODE_LTS_VERSION: 12
NPM_VERSION: 8
- func: bootstrap mongo-orchestration
vars:
VERSION: latest
Expand Down Expand Up @@ -2986,6 +3001,7 @@ tasks:
- func: install dependencies
vars:
NODE_LTS_VERSION: 16
NPM_VERSION: 9
- func: run mongosh tests for package
vars:
mongosh_package: browser-repl
Expand All @@ -2997,6 +3013,7 @@ tasks:
- func: install dependencies
vars:
NODE_LTS_VERSION: 16
NPM_VERSION: 9
- func: run mongosh tests for package
vars:
mongosh_package: browser-runtime-electron
Expand All @@ -3008,6 +3025,7 @@ tasks:
- func: install dependencies
vars:
NODE_LTS_VERSION: 16
NPM_VERSION: 9
- func: run mongosh tests for package
vars:
mongosh_package: cli-repl
Expand All @@ -3019,6 +3037,7 @@ tasks:
- func: install dependencies
vars:
NODE_LTS_VERSION: 16
NPM_VERSION: 9
- func: run mongosh tests for package
vars:
mongosh_package: connectivity-tests
Expand All @@ -3030,6 +3049,7 @@ tasks:
- func: install dependencies
vars:
NODE_LTS_VERSION: 16
NPM_VERSION: 9
- func: run mongosh tests for package
vars:
mongosh_package: mongosh
Expand All @@ -3041,6 +3061,7 @@ tasks:
- func: install dependencies
vars:
NODE_LTS_VERSION: 16
NPM_VERSION: 9
- func: run mongosh tests for package
vars:
mongosh_package: node-runtime-worker-thread
Expand All @@ -3052,6 +3073,7 @@ tasks:
- func: install dependencies
vars:
NODE_LTS_VERSION: 16
NPM_VERSION: 9
- func: run mongosh tests for package
vars:
mongosh_package: service-provider-server
Expand All @@ -3062,6 +3084,7 @@ tasks:
- func: install dependencies
vars:
NODE_LTS_VERSION: 16
NPM_VERSION: 9
- func: compile mongosh
- name: verify-mongosh-scopes
tags:
Expand All @@ -3070,6 +3093,7 @@ tasks:
- func: install dependencies
vars:
NODE_LTS_VERSION: 16
NPM_VERSION: 9
- func: run mongosh package scope test
task_groups:
- name: serverless_task_group
Expand Down Expand Up @@ -3128,6 +3152,7 @@ buildvariants:
run_on: rhel80-large
expansions:
NODE_LTS_VERSION: 12
NPM_VERSION: 8
CLIENT_ENCRYPTION: true
tasks:
- test-latest-server
Expand Down Expand Up @@ -3179,6 +3204,7 @@ buildvariants:
run_on: rhel80-large
expansions:
NODE_LTS_VERSION: 14
NPM_VERSION: 9
CLIENT_ENCRYPTION: true
tasks:
- test-latest-server
Expand Down Expand Up @@ -3230,6 +3256,7 @@ buildvariants:
run_on: rhel80-large
expansions:
NODE_LTS_VERSION: 16
NPM_VERSION: 9
CLIENT_ENCRYPTION: true
tasks:
- test-latest-server
Expand Down Expand Up @@ -3279,6 +3306,7 @@ buildvariants:
run_on: rhel80-large
expansions:
NODE_LTS_VERSION: 18
NPM_VERSION: latest
CLIENT_ENCRYPTION: true
tasks:
- test-latest-server
Expand Down Expand Up @@ -3327,6 +3355,7 @@ buildvariants:
run_on: rhel80-large
expansions:
NODE_LTS_VERSION: 20
NPM_VERSION: latest
CLIENT_ENCRYPTION: true
tasks:
- test-latest-server
Expand Down Expand Up @@ -3424,6 +3453,7 @@ buildvariants:
run_on: windows-vsCurrent-large
expansions:
NODE_LTS_VERSION: 14
NPM_VERSION: 9
tasks:
- test-latest-server
- test-latest-replica_set
Expand Down Expand Up @@ -3468,6 +3498,7 @@ buildvariants:
run_on: windows-vsCurrent-large
expansions:
NODE_LTS_VERSION: 16
NPM_VERSION: 9
tasks:
- test-latest-server
- test-latest-replica_set
Expand Down Expand Up @@ -3510,6 +3541,7 @@ buildvariants:
run_on: windows-vsCurrent-large
expansions:
NODE_LTS_VERSION: 18
NPM_VERSION: latest
tasks:
- test-latest-server
- test-latest-replica_set
Expand Down Expand Up @@ -3552,6 +3584,7 @@ buildvariants:
run_on: windows-vsCurrent-large
expansions:
NODE_LTS_VERSION: 20
NPM_VERSION: latest
tasks:
- test-latest-server
- test-latest-replica_set
Expand Down Expand Up @@ -3632,6 +3665,7 @@ buildvariants:
run_on: ubuntu1804-large
expansions:
NODE_LTS_VERSION: 12
NPM_VERSION: 8
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 @@ -3716,6 +3750,7 @@ buildvariants:
run_on: rhel80-large
expansions:
NODE_LTS_VERSION: 12
NPM_VERSION: 8
tasks:
- serverless_task_group
- name: rhel8-no-auth-tests
Expand Down
Loading

0 comments on commit 85996c3

Please sign in to comment.