@@ -322,6 +322,7 @@ functions:
322322 timeout_secs : 60
323323 env :
324324 PROJECT_DIRECTORY : ${PROJECT_DIRECTORY}
325+ DRIVERS_TOOLS : ${DRIVERS_TOOLS}
325326 binary : bash
326327 args :
327328 - " ${PROJECT_DIRECTORY}/.evergreen/run-lint-checks.sh"
@@ -334,6 +335,7 @@ functions:
334335 timeout_secs : 60
335336 env :
336337 PROJECT_DIRECTORY : ${PROJECT_DIRECTORY}
338+ DRIVERS_TOOLS : ${DRIVERS_TOOLS}
337339 binary : bash
338340 args :
339341 - " ${PROJECT_DIRECTORY}/.evergreen/run-unit-tests.sh"
@@ -346,6 +348,7 @@ functions:
346348 timeout_secs : 60
347349 env :
348350 PROJECT_DIRECTORY : ${PROJECT_DIRECTORY}
351+ DRIVERS_TOOLS : ${DRIVERS_TOOLS}
349352 TS_VERSION : ${TS_VERSION}
350353 TS_CHECK : CHECK_TYPES
351354 TYPES_VERSION : ${TYPES_VERSION}
@@ -361,6 +364,7 @@ functions:
361364 timeout_secs : 60
362365 env :
363366 PROJECT_DIRECTORY : ${PROJECT_DIRECTORY}
367+ DRIVERS_TOOLS : ${DRIVERS_TOOLS}
364368 binary : bash
365369 args :
366370 - " ${PROJECT_DIRECTORY}/.evergreen/run-resource-management.sh"
@@ -373,6 +377,7 @@ functions:
373377 timeout_secs : 60
374378 env :
375379 PROJECT_DIRECTORY : ${PROJECT_DIRECTORY}
380+ DRIVERS_TOOLS : ${DRIVERS_TOOLS}
376381 MONGODB_URI : ${MONGODB_URI}
377382 binary : bash
378383 args :
@@ -386,6 +391,7 @@ functions:
386391 timeout_secs : 60
387392 env :
388393 PROJECT_DIRECTORY : ${PROJECT_DIRECTORY}
394+ DRIVERS_TOOLS : ${DRIVERS_TOOLS}
389395 TS_VERSION : ${TS_VERSION}
390396 TS_CHECK : COMPILE_DRIVER
391397 TYPES_VERSION : ${TYPES_VERSION}
@@ -464,7 +470,7 @@ functions:
464470 working_dir : " src"
465471 script : |
466472 ${PREPARE_SHELL}
467- source "${PROJECT_DIRECTORY} /.evergreen/init-node-and-npm-env.sh"
473+ source $DRIVERS_TOOLS /.evergreen/init-node-and-npm-env.sh
468474 rm -rf ./node_modules/@aws-sdk/credential-providers
469475
470476 " run atlas tests " :
@@ -473,6 +479,8 @@ functions:
473479 params :
474480 working_dir : " src"
475481 binary : bash
482+ env :
483+ DRIVERS_TOOLS : ${DRIVERS_TOOLS}
476484 args :
477485 - -c
478486 - ${DRIVERS_TOOLS}/.evergreen/secrets_handling/setup-secrets.sh drivers/atlas_connect
@@ -482,6 +490,7 @@ functions:
482490 working_dir : " src"
483491 binary : bash
484492 env :
493+ DRIVERS_TOOLS : ${DRIVERS_TOOLS}
485494 NODE_LTS_VERSION : ${NODE_LTS_VERSION}
486495 args :
487496 - .evergreen/run-atlas-tests.sh
@@ -527,43 +536,49 @@ functions:
527536 bash ${PROJECT_DIRECTORY}/.evergreen/run-socks5-tests.sh
528537
529538 " run kerberos tests " :
530- - command : shell .exec
539+ - command : subprocess .exec
531540 type : test
532541 params :
542+ binary : bash
533543 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
543554
544555 " run ldap tests " :
545- - command : shell .exec
556+ - command : subprocess .exec
546557 type : test
547558 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
555568
556569 " run data lake tests " :
557- - command : shell .exec
570+ - command : subprocess .exec
558571 type : test
559572 params :
560573 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
567582
568583 " run tls tests " :
569584 - command : shell.exec
@@ -856,7 +871,11 @@ functions:
856871 echo "npm run check:aws" >> $PROJECT_DIRECTORY/.evergreen/run-mongodb-aws-ecs-test.sh
857872
858873 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+
860879
861880 cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
862881 . ./activate-authawsvenv.sh
@@ -973,6 +992,7 @@ functions:
973992 env :
974993 MONGODB_URI : ${MONGODB_URI}
975994 PROJECT_DIRECTORY : ${PROJECT_DIRECTORY}
995+ DRIVERS_TOOLS : ${DRIVERS_TOOLS}
976996 binary : bash
977997 args :
978998 - " ${PROJECT_DIRECTORY}/.evergreen/run-lambda-tests.sh"
@@ -1106,6 +1126,7 @@ functions:
11061126 env :
11071127 INSTALL_DIR : mongodb-client-encryption
11081128 PROJECT_DIRECTORY : ${PROJECT_DIRECTORY}
1129+ DRIVERS_TOOLS : ${DRIVERS_TOOLS}
11091130 binary : bash
11101131 args :
11111132 - ${PROJECT_DIRECTORY}/.evergreen/install-mongodb-client-encryption.sh
@@ -1368,14 +1389,8 @@ task_groups:
13681389 script : |
13691390 ${PREPARE_SHELL}
13701391 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
13771392 LOADBALANCED=ON \
1378- SERVERLESS_DRIVERS_GROUP=${SERVERLESS_GROUP } \
1393+ SERVERLESS_DRIVERS_GROUP=${SERVERLESS_DRIVERS_GROUP } \
13791394 SERVERLESS_API_PUBLIC_KEY=${SERVERLESS_API_PUBLIC_KEY} \
13801395 SERVERLESS_API_PRIVATE_KEY=${SERVERLESS_API_PRIVATE_KEY} \
13811396 bash ${DRIVERS_TOOLS}/.evergreen/serverless/create-instance.sh
@@ -1389,13 +1404,7 @@ task_groups:
13891404 script : |
13901405 ${PREPARE_SHELL}
13911406 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} \
13991408 SERVERLESS_API_PUBLIC_KEY=${SERVERLESS_API_PUBLIC_KEY} \
14001409 SERVERLESS_API_PRIVATE_KEY=${SERVERLESS_API_PRIVATE_KEY} \
14011410 SERVERLESS_INSTANCE_NAME=${SERVERLESS_INSTANCE_NAME} \
0 commit comments