Skip to content

Commit 19a368c

Browse files
author
Divjot Arora
committed
GODRIVER-1911 Fix Windows/macos test failures for CSFLE (#603)
This commit addresses two failures that started showing up after GODRIVER-1855: - Set the PYTHON environment variable to point to the local python3 installation before calling set-temp-creds.sh - For Windows tasks, update the libmongocrypt URL to install the latest stable version (v1.2.0)
1 parent 2a5f9a4 commit 19a368c

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.evergreen/config.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ functions:
7575
if [ "Windows_NT" = "$OS" ]; then
7676
mkdir -p c:/libmongocrypt/include
7777
mkdir -p c:/libmongocrypt/bin
78-
# TODO: After a stable libmongocrypt 1.1.0 is released in MONGOCRYPT-293, update this URL to: https://s3.amazonaws.com/mciuploads/libmongocrypt/windows/latest_release/libmongocrypt.tar.gz
79-
curl https://s3.amazonaws.com/mciuploads/libmongocrypt/windows/latest_release/libmongocrypt_unstable.tar.gz --output libmongocrypt.tar.gz
78+
curl https://s3.amazonaws.com/mciuploads/libmongocrypt/windows/latest_release/libmongocrypt.tar.gz --output libmongocrypt.tar.gz
8079
tar -xvzf libmongocrypt.tar.gz
8180
cp ./bin/mongocrypt.dll c:/libmongocrypt/bin
8281
cp ./include/mongocrypt/*.h c:/libmongocrypt/include
@@ -303,6 +302,15 @@ functions:
303302
export AWS_SECRET_ACCESS_KEY="${cse_aws_secret_access_key}"
304303
export AWS_DEFAULT_REGION="us-east-1"
305304
${PYTHON3_BINARY} -m venv ./venv
305+
306+
# Set the PYTHON environment variable to point to the active python3 binary. This is used by the
307+
# set-temp-creds.sh script.
308+
if [ "Windows_NT" = "$OS" ]; then
309+
export PYTHON="$(pwd)/venv/Scripts/python"
310+
else
311+
export PYTHON="$(pwd)/venv/bin/python"
312+
fi
313+
306314
./venv/${VENV_BIN_DIR|bin}/pip3 install boto3
307315
. ${DRIVERS_TOOLS}/.evergreen/csfle/set-temp-creds.sh
308316
fi

0 commit comments

Comments
 (0)