Skip to content

Commit

Permalink
address review
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Aug 29, 2023
1 parent 53bbb6b commit 45ffc40
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 18 deletions.
7 changes: 4 additions & 3 deletions .evergreen/auth_aws/activate-authawsvenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ activate_authawsvenv() {
# shellcheck source=.evergreen/find-python3.sh
. ../find-python3.sh || return

echo "Creating virtual environment 'authawsvenv'..."
echo "Finding Python3 binary..."
PYTHON="$(find_python3 2>/dev/null)"
PYTHON="$(find_python3 2>/dev/null)" || return
echo "Finding Python3 binary... done."
venvcreate $PYTHON authawsvenv || return

echo "Creating virtual environment 'authawsvenv'..."
venvcreate "${PYTHON:?}" authawsvenv || return

local packages=(
"boto3~=1.26.0"
Expand Down
7 changes: 4 additions & 3 deletions .evergreen/auth_oidc/activate-authoidcvenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ activate_authoidcvenv() {
# shellcheck source=.evergreen/find-python3.sh
. ../find-python3.sh || return

echo "Creating virtual environment 'authoidcvenv'..."
echo "Finding Python3 binary..."
PYTHON="$(find_python3 2>/dev/null)"
PYTHON="$(find_python3 2>/dev/null)" || return
echo "Finding Python3 binary... done."
venvcreate $PYTHON authoidcvenv || return

echo "Creating virtual environment 'authoidcvenv'..."
venvcreate "${PYTHON:?}" authoidcvenv || return

local packages=(
"boto3~=1.19.0"
Expand Down
4 changes: 2 additions & 2 deletions .evergreen/auth_oidc/azure/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ git clone https://github.com/mongodb/mongo-python-driver
pushd mongo-python-driver
python setup.py install --no_ext
popd
pip install requests
pip install -q requests
python azure/test.py
popd
popd
7 changes: 3 additions & 4 deletions .evergreen/csfle/activate-kmstlsvenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ activate_kmstlsvenv() {
# shellcheck source=.evergreen/find-python3.sh
. ../find-python3.sh || return

echo "Creating virtual environment 'kmstlsvenv'..."
echo "Finding Python3 binary..."
PYTHON="$(find_python3 2>/dev/null)"
PYTHON="$(find_python3 2>/dev/null)" || return
echo "Finding Python3 binary... done."
venvcreate $PYTHON kmstlsvenv || return

venvcreate "${PYTHON:?}" kmstlsvenv || return

local packages=(
"boto3~=1.19.0"
Expand Down Expand Up @@ -69,7 +69,6 @@ activate_kmstlsvenv() {
return "$ret"
}
fi
echo "Creating virtual environment 'kmstlsvenv'... done."
fi
}

Expand Down
7 changes: 4 additions & 3 deletions .evergreen/ocsp/activate-ocspvenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ activate_ocspvenv() {
# shellcheck source=.evergreen/find-python3.sh
. ../find-python3.sh || return

echo "Creating virtual environment 'ocspvenv'..."
echo "Finding Python3 binary..."
PYTHON="$(find_python3 2>/dev/null)"
PYTHON="$(find_python3 2>/dev/null)" || return
echo "Finding Python3 binary... done."
venvcreate $PYTHON ocspvenv || return

echo "Creating virtual environment 'ocspvenv'..."
venvcreate "${PYTHON:?}" ocspvenv || return

python -m pip install -q -r mock-ocsp-responder-requirements.txt || {
local -r ret="$?"
Expand Down
8 changes: 5 additions & 3 deletions .evergreen/start-orchestration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@ det_evergreen_dir="$(dirname "${BASH_SOURCE[0]}")"
cd "$MONGO_ORCHESTRATION_HOME"

echo "Finding Python3 binary..."
PYTHON="$(find_python3 2>/dev/null)"
PYTHON="$(find_python3 2>/dev/null)" || return
echo "Finding Python3 binary... done."

venvcreate "$PYTHON" venv
echo "Creating virtual environment 'venv'..."
venvcreate "${PYTHON:?}" venv
echo "Creating virtual environment 'venv'... done."

# Install from github to get the latest mongo-orchestration.
python -m pip install --upgrade 'https://github.com/mongodb/mongo-orchestration/archive/master.tar.gz'
python -m pip install -q --upgrade 'https://github.com/mongodb/mongo-orchestration/archive/master.tar.gz'
python -m pip list
cd -

Expand Down

0 comments on commit 45ffc40

Please sign in to comment.