@@ -38,7 +38,7 @@ functions:
38
38
is_patch : ${is_patch}
39
39
project : ${project}
40
40
args :
41
- - .evergreen/prepare-shell.sh
41
+ - .evergreen/prepare-shell.sh
42
42
43
43
# Load the expansion file to make an evergreen variable with the current unique version
44
44
- command : expansions.update
@@ -448,7 +448,6 @@ functions:
448
448
args :
449
449
- " ${PROJECT_DIRECTORY}/.evergreen/run-mongosh-scope-test.sh"
450
450
451
-
452
451
" reset aws instance profile " :
453
452
- command : shell.exec
454
453
params :
@@ -503,14 +502,14 @@ functions:
503
502
done
504
503
505
504
" install dependencies " :
506
- - command : shell .exec
505
+ - command : subprocess .exec
507
506
type : setup
508
507
params :
509
508
working_dir : " src"
510
- script : |
511
- ${PREPARE_SHELL}
512
- NODE_LTS_VERSION=${NODE_LTS_VERSION} NPM_OPTIONS=${NPM_OPTIONS} NPM_VERSION=${NPM_VERSION}\
513
- bash ${PROJECT_DIRECTORY}/ .evergreen/install-dependencies.sh
509
+ binary : bash
510
+ add_expansions_to_env : true
511
+ args :
512
+ - .evergreen/install-dependencies.sh
514
513
515
514
" install aws-credential-providers " :
516
515
- command : shell.exec
@@ -616,16 +615,16 @@ functions:
616
615
bash ${PROJECT_DIRECTORY}/.evergreen/run-ldap-tests.sh
617
616
618
617
" run data lake tests " :
619
- - command : shell.exec
620
- type : test
621
- params :
622
- working_dir : src
623
- script : |
624
- export PROJECT_DIRECTORY="$(pwd)"
625
- export MONGODB_URI='mongodb://mhuser:pencil@localhost'
626
- export NODE_LTS_VERSION='${NODE_LTS_VERSION}'
618
+ - command : shell.exec
619
+ type : test
620
+ params :
621
+ working_dir : src
622
+ script : |
623
+ export PROJECT_DIRECTORY="$(pwd)"
624
+ export MONGODB_URI='mongodb://mhuser:pencil@localhost'
625
+ export NODE_LTS_VERSION='${NODE_LTS_VERSION}'
627
626
628
- bash ${PROJECT_DIRECTORY}/.evergreen/run-data-lake-tests.sh
627
+ bash ${PROJECT_DIRECTORY}/.evergreen/run-data-lake-tests.sh
629
628
630
629
" run tls tests " :
631
630
- command : shell.exec
@@ -1060,7 +1059,7 @@ functions:
1060
1059
params :
1061
1060
aws_key : ${aws_key}
1062
1061
aws_secret : ${aws_secret}
1063
- local_file : src/coverage/coverage-final.json
1062
+ local_file : src/coverage/coverage-final.json
1064
1063
optional : true
1065
1064
# Upload the coverage report for all tasks in a single build to the same directory.
1066
1065
# TODO NODE-4707 - change upload directory to ${UPLOAD_BUCKET}
@@ -1107,7 +1106,7 @@ functions:
1107
1106
params :
1108
1107
aws_key : ${aws_key}
1109
1108
aws_secret : ${aws_secret}
1110
- local_file : src/coverage-report/index.html
1109
+ local_file : src/coverage-report/index.html
1111
1110
remote_file : mongo-node-driver/${revision}/${version_id}/coverage/index.html
1112
1111
bucket : mciuploads
1113
1112
permissions : public-read
@@ -1140,25 +1139,30 @@ tasks:
1140
1139
- performance
1141
1140
exec_timeout_secs : 3600
1142
1141
commands :
1142
+ - command : expansions.update
1143
+ type : setup
1144
+ params :
1145
+ updates :
1146
+ - { key: NODE_LTS_VERSION, value: v18.16.0 }
1147
+ - { key: NPM_VERSION, value: "9" }
1148
+ - { key: VERSION, value: v6.0-perf }
1149
+ - { key: TOPOLOGY, value: server }
1150
+ - { key: AUTH, value: noauth }
1143
1151
- func : install dependencies
1144
- vars :
1145
- NODE_LTS_VERSION : v18.16.0
1146
- NPM_VERSION : 9
1147
1152
- func : bootstrap mongo-orchestration
1148
- vars :
1149
- VERSION : v6.0-perf
1150
- TOPOLOGY : server
1151
- AUTH : noauth
1152
1153
- func : run spec driver benchmarks
1153
1154
- command : perf.send
1154
1155
params :
1155
1156
file : src/results.json
1156
1157
1157
1158
- name : " test-gcpkms-task"
1158
1159
commands :
1160
+ - command : expansions.update
1161
+ type : setup
1162
+ params :
1163
+ updates :
1164
+ - { key: NPM_VERSION, value: "9" }
1159
1165
- func : " install dependencies"
1160
- vars :
1161
- NPM_VERSION : 9
1162
1166
# Upload node driver to a GCP instance
1163
1167
- command : subprocess.exec
1164
1168
type : setup
@@ -1188,19 +1192,20 @@ tasks:
1188
1192
args :
1189
1193
- ${DRIVERS_TOOLS}/.evergreen/csfle/gcpkms/run-command.sh
1190
1194
1191
-
1192
1195
- name : " test-gcpkms-fail-task"
1193
1196
# test-gcpkms-fail-task runs in a non-GCE environment.
1194
1197
# It is expected to fail to obtain GCE credentials.
1195
1198
commands :
1199
+ - command : expansions.update
1200
+ type : setup
1201
+ params :
1202
+ updates :
1203
+ - { key: NPM_VERSION, value: "9" }
1204
+ - { key: VERSION, value: latest }
1205
+ - { key: TOPOLOGY, value: server }
1206
+ - { key: AUTH, value: noauth }
1196
1207
- func : " install dependencies"
1197
- vars :
1198
- NPM_VERSION : 9
1199
1208
- func : bootstrap mongo-orchestration
1200
- vars :
1201
- VERSION : latest
1202
- TOPOLOGY : server
1203
- AUTH : noauth
1204
1209
- command : subprocess.exec
1205
1210
type : test
1206
1211
params :
@@ -1210,12 +1215,14 @@ tasks:
1210
1215
args :
1211
1216
- src/.evergreen/run-gcp-kms-tests.sh
1212
1217
1213
-
1214
1218
- name : " test-azurekms-task"
1215
1219
commands :
1220
+ - command : expansions.update
1221
+ type : setup
1222
+ params :
1223
+ updates :
1224
+ - { key: NPM_VERSION, value: "9" }
1216
1225
- func : " install dependencies"
1217
- vars :
1218
- NPM_VERSION : 9
1219
1226
- command : subprocess.exec
1220
1227
type : setup
1221
1228
params :
@@ -1236,14 +1243,16 @@ tasks:
1236
1243
1237
1244
- name : " test-azurekms-fail-task"
1238
1245
commands :
1246
+ - command : expansions.update
1247
+ type : setup
1248
+ params :
1249
+ updates :
1250
+ - { key: NPM_VERSION, value: "9" }
1251
+ - { key: VERSION, value: latest }
1252
+ - { key: TOPOLOGY, value: server }
1253
+ - { key: AUTH, value: noauth }
1239
1254
- func : " install dependencies"
1240
- vars :
1241
- NPM_VERSION : 9
1242
1255
- func : bootstrap mongo-orchestration
1243
- vars :
1244
- VERSION : latest
1245
- TOPOLOGY : server
1246
- AUTH : noauth
1247
1256
- command : subprocess.exec
1248
1257
type : test
1249
1258
params :
@@ -1255,9 +1264,12 @@ tasks:
1255
1264
1256
1265
- name : " oidc-auth-test-azure-latest"
1257
1266
commands :
1267
+ - command : expansions.update
1268
+ type : setup
1269
+ params :
1270
+ updates :
1271
+ - { key: NPM_VERSION, value: "9" }
1258
1272
- func : " install dependencies"
1259
- vars :
1260
- NPM_VERSION : 9
1261
1273
- command : subprocess.exec
1262
1274
params :
1263
1275
working_dir : src
@@ -1268,13 +1280,16 @@ tasks:
1268
1280
AZUREOIDC_CLIENTID : ${testazureoidc_clientid}
1269
1281
PROVIDER_NAME : azure
1270
1282
args :
1271
- - .evergreen/run-oidc-tests-azure.sh
1283
+ - .evergreen/run-oidc-tests-azure.sh
1272
1284
1273
1285
- name : " test-aws-lambda-deployed"
1274
1286
commands :
1287
+ - command : expansions.update
1288
+ type : setup
1289
+ params :
1290
+ updates :
1291
+ - { key: NPM_VERSION, value: "9" }
1275
1292
- func : " install dependencies"
1276
- vars :
1277
- NPM_VERSION : 9
1278
1293
- command : ec2.assume_role
1279
1294
params :
1280
1295
role_arn : ${LAMBDA_AWS_ROLE_ARN}
@@ -1292,9 +1307,12 @@ tasks:
1292
1307
1293
1308
- name : test-search-index-helpers
1294
1309
commands :
1310
+ - command : expansions.update
1311
+ type : setup
1312
+ params :
1313
+ updates :
1314
+ - { key: NODE_LTS_VERSION, value: "20" }
1295
1315
- func : install dependencies
1296
- vars :
1297
- NODE_LTS_VERSION : 20
1298
1316
- command : subprocess.exec
1299
1317
params :
1300
1318
working_dir : src
@@ -1408,31 +1426,31 @@ task_groups:
1408
1426
1409
1427
- name : testazureoidc_task_group
1410
1428
setup_group :
1411
- - func : fetch source
1412
- - command : shell.exec
1413
- params :
1414
- shell : bash
1415
- script : |-
1416
- set -o errexit
1417
- ${PREPARE_SHELL}
1418
- export AZUREOIDC_CLIENTID="${testazureoidc_clientid}"
1419
- export AZUREOIDC_TENANTID="${testazureoic_tenantid}"
1420
- export AZUREOIDC_SECRET="${testazureoidc_secret}"
1421
- export AZUREOIDC_KEYVAULT=${testazureoidc_keyvault}
1422
- export AZUREOIDC_DRIVERS_TOOLS="$DRIVERS_TOOLS"
1423
- export AZUREOIDC_VMNAME_PREFIX="NODE_DRIVER"
1424
- $DRIVERS_TOOLS/.evergreen/auth_oidc/azure/create-and-setup-vm.sh
1429
+ - func : fetch source
1430
+ - command : shell.exec
1431
+ params :
1432
+ shell : bash
1433
+ script : |-
1434
+ set -o errexit
1435
+ ${PREPARE_SHELL}
1436
+ export AZUREOIDC_CLIENTID="${testazureoidc_clientid}"
1437
+ export AZUREOIDC_TENANTID="${testazureoic_tenantid}"
1438
+ export AZUREOIDC_SECRET="${testazureoidc_secret}"
1439
+ export AZUREOIDC_KEYVAULT=${testazureoidc_keyvault}
1440
+ export AZUREOIDC_DRIVERS_TOOLS="$DRIVERS_TOOLS"
1441
+ export AZUREOIDC_VMNAME_PREFIX="NODE_DRIVER"
1442
+ $DRIVERS_TOOLS/.evergreen/auth_oidc/azure/create-and-setup-vm.sh
1425
1443
teardown_group :
1426
- - command : shell.exec
1427
- params :
1428
- shell : bash
1429
- script : |-
1430
- ${PREPARE_SHELL}
1431
- $DRIVERS_TOOLS/.evergreen/auth_oidc/azure/delete-vm.sh
1444
+ - command : shell.exec
1445
+ params :
1446
+ shell : bash
1447
+ script : |-
1448
+ ${PREPARE_SHELL}
1449
+ $DRIVERS_TOOLS/.evergreen/auth_oidc/azure/delete-vm.sh
1432
1450
setup_group_can_fail_task : true
1433
1451
setup_group_timeout_secs : 1800
1434
1452
tasks :
1435
- - oidc-auth-test-azure-latest
1453
+ - oidc-auth-test-azure-latest
1436
1454
1437
1455
- name : test_atlas_task_group
1438
1456
setup_group :
@@ -1503,7 +1521,7 @@ post:
1503
1521
- func : " cleanup"
1504
1522
1505
1523
ignore :
1506
- - ' *.md'
1524
+ - " *.md"
1507
1525
buildvariants :
1508
1526
- name : performance-tests
1509
1527
display_name : Performance Test
0 commit comments