@@ -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
@@ -409,44 +409,6 @@ functions:
409
409
args :
410
410
- " ${PROJECT_DIRECTORY}/.evergreen/run-typescript.sh"
411
411
412
- # ##########################################
413
- # mongosh functions
414
- # ##########################################
415
- " compile mongosh " :
416
- - command : subprocess.exec
417
- params :
418
- working_dir : src
419
- env :
420
- PROJECT_DIRECTORY : ${PROJECT_DIRECTORY}
421
- TASK_ID : ${task_id}
422
- binary : bash
423
- args :
424
- - " ${PROJECT_DIRECTORY}/.evergreen/run-mongosh-integration-tests.sh"
425
-
426
- " run mongosh tests for package " :
427
- - command : subprocess.exec
428
- params :
429
- working_dir : src
430
- env :
431
- PROJECT_DIRECTORY : ${PROJECT_DIRECTORY}
432
- TASK_ID : ${task_id}
433
- MONGOSH_RUN_ONLY_IN_PACKAGE : ${mongosh_package}
434
- binary : bash
435
- args :
436
- - " ${PROJECT_DIRECTORY}/.evergreen/run-mongosh-integration-tests.sh"
437
-
438
- " run mongosh package scope test " :
439
- - command : subprocess.exec
440
- params :
441
- working_dir : src
442
- env :
443
- PROJECT_DIRECTORY : ${PROJECT_DIRECTORY}
444
- TASK_ID : ${task_id}
445
- binary : bash
446
- args :
447
- - " ${PROJECT_DIRECTORY}/.evergreen/run-mongosh-scope-test.sh"
448
-
449
-
450
412
" reset aws instance profile " :
451
413
- command : shell.exec
452
414
params :
@@ -501,14 +463,14 @@ functions:
501
463
done
502
464
503
465
" install dependencies " :
504
- - command : shell .exec
466
+ - command : subprocess .exec
505
467
type : setup
506
468
params :
507
469
working_dir : " src"
508
- script : |
509
- ${PREPARE_SHELL}
510
- NODE_LTS_VERSION=${NODE_LTS_VERSION} NPM_OPTIONS=${NPM_OPTIONS} NPM_VERSION=${NPM_VERSION}\
511
- bash ${PROJECT_DIRECTORY}/ .evergreen/install-dependencies.sh
470
+ binary : bash
471
+ add_expansions_to_env : true
472
+ args :
473
+ - .evergreen/install-dependencies.sh
512
474
513
475
" install aws-credential-providers " :
514
476
- command : shell.exec
@@ -552,6 +514,7 @@ functions:
552
514
params :
553
515
silent : true
554
516
working_dir : " src"
517
+ add_expansions_to_env : true
555
518
script : |
556
519
${PREPARE_SHELL}
557
520
cat <<EOT > prepare_client_encryption.sh
@@ -566,6 +529,7 @@ functions:
566
529
type : test
567
530
params :
568
531
working_dir : " src"
532
+ add_expansions_to_env : true
569
533
script : |
570
534
${PREPARE_SHELL}
571
535
@@ -612,16 +576,16 @@ functions:
612
576
bash ${PROJECT_DIRECTORY}/.evergreen/run-ldap-tests.sh
613
577
614
578
" run data lake tests " :
615
- - command : shell.exec
616
- type : test
617
- params :
618
- working_dir : src
619
- script : |
620
- export PROJECT_DIRECTORY="$(pwd)"
621
- export MONGODB_URI='mongodb://mhuser:pencil@localhost'
622
- export NODE_LTS_VERSION='${NODE_LTS_VERSION}'
579
+ - command : shell.exec
580
+ type : test
581
+ params :
582
+ working_dir : src
583
+ script : |
584
+ export PROJECT_DIRECTORY="$(pwd)"
585
+ export MONGODB_URI='mongodb://mhuser:pencil@localhost'
586
+ export NODE_LTS_VERSION='${NODE_LTS_VERSION}'
623
587
624
- bash ${PROJECT_DIRECTORY}/.evergreen/run-data-lake-tests.sh
588
+ bash ${PROJECT_DIRECTORY}/.evergreen/run-data-lake-tests.sh
625
589
626
590
" run tls tests " :
627
591
- command : shell.exec
@@ -1056,7 +1020,7 @@ functions:
1056
1020
params :
1057
1021
aws_key : ${aws_key}
1058
1022
aws_secret : ${aws_secret}
1059
- local_file : src/coverage/coverage-final.json
1023
+ local_file : src/coverage/coverage-final.json
1060
1024
optional : true
1061
1025
# Upload the coverage report for all tasks in a single build to the same directory.
1062
1026
# TODO NODE-4707 - change upload directory to ${UPLOAD_BUCKET}
@@ -1103,7 +1067,7 @@ functions:
1103
1067
params :
1104
1068
aws_key : ${aws_key}
1105
1069
aws_secret : ${aws_secret}
1106
- local_file : src/coverage-report/index.html
1070
+ local_file : src/coverage-report/index.html
1107
1071
remote_file : mongo-node-driver/${revision}/${version_id}/coverage/index.html
1108
1072
bucket : mciuploads
1109
1073
permissions : public-read
@@ -1136,25 +1100,30 @@ tasks:
1136
1100
- performance
1137
1101
exec_timeout_secs : 3600
1138
1102
commands :
1103
+ - command : expansions.update
1104
+ type : setup
1105
+ params :
1106
+ updates :
1107
+ - { key: NODE_LTS_VERSION, value: v18.16.0 }
1108
+ - { key: NPM_VERSION, value: "9" }
1109
+ - { key: VERSION, value: v6.0-perf }
1110
+ - { key: TOPOLOGY, value: server }
1111
+ - { key: AUTH, value: noauth }
1139
1112
- func : install dependencies
1140
- vars :
1141
- NODE_LTS_VERSION : v18.16.0
1142
- NPM_VERSION : 9
1143
1113
- func : bootstrap mongo-orchestration
1144
- vars :
1145
- VERSION : v6.0-perf
1146
- TOPOLOGY : server
1147
- AUTH : noauth
1148
1114
- func : run spec driver benchmarks
1149
1115
- command : perf.send
1150
1116
params :
1151
1117
file : src/results.json
1152
1118
1153
1119
- name : " test-gcpkms-task"
1154
1120
commands :
1121
+ - command : expansions.update
1122
+ type : setup
1123
+ params :
1124
+ updates :
1125
+ - { key: NPM_VERSION, value: "9" }
1155
1126
- func : " install dependencies"
1156
- vars :
1157
- NPM_VERSION : 9
1158
1127
# Upload node driver to a GCP instance
1159
1128
- command : subprocess.exec
1160
1129
type : setup
@@ -1184,19 +1153,20 @@ tasks:
1184
1153
args :
1185
1154
- ${DRIVERS_TOOLS}/.evergreen/csfle/gcpkms/run-command.sh
1186
1155
1187
-
1188
1156
- name : " test-gcpkms-fail-task"
1189
1157
# test-gcpkms-fail-task runs in a non-GCE environment.
1190
1158
# It is expected to fail to obtain GCE credentials.
1191
1159
commands :
1160
+ - command : expansions.update
1161
+ type : setup
1162
+ params :
1163
+ updates :
1164
+ - { key: NPM_VERSION, value: "9" }
1165
+ - { key: VERSION, value: "latest" }
1166
+ - { key: TOPOLOGY, value: "server" }
1167
+ - { key: AUTH, value: "noauth" }
1192
1168
- func : " install dependencies"
1193
- vars :
1194
- NPM_VERSION : 9
1195
1169
- func : bootstrap mongo-orchestration
1196
- vars :
1197
- VERSION : latest
1198
- TOPOLOGY : server
1199
- AUTH : noauth
1200
1170
- command : subprocess.exec
1201
1171
type : test
1202
1172
params :
@@ -1206,12 +1176,14 @@ tasks:
1206
1176
args :
1207
1177
- src/.evergreen/run-gcp-kms-tests.sh
1208
1178
1209
-
1210
1179
- name : " test-azurekms-task"
1211
1180
commands :
1181
+ - command : expansions.update
1182
+ type : setup
1183
+ params :
1184
+ updates :
1185
+ - { key: NPM_VERSION, value: "9" }
1212
1186
- func : " install dependencies"
1213
- vars :
1214
- NPM_VERSION : 9
1215
1187
- command : subprocess.exec
1216
1188
type : setup
1217
1189
params :
@@ -1232,14 +1204,16 @@ tasks:
1232
1204
1233
1205
- name : " test-azurekms-fail-task"
1234
1206
commands :
1207
+ - command : expansions.update
1208
+ type : setup
1209
+ params :
1210
+ updates :
1211
+ - { key: NPM_VERSION, value: "9" }
1212
+ - { key: VERSION, value: "latest" }
1213
+ - { key: TOPOLOGY, value: "server" }
1214
+ - { key: AUTH, value: "noauth" }
1235
1215
- func : " install dependencies"
1236
- vars :
1237
- NPM_VERSION : 9
1238
1216
- func : bootstrap mongo-orchestration
1239
- vars :
1240
- VERSION : latest
1241
- TOPOLOGY : server
1242
- AUTH : noauth
1243
1217
- command : subprocess.exec
1244
1218
type : test
1245
1219
params :
@@ -1251,9 +1225,12 @@ tasks:
1251
1225
1252
1226
- name : " oidc-auth-test-azure-latest"
1253
1227
commands :
1228
+ - command : expansions.update
1229
+ type : setup
1230
+ params :
1231
+ updates :
1232
+ - { key: NPM_VERSION, value: "9" }
1254
1233
- func : " install dependencies"
1255
- vars :
1256
- NPM_VERSION : 9
1257
1234
- command : subprocess.exec
1258
1235
params :
1259
1236
working_dir : src
@@ -1264,13 +1241,16 @@ tasks:
1264
1241
AZUREOIDC_CLIENTID : ${testazureoidc_clientid}
1265
1242
PROVIDER_NAME : azure
1266
1243
args :
1267
- - .evergreen/run-oidc-tests-azure.sh
1244
+ - .evergreen/run-oidc-tests-azure.sh
1268
1245
1269
1246
- name : " test-aws-lambda-deployed"
1270
1247
commands :
1248
+ - command : expansions.update
1249
+ type : setup
1250
+ params :
1251
+ updates :
1252
+ - { key: NPM_VERSION, value: "9" }
1271
1253
- func : " install dependencies"
1272
- vars :
1273
- NPM_VERSION : 9
1274
1254
- command : ec2.assume_role
1275
1255
params :
1276
1256
role_arn : ${LAMBDA_AWS_ROLE_ARN}
@@ -1391,31 +1371,31 @@ task_groups:
1391
1371
1392
1372
- name : testazureoidc_task_group
1393
1373
setup_group :
1394
- - func : fetch source
1395
- - command : shell.exec
1396
- params :
1397
- shell : bash
1398
- script : |-
1399
- set -o errexit
1400
- ${PREPARE_SHELL}
1401
- export AZUREOIDC_CLIENTID="${testazureoidc_clientid}"
1402
- export AZUREOIDC_TENANTID="${testazureoic_tenantid}"
1403
- export AZUREOIDC_SECRET="${testazureoidc_secret}"
1404
- export AZUREOIDC_KEYVAULT=${testazureoidc_keyvault}
1405
- export AZUREOIDC_DRIVERS_TOOLS="$DRIVERS_TOOLS"
1406
- export AZUREOIDC_VMNAME_PREFIX="NODE_DRIVER"
1407
- $DRIVERS_TOOLS/.evergreen/auth_oidc/azure/create-and-setup-vm.sh
1374
+ - func : fetch source
1375
+ - command : shell.exec
1376
+ params :
1377
+ shell : bash
1378
+ script : |-
1379
+ set -o errexit
1380
+ ${PREPARE_SHELL}
1381
+ export AZUREOIDC_CLIENTID="${testazureoidc_clientid}"
1382
+ export AZUREOIDC_TENANTID="${testazureoic_tenantid}"
1383
+ export AZUREOIDC_SECRET="${testazureoidc_secret}"
1384
+ export AZUREOIDC_KEYVAULT=${testazureoidc_keyvault}
1385
+ export AZUREOIDC_DRIVERS_TOOLS="$DRIVERS_TOOLS"
1386
+ export AZUREOIDC_VMNAME_PREFIX="NODE_DRIVER"
1387
+ $DRIVERS_TOOLS/.evergreen/auth_oidc/azure/create-and-setup-vm.sh
1408
1388
teardown_group :
1409
- - command : shell.exec
1410
- params :
1411
- shell : bash
1412
- script : |-
1413
- ${PREPARE_SHELL}
1414
- $DRIVERS_TOOLS/.evergreen/auth_oidc/azure/delete-vm.sh
1389
+ - command : shell.exec
1390
+ params :
1391
+ shell : bash
1392
+ script : |-
1393
+ ${PREPARE_SHELL}
1394
+ $DRIVERS_TOOLS/.evergreen/auth_oidc/azure/delete-vm.sh
1415
1395
setup_group_can_fail_task : true
1416
1396
setup_group_timeout_secs : 1800
1417
1397
tasks :
1418
- - oidc-auth-test-azure-latest
1398
+ - oidc-auth-test-azure-latest
1419
1399
1420
1400
- name : test_atlas_task_group
1421
1401
setup_group :
@@ -1456,7 +1436,7 @@ post:
1456
1436
- func : " cleanup"
1457
1437
1458
1438
ignore :
1459
- - ' *.md'
1439
+ - " *.md"
1460
1440
buildvariants :
1461
1441
- name : performance-tests
1462
1442
display_name : Performance Test
0 commit comments