Skip to content

Commit 53a23b8

Browse files
committed
Merge branch 'master' of github.com:mongodb/mongo-python-driver into PYTHON-3096-2
2 parents 46d3fb9 + bdaf43c commit 53a23b8

File tree

160 files changed

+4041
-2774
lines changed

Some content is hidden

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

160 files changed

+4041
-2774
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/generated_configs/variants.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ buildvariants:
88
- rhel79-small
99
batchtime: 10080
1010
expansions:
11-
SKIP_HATCH: "true"
1211
PYTHON_BINARY: /opt/python/3.9/bin/python3
1312
- name: other-hosts-rhel9-fips
1413
tasks:
@@ -18,7 +17,7 @@ buildvariants:
1817
- rhel92-fips
1918
batchtime: 10080
2019
expansions:
21-
SKIP_HATCH: "true"
20+
NO_EXT: "1"
2221
- name: other-hosts-rhel8-zseries
2322
tasks:
2423
- name: .6.0 .standalone !.sync_async
@@ -27,7 +26,7 @@ buildvariants:
2726
- rhel8-zseries-small
2827
batchtime: 10080
2928
expansions:
30-
SKIP_HATCH: "true"
29+
NO_EXT: "1"
3130
- name: other-hosts-rhel8-power8
3231
tasks:
3332
- name: .6.0 .standalone !.sync_async
@@ -36,7 +35,7 @@ buildvariants:
3635
- rhel8-power-small
3736
batchtime: 10080
3837
expansions:
39-
SKIP_HATCH: "true"
38+
NO_EXT: "1"
4039
- name: other-hosts-rhel8-arm64
4140
tasks:
4241
- name: .6.0 .standalone !.sync_async
@@ -45,7 +44,7 @@ buildvariants:
4544
- rhel82-arm64-small
4645
batchtime: 10080
4746
expansions:
48-
SKIP_HATCH: "true"
47+
NO_EXT: "1"
4948

5049
# Atlas connect tests
5150
- name: atlas-connect-rhel8-python3.9

.evergreen/hatch.sh

100644100755
Lines changed: 3 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,5 @@
11
#!/bin/bash
2-
set -o errexit # Exit the script with error if any of the commands fail
3-
set -x
2+
set -eu
43

5-
. .evergreen/utils.sh
6-
7-
if [ -z "$PYTHON_BINARY" ]; then
8-
PYTHON_BINARY=$(find_python3)
9-
fi
10-
11-
# Check if we should skip hatch and run the tests directly.
12-
if [ -n "$SKIP_HATCH" ]; then
13-
ENV_NAME=testenv-$RANDOM
14-
createvirtualenv "$PYTHON_BINARY" $ENV_NAME
15-
# shellcheck disable=SC2064
16-
trap "deactivate; rm -rf $ENV_NAME" EXIT HUP
17-
python -m pip install -e ".[test]"
18-
run_hatch() {
19-
bash ./.evergreen/run-tests.sh
20-
}
21-
else # Set up virtualenv before installing hatch
22-
# Use a random venv name because the encryption tasks run this script multiple times in the same run.
23-
ENV_NAME=hatchenv-$RANDOM
24-
createvirtualenv "$PYTHON_BINARY" $ENV_NAME
25-
# shellcheck disable=SC2064
26-
trap "deactivate; rm -rf $ENV_NAME" EXIT HUP
27-
python -m pip install -q hatch
28-
29-
# Ensure hatch does not write to user or global locations.
30-
touch hatch_config.toml
31-
HATCH_CONFIG=$(pwd)/hatch_config.toml
32-
if [ "Windows_NT" = "$OS" ]; then # Magic variable in cygwin
33-
HATCH_CONFIG=$(cygpath -m "$HATCH_CONFIG")
34-
fi
35-
export HATCH_CONFIG
36-
hatch config restore
37-
hatch config set dirs.data "$(pwd)/.hatch/data"
38-
hatch config set dirs.cache "$(pwd)/.hatch/cache"
39-
40-
run_hatch() {
41-
python -m hatch run "$@"
42-
}
43-
fi
44-
45-
run_hatch "${@:1}"
4+
. .evergreen/scripts/ensure-hatch.sh
5+
hatch run "$@"

.evergreen/install-dependencies.sh

100644100755
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ cp ${PROJECT_DIRECTORY}/test/certificates/* ${DRIVERS_TOOLS}/.evergreen/x509gen/
88
# Replace MongoOrchestration's client certificate.
99
cp ${PROJECT_DIRECTORY}/test/certificates/client.pem ${MONGO_ORCHESTRATION_HOME}/lib/client.pem
1010

11+
# Ensure hatch is installed.
12+
bash ${PROJECT_DIRECTORY}/scripts/ensure-hatch.sh
13+
1114
if [ -w /etc/hosts ]; then
1215
SUDO=""
1316
else

.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-import-time-test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ function get_import_time() {
2525
}
2626

2727
get_import_time $HEAD_SHA
28-
git stash
28+
git stash || true
2929
git checkout $BASE_SHA
3030
get_import_time $BASE_SHA
3131
git checkout $HEAD_SHA
32-
git stash apply
32+
git stash apply || true
3333
python tools/compare_import_time.py $HEAD_SHA $BASE_SHA

0 commit comments

Comments
 (0)