Skip to content

Commit 7dc4a8d

Browse files
committed
Merge branch 'master' of github.com:mongodb/mongo-python-driver
2 parents af18e5f + 448a494 commit 7dc4a8d

File tree

7 files changed

+41
-178
lines changed

7 files changed

+41
-178
lines changed

.evergreen/generated_configs/variants.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildvariants:
66
display_name: OpenSSL 1.0.2 RHEL7 v5.0 Python3.9
77
run_on:
88
- rhel79-small
9-
batchtime: 10080
9+
batchtime: 1440
1010
expansions:
1111
VERSION: "5.0"
1212
PYTHON_VERSION: "3.9"
@@ -17,7 +17,7 @@ buildvariants:
1717
display_name: Other hosts RHEL9-FIPS latest
1818
run_on:
1919
- rhel92-fips
20-
batchtime: 10080
20+
batchtime: 1440
2121
expansions:
2222
VERSION: latest
2323
NO_EXT: "1"
@@ -29,7 +29,7 @@ buildvariants:
2929
display_name: Other hosts RHEL8-zseries latest
3030
run_on:
3131
- rhel8-zseries-small
32-
batchtime: 10080
32+
batchtime: 1440
3333
expansions:
3434
VERSION: latest
3535
NO_EXT: "1"
@@ -40,7 +40,7 @@ buildvariants:
4040
display_name: Other hosts RHEL8-POWER8 latest
4141
run_on:
4242
- rhel8-power-small
43-
batchtime: 10080
43+
batchtime: 1440
4444
expansions:
4545
VERSION: latest
4646
NO_EXT: "1"
@@ -51,7 +51,7 @@ buildvariants:
5151
display_name: Other hosts RHEL8-arm64 latest
5252
run_on:
5353
- rhel82-arm64-small
54-
batchtime: 10080
54+
batchtime: 1440
5555
expansions:
5656
VERSION: latest
5757
NO_EXT: "1"
@@ -62,7 +62,7 @@ buildvariants:
6262
display_name: Other hosts Amazon2023 latest
6363
run_on:
6464
- amazon2023-arm64-latest-large-m8g
65-
batchtime: 10080
65+
batchtime: 1440
6666
expansions:
6767
VERSION: latest
6868
NO_EXT: "1"
@@ -182,7 +182,7 @@ buildvariants:
182182
display_name: Encryption RHEL8
183183
run_on:
184184
- rhel87-small
185-
batchtime: 10080
185+
batchtime: 1440
186186
expansions:
187187
TEST_NAME: encryption
188188
tags: [encryption_tag]
@@ -192,7 +192,7 @@ buildvariants:
192192
display_name: Encryption macOS
193193
run_on:
194194
- macos-14
195-
batchtime: 10080
195+
batchtime: 1440
196196
expansions:
197197
TEST_NAME: encryption
198198
tags: [encryption_tag]
@@ -202,7 +202,7 @@ buildvariants:
202202
display_name: Encryption Win64
203203
run_on:
204204
- windows-64-vsMulti-small
205-
batchtime: 10080
205+
batchtime: 1440
206206
expansions:
207207
TEST_NAME: encryption
208208
tags: [encryption_tag]
@@ -212,7 +212,7 @@ buildvariants:
212212
display_name: Encryption crypt_shared RHEL8
213213
run_on:
214214
- rhel87-small
215-
batchtime: 10080
215+
batchtime: 1440
216216
expansions:
217217
TEST_NAME: encryption
218218
TEST_CRYPT_SHARED: "true"
@@ -223,7 +223,7 @@ buildvariants:
223223
display_name: Encryption crypt_shared macOS
224224
run_on:
225225
- macos-14
226-
batchtime: 10080
226+
batchtime: 1440
227227
expansions:
228228
TEST_NAME: encryption
229229
TEST_CRYPT_SHARED: "true"
@@ -234,7 +234,7 @@ buildvariants:
234234
display_name: Encryption crypt_shared Win64
235235
run_on:
236236
- windows-64-vsMulti-small
237-
batchtime: 10080
237+
batchtime: 1440
238238
expansions:
239239
TEST_NAME: encryption
240240
TEST_CRYPT_SHARED: "true"
@@ -245,7 +245,7 @@ buildvariants:
245245
display_name: Encryption PyOpenSSL RHEL8
246246
run_on:
247247
- rhel87-small
248-
batchtime: 10080
248+
batchtime: 1440
249249
expansions:
250250
TEST_NAME: encryption
251251
SUB_TEST_NAME: pyopenssl
@@ -340,10 +340,10 @@ buildvariants:
340340
- name: kms
341341
tasks:
342342
- name: test-gcpkms
343-
batchtime: 10080
343+
batchtime: 1440
344344
- name: test-gcpkms-fail
345345
- name: test-azurekms
346-
batchtime: 10080
346+
batchtime: 1440
347347
- name: test-azurekms-fail
348348
display_name: KMS
349349
run_on:
@@ -360,7 +360,7 @@ buildvariants:
360360
display_name: Load Balancer
361361
run_on:
362362
- rhel87-small
363-
batchtime: 10080
363+
batchtime: 1440
364364
expansions:
365365
TEST_NAME: load_balancer
366366

@@ -434,29 +434,29 @@ buildvariants:
434434
display_name: Auth OIDC Ubuntu-22
435435
run_on:
436436
- ubuntu2204-small
437-
batchtime: 10080
437+
batchtime: 1440
438438
- name: auth-oidc-local-ubuntu-22
439439
tasks:
440440
- name: "!.auth_oidc_remote .auth_oidc"
441441
display_name: Auth OIDC Local Ubuntu-22
442442
run_on:
443443
- ubuntu2204-small
444-
batchtime: 10080
444+
batchtime: 1440
445445
tags: [pr]
446446
- name: auth-oidc-macos
447447
tasks:
448448
- name: "!.auth_oidc_remote .auth_oidc"
449449
display_name: Auth OIDC macOS
450450
run_on:
451451
- macos-14
452-
batchtime: 10080
452+
batchtime: 1440
453453
- name: auth-oidc-win64
454454
tasks:
455455
- name: "!.auth_oidc_remote .auth_oidc"
456456
display_name: Auth OIDC Win64
457457
run_on:
458458
- windows-64-vsMulti-small
459-
batchtime: 10080
459+
batchtime: 1440
460460

461461
# Perf tests
462462
- name: performance-benchmarks
@@ -465,7 +465,7 @@ buildvariants:
465465
display_name: Performance Benchmarks
466466
run_on:
467467
- rhel90-dbx-perf-large
468-
batchtime: 10080
468+
batchtime: 1440
469469

470470
# Pyopenssl tests
471471
- name: pyopenssl-rhel8
@@ -475,7 +475,7 @@ buildvariants:
475475
display_name: PyOpenSSL RHEL8
476476
run_on:
477477
- rhel87-small
478-
batchtime: 10080
478+
batchtime: 1440
479479
expansions:
480480
SUB_TEST_NAME: pyopenssl
481481
- name: pyopenssl-macos
@@ -485,7 +485,7 @@ buildvariants:
485485
display_name: PyOpenSSL macOS
486486
run_on:
487487
- rhel87-small
488-
batchtime: 10080
488+
batchtime: 1440
489489
expansions:
490490
SUB_TEST_NAME: pyopenssl
491491
- name: pyopenssl-win64
@@ -495,7 +495,7 @@ buildvariants:
495495
display_name: PyOpenSSL Win64
496496
run_on:
497497
- rhel87-small
498-
batchtime: 10080
498+
batchtime: 1440
499499
expansions:
500500
SUB_TEST_NAME: pyopenssl
501501

.evergreen/scripts/generate_config.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from generate_config_utils import (
88
ALL_PYTHONS,
99
ALL_VERSIONS,
10+
BATCHTIME_DAY,
1011
BATCHTIME_WEEK,
1112
C_EXTS,
1213
CPYTHONS,
@@ -126,7 +127,7 @@ def create_free_threaded_variants() -> list[BuildVariant]:
126127
def create_encryption_variants() -> list[BuildVariant]:
127128
variants = []
128129
tags = ["encryption_tag"]
129-
batchtime = BATCHTIME_WEEK
130+
batchtime = BATCHTIME_DAY
130131

131132
def get_encryption_expansions(encryption):
132133
expansions = dict(TEST_NAME="encryption")
@@ -183,7 +184,7 @@ def create_load_balancer_variants():
183184
tasks,
184185
"Load Balancer",
185186
host=DEFAULT_HOST,
186-
batchtime=BATCHTIME_WEEK,
187+
batchtime=BATCHTIME_DAY,
187188
expansions=expansions,
188189
)
189190
]
@@ -226,7 +227,7 @@ def create_enterprise_auth_variants():
226227

227228
def create_pyopenssl_variants():
228229
base_name = "PyOpenSSL"
229-
batchtime = BATCHTIME_WEEK
230+
batchtime = BATCHTIME_DAY
230231
expansions = dict(SUB_TEST_NAME="pyopenssl")
231232
variants = []
232233

@@ -348,7 +349,7 @@ def create_oidc_auth_variants():
348349
tasks,
349350
get_variant_name("Auth OIDC", host),
350351
host=host,
351-
batchtime=BATCHTIME_WEEK,
352+
batchtime=BATCHTIME_DAY,
352353
)
353354
)
354355
# Add a specific local test to run on PRs.
@@ -360,7 +361,7 @@ def create_oidc_auth_variants():
360361
get_variant_name("Auth OIDC Local", host),
361362
tags=["pr"],
362363
host=host,
363-
batchtime=BATCHTIME_WEEK,
364+
batchtime=BATCHTIME_DAY,
364365
)
365366
)
366367
return variants
@@ -425,9 +426,9 @@ def create_coverage_report_variants():
425426

426427
def create_kms_variants():
427428
tasks = []
428-
tasks.append(EvgTaskRef(name="test-gcpkms", batchtime=BATCHTIME_WEEK))
429+
tasks.append(EvgTaskRef(name="test-gcpkms", batchtime=BATCHTIME_DAY))
429430
tasks.append("test-gcpkms-fail")
430-
tasks.append(EvgTaskRef(name="test-azurekms", batchtime=BATCHTIME_WEEK))
431+
tasks.append(EvgTaskRef(name="test-azurekms", batchtime=BATCHTIME_DAY))
431432
tasks.append("test-azurekms-fail")
432433
return [create_variant(tasks, "KMS", host=HOSTS["debian11"])]
433434

@@ -442,9 +443,7 @@ def create_backport_pr_variants():
442443

443444
def create_perf_variants():
444445
host = HOSTS["perf"]
445-
return [
446-
create_variant([".perf"], "Performance Benchmarks", host=host, batchtime=BATCHTIME_WEEK)
447-
]
446+
return [create_variant([".perf"], "Performance Benchmarks", host=host, batchtime=BATCHTIME_DAY)]
448447

449448

450449
def create_aws_auth_variants():
@@ -478,7 +477,7 @@ def create_no_server_variants():
478477

479478

480479
def create_alternative_hosts_variants():
481-
batchtime = BATCHTIME_WEEK
480+
batchtime = BATCHTIME_DAY
482481
variants = []
483482

484483
host = HOSTS["rhel7"]

.evergreen/scripts/generate_config_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
ALL_PYTHONS = CPYTHONS + PYPYS
2828
MIN_MAX_PYTHON = [CPYTHONS[0], CPYTHONS[-1]]
2929
BATCHTIME_WEEK = 10080
30+
BATCHTIME_DAY = 1440
3031
AUTH_SSLS = [("auth", "ssl"), ("noauth", "ssl"), ("noauth", "nossl")]
3132
TOPOLOGIES = ["standalone", "replica_set", "sharded_cluster"]
3233
C_EXTS = ["without_ext", "with_ext"]

.evergreen/scripts/setup-dev-env.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,4 @@ uv sync
5151

5252
echo "Setting up python environment... done."
5353

54-
# Ensure there is a pre-commit hook if there is a git checkout.
55-
if [ -d .git ] && [ ! -f .git/hooks/pre-commit ]; then
56-
uv run pre-commit install
57-
fi
58-
5954
popd > /dev/null

justfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ resync:
1818

1919
install:
2020
bash .evergreen/scripts/setup-dev-env.sh
21+
uvx pre-commit install
2122

2223
[group('docs')]
2324
docs: && resync
@@ -49,15 +50,15 @@ typing-pyright: && resync
4950

5051
[group('lint')]
5152
lint *args="": && resync
52-
uv run pre-commit run --all-files {{args}}
53+
uvx pre-commit run --all-files {{args}}
5354

5455
[group('lint')]
5556
lint-manual *args="": && resync
56-
uv run pre-commit run --all-files --hook-stage manual {{args}}
57+
uvx pre-commit run --all-files --hook-stage manual {{args}}
5758

5859
[group('test')]
5960
test *args="-v --durations=5 --maxfail=10": && resync
60-
uv run --extra test pytest {{args}}
61+
uvx --extra test pytest {{args}}
6162

6263
[group('test')]
6364
run-tests *args: && resync

pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ Source = "https://github.com/mongodb/mongo-python-driver"
4646
Tracker = "https://jira.mongodb.org/projects/PYTHON/issues"
4747

4848
[dependency-groups]
49-
dev = [
50-
"pre-commit>=4.0"
51-
]
49+
dev = []
5250
pip = ["pip"]
5351
# TODO: PYTHON-5464
5452
gevent = ["gevent", "cffi>=2.0.0b1;python_version=='3.14'"]

0 commit comments

Comments
 (0)