Skip to content

Commit 85996c3

Browse files
authored
test(NODE-5618): use npm 9 on eol node versions (#3862)
1 parent cdc3d53 commit 85996c3

File tree

5 files changed

+76
-17
lines changed

5 files changed

+76
-17
lines changed

.evergreen/config.in.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ functions:
413413
working_dir: "src"
414414
script: |
415415
${PREPARE_SHELL}
416-
NODE_LTS_VERSION=${NODE_LTS_VERSION} NPM_OPTIONS=${NPM_OPTIONS}\
416+
NODE_LTS_VERSION=${NODE_LTS_VERSION} NPM_OPTIONS=${NPM_OPTIONS} NPM_VERSION=${NPM_VERSION}\
417417
bash ${PROJECT_DIRECTORY}/.evergreen/install-dependencies.sh
418418
419419
"run atlas tests":
@@ -1048,6 +1048,7 @@ tasks:
10481048
- func: install dependencies
10491049
vars:
10501050
NODE_LTS_VERSION: 18
1051+
NPM_VERSION: 9
10511052
- func: bootstrap mongo-orchestration
10521053
vars:
10531054
VERSION: rapid

.evergreen/config.yml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ functions:
365365
working_dir: src
366366
script: |
367367
${PREPARE_SHELL}
368-
NODE_LTS_VERSION=${NODE_LTS_VERSION} NPM_OPTIONS=${NPM_OPTIONS}\
368+
NODE_LTS_VERSION=${NODE_LTS_VERSION} NPM_OPTIONS=${NPM_OPTIONS} NPM_VERSION=${NPM_VERSION}\
369369
bash ${PROJECT_DIRECTORY}/.evergreen/install-dependencies.sh
370370
run atlas tests:
371371
- command: shell.exec
@@ -986,6 +986,7 @@ tasks:
986986
- func: install dependencies
987987
vars:
988988
NODE_LTS_VERSION: 18
989+
NPM_VERSION: 9
989990
- func: bootstrap mongo-orchestration
990991
vars:
991992
VERSION: rapid
@@ -2378,6 +2379,7 @@ tasks:
23782379
- func: install dependencies
23792380
vars:
23802381
NODE_LTS_VERSION: 12
2382+
NPM_VERSION: 8
23812383
- func: run unit tests
23822384
- name: run-lint-checks
23832385
tags:
@@ -2386,6 +2388,7 @@ tasks:
23862388
- func: install dependencies
23872389
vars:
23882390
NODE_LTS_VERSION: 12
2391+
NPM_VERSION: 8
23892392
- func: run lint checks
23902393
- name: check-types-typescript-next
23912394
tags:
@@ -2404,6 +2407,7 @@ tasks:
24042407
- func: install dependencies
24052408
vars:
24062409
NODE_LTS_VERSION: 12
2410+
NPM_VERSION: 8
24072411
- func: compile driver
24082412
vars:
24092413
TS_VERSION: current
@@ -2443,6 +2447,7 @@ tasks:
24432447
- func: install dependencies
24442448
vars:
24452449
NODE_LTS_VERSION: 12
2450+
NPM_VERSION: 8
24462451
- func: bootstrap mongo-orchestration
24472452
vars:
24482453
VERSION: '5.0'
@@ -2457,6 +2462,7 @@ tasks:
24572462
- func: install dependencies
24582463
vars:
24592464
NODE_LTS_VERSION: 12
2465+
NPM_VERSION: 8
24602466
- func: bootstrap mongo-orchestration
24612467
vars:
24622468
VERSION: '5.0'
@@ -2466,6 +2472,7 @@ tasks:
24662472
func: run bson-ext test
24672473
vars:
24682474
NODE_LTS_VERSION: 12
2475+
NPM_VERSION: 8
24692476
TEST_NPM_SCRIPT: check:test
24702477
- name: run-bson-ext-unit
24712478
tags:
@@ -2474,6 +2481,7 @@ tasks:
24742481
- func: install dependencies
24752482
vars:
24762483
NODE_LTS_VERSION: 12
2484+
NPM_VERSION: 8
24772485
- func: bootstrap mongo-orchestration
24782486
vars:
24792487
VERSION: '5.0'
@@ -2483,6 +2491,7 @@ tasks:
24832491
func: run bson-ext test
24842492
vars:
24852493
NODE_LTS_VERSION: 12
2494+
NPM_VERSION: 8
24862495
TEST_NPM_SCRIPT: check:unit
24872496
- name: run-custom-csfle-tests-5.0-pinned-commit
24882497
tags:
@@ -2491,6 +2500,7 @@ tasks:
24912500
- func: install dependencies
24922501
vars:
24932502
NODE_LTS_VERSION: 12
2503+
NPM_VERSION: 8
24942504
- func: bootstrap mongo-orchestration
24952505
vars:
24962506
VERSION: '5.0'
@@ -2506,6 +2516,7 @@ tasks:
25062516
- func: install dependencies
25072517
vars:
25082518
NODE_LTS_VERSION: 12
2519+
NPM_VERSION: 8
25092520
- func: bootstrap mongo-orchestration
25102521
vars:
25112522
VERSION: '5.0'
@@ -2521,6 +2532,7 @@ tasks:
25212532
- func: install dependencies
25222533
vars:
25232534
NODE_LTS_VERSION: 12
2535+
NPM_VERSION: 8
25242536
- func: bootstrap mongo-orchestration
25252537
vars:
25262538
VERSION: rapid
@@ -2536,6 +2548,7 @@ tasks:
25362548
- func: install dependencies
25372549
vars:
25382550
NODE_LTS_VERSION: 12
2551+
NPM_VERSION: 8
25392552
- func: bootstrap mongo-orchestration
25402553
vars:
25412554
VERSION: rapid
@@ -2551,6 +2564,7 @@ tasks:
25512564
- func: install dependencies
25522565
vars:
25532566
NODE_LTS_VERSION: 12
2567+
NPM_VERSION: 8
25542568
- func: bootstrap mongo-orchestration
25552569
vars:
25562570
VERSION: latest
@@ -2566,6 +2580,7 @@ tasks:
25662580
- func: install dependencies
25672581
vars:
25682582
NODE_LTS_VERSION: 12
2583+
NPM_VERSION: 8
25692584
- func: bootstrap mongo-orchestration
25702585
vars:
25712586
VERSION: latest
@@ -2986,6 +3001,7 @@ tasks:
29863001
- func: install dependencies
29873002
vars:
29883003
NODE_LTS_VERSION: 16
3004+
NPM_VERSION: 9
29893005
- func: run mongosh tests for package
29903006
vars:
29913007
mongosh_package: browser-repl
@@ -2997,6 +3013,7 @@ tasks:
29973013
- func: install dependencies
29983014
vars:
29993015
NODE_LTS_VERSION: 16
3016+
NPM_VERSION: 9
30003017
- func: run mongosh tests for package
30013018
vars:
30023019
mongosh_package: browser-runtime-electron
@@ -3008,6 +3025,7 @@ tasks:
30083025
- func: install dependencies
30093026
vars:
30103027
NODE_LTS_VERSION: 16
3028+
NPM_VERSION: 9
30113029
- func: run mongosh tests for package
30123030
vars:
30133031
mongosh_package: cli-repl
@@ -3019,6 +3037,7 @@ tasks:
30193037
- func: install dependencies
30203038
vars:
30213039
NODE_LTS_VERSION: 16
3040+
NPM_VERSION: 9
30223041
- func: run mongosh tests for package
30233042
vars:
30243043
mongosh_package: connectivity-tests
@@ -3030,6 +3049,7 @@ tasks:
30303049
- func: install dependencies
30313050
vars:
30323051
NODE_LTS_VERSION: 16
3052+
NPM_VERSION: 9
30333053
- func: run mongosh tests for package
30343054
vars:
30353055
mongosh_package: mongosh
@@ -3041,6 +3061,7 @@ tasks:
30413061
- func: install dependencies
30423062
vars:
30433063
NODE_LTS_VERSION: 16
3064+
NPM_VERSION: 9
30443065
- func: run mongosh tests for package
30453066
vars:
30463067
mongosh_package: node-runtime-worker-thread
@@ -3052,6 +3073,7 @@ tasks:
30523073
- func: install dependencies
30533074
vars:
30543075
NODE_LTS_VERSION: 16
3076+
NPM_VERSION: 9
30553077
- func: run mongosh tests for package
30563078
vars:
30573079
mongosh_package: service-provider-server
@@ -3062,6 +3084,7 @@ tasks:
30623084
- func: install dependencies
30633085
vars:
30643086
NODE_LTS_VERSION: 16
3087+
NPM_VERSION: 9
30653088
- func: compile mongosh
30663089
- name: verify-mongosh-scopes
30673090
tags:
@@ -3070,6 +3093,7 @@ tasks:
30703093
- func: install dependencies
30713094
vars:
30723095
NODE_LTS_VERSION: 16
3096+
NPM_VERSION: 9
30733097
- func: run mongosh package scope test
30743098
task_groups:
30753099
- name: serverless_task_group
@@ -3128,6 +3152,7 @@ buildvariants:
31283152
run_on: rhel80-large
31293153
expansions:
31303154
NODE_LTS_VERSION: 12
3155+
NPM_VERSION: 8
31313156
CLIENT_ENCRYPTION: true
31323157
tasks:
31333158
- test-latest-server
@@ -3179,6 +3204,7 @@ buildvariants:
31793204
run_on: rhel80-large
31803205
expansions:
31813206
NODE_LTS_VERSION: 14
3207+
NPM_VERSION: 9
31823208
CLIENT_ENCRYPTION: true
31833209
tasks:
31843210
- test-latest-server
@@ -3230,6 +3256,7 @@ buildvariants:
32303256
run_on: rhel80-large
32313257
expansions:
32323258
NODE_LTS_VERSION: 16
3259+
NPM_VERSION: 9
32333260
CLIENT_ENCRYPTION: true
32343261
tasks:
32353262
- test-latest-server
@@ -3279,6 +3306,7 @@ buildvariants:
32793306
run_on: rhel80-large
32803307
expansions:
32813308
NODE_LTS_VERSION: 18
3309+
NPM_VERSION: latest
32823310
CLIENT_ENCRYPTION: true
32833311
tasks:
32843312
- test-latest-server
@@ -3327,6 +3355,7 @@ buildvariants:
33273355
run_on: rhel80-large
33283356
expansions:
33293357
NODE_LTS_VERSION: 20
3358+
NPM_VERSION: latest
33303359
CLIENT_ENCRYPTION: true
33313360
tasks:
33323361
- test-latest-server
@@ -3424,6 +3453,7 @@ buildvariants:
34243453
run_on: windows-vsCurrent-large
34253454
expansions:
34263455
NODE_LTS_VERSION: 14
3456+
NPM_VERSION: 9
34273457
tasks:
34283458
- test-latest-server
34293459
- test-latest-replica_set
@@ -3468,6 +3498,7 @@ buildvariants:
34683498
run_on: windows-vsCurrent-large
34693499
expansions:
34703500
NODE_LTS_VERSION: 16
3501+
NPM_VERSION: 9
34713502
tasks:
34723503
- test-latest-server
34733504
- test-latest-replica_set
@@ -3510,6 +3541,7 @@ buildvariants:
35103541
run_on: windows-vsCurrent-large
35113542
expansions:
35123543
NODE_LTS_VERSION: 18
3544+
NPM_VERSION: latest
35133545
tasks:
35143546
- test-latest-server
35153547
- test-latest-replica_set
@@ -3552,6 +3584,7 @@ buildvariants:
35523584
run_on: windows-vsCurrent-large
35533585
expansions:
35543586
NODE_LTS_VERSION: 20
3587+
NPM_VERSION: latest
35553588
tasks:
35563589
- test-latest-server
35573590
- test-latest-replica_set
@@ -3632,6 +3665,7 @@ buildvariants:
36323665
run_on: ubuntu1804-large
36333666
expansions:
36343667
NODE_LTS_VERSION: 12
3668+
NPM_VERSION: 8
36353669
tasks:
36363670
- aws-latest-auth-test-run-aws-auth-test-with-regular-aws-credentials
36373671
- aws-latest-auth-test-run-aws-auth-test-with-assume-role-credentials
@@ -3716,6 +3750,7 @@ buildvariants:
37163750
run_on: rhel80-large
37173751
expansions:
37183752
NODE_LTS_VERSION: 12
3753+
NPM_VERSION: 8
37193754
tasks:
37203755
- serverless_task_group
37213756
- name: rhel8-no-auth-tests

0 commit comments

Comments
 (0)