@@ -442,11 +442,11 @@ functions:
442
442
export AWS_SECRET_ACCESS_KEY="${client_side_encryption_aws_secret_access_key}"
443
443
export AWS_ACCESS_KEY_ID="${client_side_encryption_aws_access_key_id}"
444
444
export AWS_DEFAULT_REGION="us-east-1"
445
- echo "Running activate_venv .sh..."
446
- . ./activate_venv .sh
447
- echo "Running activate_venv .sh... done."
445
+ echo "Running activate-kmstlsvenv .sh..."
446
+ . ./activate-kmstlsvenv .sh
447
+ echo "Running activate-kmstlsvenv .sh... done."
448
448
echo "Running set-temp-creds.sh..."
449
- PYTHON="$(type -P python)" . ./set-temp-creds.sh
449
+ . ./set-temp-creds.sh
450
450
echo "Running set-temp-creds.sh... done."
451
451
deactivate
452
452
popd
@@ -789,7 +789,9 @@ functions:
789
789
set +o xtrace
790
790
export IAM_AUTH_ECS_ACCOUNT=${iam_auth_ecs_account}
791
791
export IAM_AUTH_ECS_SECRET_ACCESS_KEY=${iam_auth_ecs_secret_access_key}
792
- . ../drivers-evergreen-tools/.evergreen/auth_aws/activate_venv.sh
792
+ pushd ../drivers-evergreen-tools/.evergreen/auth_aws
793
+ . ./activate-authawsvenv.sh
794
+ popd # ../drivers-evergreen-tools/.evergreen/auth_aws
793
795
sh ./.evergreen/run-aws-tests.sh ${TESTCASE}
794
796
clone drivers-evergreen-tools:
795
797
- command: shell.exec
@@ -808,13 +810,23 @@ functions:
808
810
set -o errexit
809
811
echo "Preparing CSFLE venv environment..."
810
812
cd ./drivers-evergreen-tools/.evergreen/csfle
811
- # This function ensures future invocations of activate_venv .sh conducted in
813
+ # This function ensures future invocations of activate-kmstlsvenv .sh conducted in
812
814
# parallel do not race to setup a venv environment; it has already been prepared.
813
815
# This primarily addresses the situation where the "run tests" and "run kms servers"
814
- # functions invoke 'activate_venv .sh' simultaneously.
816
+ # functions invoke 'activate-kmstlsvenv .sh' simultaneously.
815
817
# TODO: remove this function along with the "run kms servers" function.
816
- . ./activate_venv.sh
817
- deactivate
818
+ if [[ "$OSTYPE" =~ cygwin && ! -d kmstlsvenv ]]; then
819
+ # Avoid using Python 3.10 on Windows due to incompatible cipher suites.
820
+ # See CDRIVER-4530.
821
+ . ../venv-utils.sh
822
+ venvcreate "C:/python/Python39/python.exe" kmstlsvenv || # windows-2017
823
+ venvcreate "C:/python/Python38/python.exe" kmstlsvenv # windows-2015
824
+ python -m pip install --upgrade boto3~=1.19 pykmip~=0.10.0
825
+ deactivate
826
+ else
827
+ . ./activate-kmstlsvenv.sh
828
+ deactivate
829
+ fi
818
830
echo "Preparing CSFLE venv environment... done."
819
831
- command: shell.exec
820
832
params:
@@ -824,7 +836,7 @@ functions:
824
836
set -o errexit
825
837
echo "Starting mock KMS servers..."
826
838
cd ./drivers-evergreen-tools/.evergreen/csfle
827
- . ./activate_venv .sh
839
+ . ./activate-kmstlsvenv .sh
828
840
python -u kms_http_server.py --ca_file ../x509gen/ca.pem --cert_file ../x509gen/server.pem --port 8999 &
829
841
python -u kms_http_server.py --ca_file ../x509gen/ca.pem --cert_file ../x509gen/expired.pem --port 9000 &
830
842
python -u kms_http_server.py --ca_file ../x509gen/ca.pem --cert_file ../x509gen/wrong-host.pem --port 9001 &
0 commit comments