@@ -322,6 +322,7 @@ functions:
322
322
timeout_secs : 60
323
323
env :
324
324
PROJECT_DIRECTORY : ${PROJECT_DIRECTORY}
325
+ DRIVERS_TOOLS : ${DRIVERS_TOOLS}
325
326
binary : bash
326
327
args :
327
328
- " ${PROJECT_DIRECTORY}/.evergreen/run-lint-checks.sh"
@@ -334,6 +335,7 @@ functions:
334
335
timeout_secs : 60
335
336
env :
336
337
PROJECT_DIRECTORY : ${PROJECT_DIRECTORY}
338
+ DRIVERS_TOOLS : ${DRIVERS_TOOLS}
337
339
binary : bash
338
340
args :
339
341
- " ${PROJECT_DIRECTORY}/.evergreen/run-unit-tests.sh"
@@ -346,6 +348,7 @@ functions:
346
348
timeout_secs : 60
347
349
env :
348
350
PROJECT_DIRECTORY : ${PROJECT_DIRECTORY}
351
+ DRIVERS_TOOLS : ${DRIVERS_TOOLS}
349
352
TS_VERSION : ${TS_VERSION}
350
353
TS_CHECK : CHECK_TYPES
351
354
TYPES_VERSION : ${TYPES_VERSION}
@@ -361,6 +364,7 @@ functions:
361
364
timeout_secs : 60
362
365
env :
363
366
PROJECT_DIRECTORY : ${PROJECT_DIRECTORY}
367
+ DRIVERS_TOOLS : ${DRIVERS_TOOLS}
364
368
binary : bash
365
369
args :
366
370
- " ${PROJECT_DIRECTORY}/.evergreen/run-resource-management.sh"
@@ -373,6 +377,7 @@ functions:
373
377
timeout_secs : 60
374
378
env :
375
379
PROJECT_DIRECTORY : ${PROJECT_DIRECTORY}
380
+ DRIVERS_TOOLS : ${DRIVERS_TOOLS}
376
381
MONGODB_URI : ${MONGODB_URI}
377
382
binary : bash
378
383
args :
@@ -386,6 +391,7 @@ functions:
386
391
timeout_secs : 60
387
392
env :
388
393
PROJECT_DIRECTORY : ${PROJECT_DIRECTORY}
394
+ DRIVERS_TOOLS : ${DRIVERS_TOOLS}
389
395
TS_VERSION : ${TS_VERSION}
390
396
TS_CHECK : COMPILE_DRIVER
391
397
TYPES_VERSION : ${TYPES_VERSION}
@@ -464,7 +470,7 @@ functions:
464
470
working_dir : " src"
465
471
script : |
466
472
${PREPARE_SHELL}
467
- source "${PROJECT_DIRECTORY} /.evergreen/init-node-and-npm-env.sh"
473
+ source $DRIVERS_TOOLS /.evergreen/init-node-and-npm-env.sh
468
474
rm -rf ./node_modules/@aws-sdk/credential-providers
469
475
470
476
" run atlas tests " :
@@ -473,6 +479,8 @@ functions:
473
479
params :
474
480
working_dir : " src"
475
481
binary : bash
482
+ env :
483
+ DRIVERS_TOOLS : ${DRIVERS_TOOLS}
476
484
args :
477
485
- -c
478
486
- ${DRIVERS_TOOLS}/.evergreen/secrets_handling/setup-secrets.sh drivers/atlas_connect
@@ -482,6 +490,7 @@ functions:
482
490
working_dir : " src"
483
491
binary : bash
484
492
env :
493
+ DRIVERS_TOOLS : ${DRIVERS_TOOLS}
485
494
NODE_LTS_VERSION : ${NODE_LTS_VERSION}
486
495
args :
487
496
- .evergreen/run-atlas-tests.sh
@@ -527,43 +536,49 @@ functions:
527
536
bash ${PROJECT_DIRECTORY}/.evergreen/run-socks5-tests.sh
528
537
529
538
" run kerberos tests " :
530
- - command : shell .exec
539
+ - command : subprocess .exec
531
540
type : test
532
541
params :
542
+ binary : bash
533
543
working_dir : src
534
- script : |
535
- export PROJECT_DIRECTORY="$(pwd)"
536
- export KRB5_KEYTAB='${gssapi_auth_keytab_base64}'
537
- export KRB5_NEW_KEYTAB='${gssapi_auth_new_keytab_base64}'
538
- export KRB5_PRINCIPAL='${gssapi_auth_principal}'
539
- export MONGODB_URI='${gssapi_auth_mongodb_uri}'
540
- export NODE_LTS_VERSION='${NODE_LTS_VERSION}'
541
-
542
- bash ${PROJECT_DIRECTORY}/.evergreen/run-kerberos-tests.sh
544
+ env :
545
+ PROJECT_DIRECTORY : ${PROJECT_DIRECTORY}
546
+ DRIVERS_TOOLS : ${DRIVERS_TOOLS}
547
+ KRB5_KEYTAB : ${gssapi_auth_keytab_base64}
548
+ KRB5_NEW_KEYTAB : ${gssapi_auth_new_keytab_base64}
549
+ KRB5_PRINCIPAL : ${gssapi_auth_principal}
550
+ MONGODB_URI : ${gssapi_auth_mongodb_uri}
551
+ NODE_LTS_VERSION : ${NODE_LTS_VERSION}
552
+ args :
553
+ - .evergreen/run-kerberos-tests.sh
543
554
544
555
" run ldap tests " :
545
- - command : shell .exec
556
+ - command : subprocess .exec
546
557
type : test
547
558
params :
548
- working_dir : " src"
549
- script : |
550
- export PROJECT_DIRECTORY="$(pwd)"
551
- export MONGODB_URI='${plain_auth_mongodb_uri}'
552
- export NODE_LTS_VERSION='${NODE_LTS_VERSION}'
553
-
554
- bash ${PROJECT_DIRECTORY}/.evergreen/run-ldap-tests.sh
559
+ working_dir : src
560
+ binary : bash
561
+ env :
562
+ PROJECT_DIRECTORY : ${PROJECT_DIRECTORY}
563
+ DRIVERS_TOOLS : ${DRIVERS_TOOLS}
564
+ MONGODB_URI : ${plain_auth_mongodb_uri}
565
+ NODE_LTS_VERSION : ${NODE_LTS_VERSION}
566
+ args :
567
+ - .evergreen/run-ldap-tests.sh
555
568
556
569
" run data lake tests " :
557
- - command : shell .exec
570
+ - command : subprocess .exec
558
571
type : test
559
572
params :
560
573
working_dir : src
561
- script : |
562
- export PROJECT_DIRECTORY="$(pwd)"
563
- export MONGODB_URI='mongodb://mhuser:pencil@localhost'
564
- export NODE_LTS_VERSION='${NODE_LTS_VERSION}'
565
-
566
- bash ${PROJECT_DIRECTORY}/.evergreen/run-data-lake-tests.sh
574
+ binary : bash
575
+ env :
576
+ PROJECT_DIRECTORY : ${PROJECT_DIRECTORY}
577
+ DRIVERS_TOOLS : ${DRIVERS_TOOLS}
578
+ MONGODB_URI : " mongodb://mhuser:pencil@localhost"
579
+ NODE_LTS_VERSION : ${NODE_LTS_VERSION}
580
+ args :
581
+ - .evergreen/run-data-lake-tests.sh
567
582
568
583
" run tls tests " :
569
584
- command : shell.exec
@@ -856,7 +871,11 @@ functions:
856
871
echo "npm run check:aws" >> $PROJECT_DIRECTORY/.evergreen/run-mongodb-aws-ecs-test.sh
857
872
858
873
cp $PROJECT_DIRECTORY/.evergreen/run-mongodb-aws-ecs-test.sh $ECS_SRC_DIR/.evergreen
859
- tar -czf $ECS_SRC_DIR/src.tgz -C $PROJECT_DIRECTORY .
874
+
875
+ cd ..
876
+ tar -czf src.tgz src drivers-tools
877
+ mv src.tgz $ECS_SRC_DIR/src.tgz
878
+
860
879
861
880
cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
862
881
. ./activate-authawsvenv.sh
@@ -973,6 +992,7 @@ functions:
973
992
env :
974
993
MONGODB_URI : ${MONGODB_URI}
975
994
PROJECT_DIRECTORY : ${PROJECT_DIRECTORY}
995
+ DRIVERS_TOOLS : ${DRIVERS_TOOLS}
976
996
binary : bash
977
997
args :
978
998
- " ${PROJECT_DIRECTORY}/.evergreen/run-lambda-tests.sh"
@@ -1106,6 +1126,7 @@ functions:
1106
1126
env :
1107
1127
INSTALL_DIR : mongodb-client-encryption
1108
1128
PROJECT_DIRECTORY : ${PROJECT_DIRECTORY}
1129
+ DRIVERS_TOOLS : ${DRIVERS_TOOLS}
1109
1130
binary : bash
1110
1131
args :
1111
1132
- ${PROJECT_DIRECTORY}/.evergreen/install-mongodb-client-encryption.sh
@@ -1368,14 +1389,8 @@ task_groups:
1368
1389
script : |
1369
1390
${PREPARE_SHELL}
1370
1391
set +o xtrace
1371
- if [[ -n "${USE_SERVERLESS_PROXY}" ]];
1372
- then
1373
- export SERVERLESS_GROUP="${PROXY_SERVERLESS_DRIVERS_GROUP}"
1374
- else
1375
- export SERVERLESS_GROUP="${SERVERLESS_DRIVERS_GROUP}"
1376
- fi
1377
1392
LOADBALANCED=ON \
1378
- SERVERLESS_DRIVERS_GROUP=${SERVERLESS_GROUP } \
1393
+ SERVERLESS_DRIVERS_GROUP=${SERVERLESS_DRIVERS_GROUP } \
1379
1394
SERVERLESS_API_PUBLIC_KEY=${SERVERLESS_API_PUBLIC_KEY} \
1380
1395
SERVERLESS_API_PRIVATE_KEY=${SERVERLESS_API_PRIVATE_KEY} \
1381
1396
bash ${DRIVERS_TOOLS}/.evergreen/serverless/create-instance.sh
@@ -1389,13 +1404,7 @@ task_groups:
1389
1404
script : |
1390
1405
${PREPARE_SHELL}
1391
1406
set +o xtrace
1392
- if [[ -n "${USE_SERVERLESS_PROXY}" ]];
1393
- then
1394
- export SERVERLESS_GROUP="${PROXY_SERVERLESS_DRIVERS_GROUP}"
1395
- else
1396
- export SERVERLESS_GROUP="${SERVERLESS_DRIVERS_GROUP}"
1397
- fi
1398
- SERVERLESS_DRIVERS_GROUP=${SERVERLESS_GROUP} \
1407
+ SERVERLESS_DRIVERS_GROUP=${SERVERLESS_DRIVERS_GROUP} \
1399
1408
SERVERLESS_API_PUBLIC_KEY=${SERVERLESS_API_PUBLIC_KEY} \
1400
1409
SERVERLESS_API_PRIVATE_KEY=${SERVERLESS_API_PRIVATE_KEY} \
1401
1410
SERVERLESS_INSTANCE_NAME=${SERVERLESS_INSTANCE_NAME} \
0 commit comments