Skip to content

Commit c14943a

Browse files
committed
Merge branch 'master' of github.com:mongodb/mongo-python-driver
2 parents 516ec00 + a9e61f6 commit c14943a

File tree

119 files changed

+2463
-2499
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+2463
-2499
lines changed

.evergreen/combine-coverage.sh

100644100755
File mode changed.

.evergreen/config.yml

Lines changed: 317 additions & 459 deletions
Large diffs are not rendered by default.

.evergreen/hatch.sh

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ else # Set up virtualenv before installing hatch
2929
# Ensure hatch does not write to user or global locations.
3030
touch hatch_config.toml
3131
HATCH_CONFIG=$(pwd)/hatch_config.toml
32-
if [ "Windows_NT" = "$OS" ]; then # Magic variable in cygwin
32+
if [ "Windows_NT" = "${OS:-}" ]; then # Magic variable in cygwin
3333
HATCH_CONFIG=$(cygpath -m "$HATCH_CONFIG")
3434
fi
3535
export HATCH_CONFIG

.evergreen/install-dependencies.sh

100644100755
File mode changed.

.evergreen/run-azurekms-fail-test.sh

100644100755
File mode changed.

.evergreen/run-azurekms-test.sh

100644100755
File mode changed.

.evergreen/run-deployed-lambda-aws-tests.sh

100644100755
File mode changed.

.evergreen/run-gcpkms-test.sh

100644100755
File mode changed.

.evergreen/run-perf-tests.sh

100644100755
File mode changed.

.evergreen/run-tests.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export PIP_PREFER_BINARY=1 # Prefer binary dists by default
3838

3939
set +x
4040
python -c "import sys; sys.exit(sys.prefix == sys.base_prefix)" || (echo "Not inside a virtual env!"; exit 1)
41+
PYTHON_IMPL=$(python -c "import platform; print(platform.python_implementation())")
4142

4243
# Try to source local Drivers Secrets
4344
if [ -f ./secrets-export.sh ]; then
@@ -47,19 +48,24 @@ else
4748
echo "Not sourcing secrets"
4849
fi
4950

51+
# Ensure C extensions have compiled.
52+
if [ -z "${NO_EXT:-}" ] && [ "$PYTHON_IMPL" = "CPython" ]; then
53+
python tools/fail_if_no_c.py
54+
fi
55+
5056
if [ "$AUTH" != "noauth" ]; then
51-
if [ ! -z "$TEST_DATA_LAKE" ]; then
57+
if [ -n "$TEST_DATA_LAKE" ]; then
5258
export DB_USER="mhuser"
5359
export DB_PASSWORD="pencil"
54-
elif [ ! -z "$TEST_SERVERLESS" ]; then
55-
source ${DRIVERS_TOOLS}/.evergreen/serverless/secrets-export.sh
60+
elif [ -n "$TEST_SERVERLESS" ]; then
61+
source "${DRIVERS_TOOLS}"/.evergreen/serverless/secrets-export.sh
5662
export DB_USER=$SERVERLESS_ATLAS_USER
5763
export DB_PASSWORD=$SERVERLESS_ATLAS_PASSWORD
5864
export MONGODB_URI="$SERVERLESS_URI"
5965
echo "MONGODB_URI=$MONGODB_URI"
6066
export SINGLE_MONGOS_LB_URI=$MONGODB_URI
6167
export MULTI_MONGOS_LB_URI=$MONGODB_URI
62-
elif [ ! -z "$TEST_AUTH_OIDC" ]; then
68+
elif [ -n "$TEST_AUTH_OIDC" ]; then
6369
export DB_USER=$OIDC_ADMIN_USER
6470
export DB_PASSWORD=$OIDC_ADMIN_PWD
6571
export DB_IP="$MONGODB_URI"
@@ -240,7 +246,6 @@ python -c 'import sys; print(sys.version)'
240246

241247
# Run the tests with coverage if requested and coverage is installed.
242248
# Only cover CPython. PyPy reports suspiciously low coverage.
243-
PYTHON_IMPL=$(python -c "import platform; print(platform.python_implementation())")
244249
if [ -n "$COVERAGE" ] && [ "$PYTHON_IMPL" = "CPython" ]; then
245250
# Keep in sync with combine-coverage.sh.
246251
# coverage >=5 is needed for relative_files=true.

0 commit comments

Comments
 (0)