Skip to content

Commit f938358

Browse files
committed
Merge branch 'master' of github.com:mongodb/mongo-python-driver
2 parents 14bdd27 + 79ad2a1 commit f938358

File tree

2 files changed

+127
-132
lines changed

2 files changed

+127
-132
lines changed

.evergreen/config.yml

Lines changed: 59 additions & 131 deletions
Original file line numberDiff line numberDiff line change
@@ -1990,99 +1990,6 @@ tasks:
19901990
- mongo-python-driver
19911991
- ${github_commit}
19921992

1993-
axes:
1994-
# Choice of distro
1995-
- id: platform
1996-
display_name: OS
1997-
values:
1998-
- id: rhel8
1999-
display_name: "RHEL 8.x"
2000-
run_on: rhel8.8-small
2001-
batchtime: 10080 # 7 days
2002-
- id: windows
2003-
display_name: "Windows 64"
2004-
run_on: windows-64-vsMulti-small
2005-
batchtime: 10080 # 7 days
2006-
- id: macos
2007-
display_name: "macOS"
2008-
run_on: macos-14
2009-
2010-
# Test with authentication?
2011-
- id: auth
2012-
display_name: Authentication
2013-
values:
2014-
- id: auth
2015-
display_name: Auth
2016-
variables:
2017-
AUTH: "auth"
2018-
- id: noauth
2019-
display_name: NoAuth
2020-
variables:
2021-
AUTH: "noauth"
2022-
2023-
# Test with SSL?
2024-
- id: ssl
2025-
display_name: SSL
2026-
values:
2027-
- id: ssl
2028-
display_name: SSL
2029-
variables:
2030-
SSL: "ssl"
2031-
- id: nossl
2032-
display_name: NoSSL
2033-
variables:
2034-
SSL: "nossl"
2035-
2036-
# Test with Auth + SSL (combined for convenience)?
2037-
- id: auth-ssl
2038-
display_name: Auth SSL
2039-
values:
2040-
- id: auth-ssl
2041-
display_name: Auth SSL
2042-
variables:
2043-
AUTH: "auth"
2044-
SSL: "ssl"
2045-
- id: noauth-nossl
2046-
display_name: NoAuth NoSSL
2047-
variables:
2048-
AUTH: "noauth"
2049-
SSL: "nossl"
2050-
2051-
# Choice of Python runtime version
2052-
- id: python-version
2053-
display_name: "Python"
2054-
values:
2055-
# Note: always display platform with python-version to avoid ambiguous display names.
2056-
# Linux
2057-
- id: "3.9"
2058-
display_name: "Python 3.9"
2059-
variables:
2060-
PYTHON_BINARY: "/opt/python/3.9/bin/python3"
2061-
- id: "3.10"
2062-
display_name: "Python 3.10"
2063-
variables:
2064-
PYTHON_BINARY: "/opt/python/3.10/bin/python3"
2065-
- id: "3.11"
2066-
display_name: "Python 3.11"
2067-
variables:
2068-
PYTHON_BINARY: "/opt/python/3.11/bin/python3"
2069-
- id: "3.12"
2070-
display_name: "Python 3.12"
2071-
variables:
2072-
PYTHON_BINARY: "/opt/python/3.12/bin/python3"
2073-
- id: "3.13"
2074-
display_name: "Python 3.13"
2075-
variables:
2076-
PYTHON_BINARY: "/opt/python/3.13/bin/python3"
2077-
- id: "pypy3.9"
2078-
display_name: "PyPy 3.9"
2079-
variables:
2080-
PYTHON_BINARY: "/opt/python/pypy3.9/bin/pypy3"
2081-
- id: "pypy3.10"
2082-
display_name: "PyPy 3.10"
2083-
variables:
2084-
PYTHON_BINARY: "/opt/python/pypy3.10/bin/pypy3"
2085-
20861993
buildvariants:
20871994
# Server Tests.
20881995
- name: test-rhel8-py3.9-auth-ssl-cov
@@ -3970,30 +3877,67 @@ buildvariants:
39703877
SKIP_HATCH: "true"
39713878
AUTH: noauth
39723879
SSL: nossl
3973-
3974-
- matrix_name: "test-search-index-helpers"
3975-
matrix_spec:
3976-
platform: rhel8
3977-
python-version: "3.9"
3978-
display_name: "Search Index Helpers ${platform}"
3880+
- name: oidc-auth-rhel8
39793881
tasks:
3980-
- name: "test_atlas_task_group_search_indexes"
3981-
3982-
- matrix_name: "mockupdb-tests"
3983-
matrix_spec:
3984-
platform: rhel8
3985-
python-version: 3.9
3986-
display_name: "MockupDB Tests"
3882+
- name: testoidc_task_group
3883+
display_name: OIDC Auth RHEL8
3884+
run_on:
3885+
- rhel87-small
3886+
batchtime: 20160
3887+
- name: oidc-auth-macos
39873888
tasks:
3988-
- name: "mockupdb"
3989-
3990-
- matrix_name: "tests-doctests"
3991-
matrix_spec:
3992-
platform: rhel8
3993-
python-version: ["3.9"]
3994-
display_name: "Doctests ${python-version} ${platform}"
3889+
- name: testoidc_task_group
3890+
display_name: OIDC Auth macOS
3891+
run_on:
3892+
- macos-14
3893+
batchtime: 20160
3894+
- name: oidc-auth-win64
39953895
tasks:
3996-
- name: "doctests"
3896+
- name: testoidc_task_group
3897+
display_name: OIDC Auth Win64
3898+
run_on:
3899+
- windows-64-vsMulti-small
3900+
batchtime: 20160
3901+
- name: atlas-connect-rhel8-py3.9
3902+
tasks:
3903+
- name: atlas-connect
3904+
display_name: Atlas connect RHEL8 py3.9
3905+
run_on:
3906+
- rhel87-small
3907+
expansions:
3908+
PYTHON_BINARY: /opt/python/3.9/bin/python3
3909+
- name: atlas-connect-rhel8-py3.13
3910+
tasks:
3911+
- name: atlas-connect
3912+
display_name: Atlas connect RHEL8 py3.13
3913+
run_on:
3914+
- rhel87-small
3915+
expansions:
3916+
PYTHON_BINARY: /opt/python/3.13/bin/python3
3917+
- name: doctests-rhel8-py3.9
3918+
tasks:
3919+
- name: doctests
3920+
display_name: Doctests RHEL8 py3.9
3921+
run_on:
3922+
- rhel87-small
3923+
expansions:
3924+
PYTHON_BINARY: /opt/python/3.9/bin/python3
3925+
- name: mockupdb-tests-rhel8-py3.9
3926+
tasks:
3927+
- name: mockupdb
3928+
display_name: MockupDB Tests RHEL8 py3.9
3929+
run_on:
3930+
- rhel87-small
3931+
expansions:
3932+
PYTHON_BINARY: /opt/python/3.9/bin/python3
3933+
- name: search-index-helpers-rhel8-py3.9
3934+
tasks:
3935+
- name: test_atlas_task_group_search_indexes
3936+
display_name: Search Index Helpers RHEL8 py3.9
3937+
run_on:
3938+
- rhel87-small
3939+
expansions:
3940+
PYTHON_BINARY: /opt/python/3.9/bin/python3
39973941

39983942
- name: "no-server"
39993943
display_name: "No server test"
@@ -4009,15 +3953,7 @@ buildvariants:
40093953
tasks:
40103954
- name: "coverage-report"
40113955

4012-
- matrix_name: "atlas-connect"
4013-
matrix_spec:
4014-
platform: rhel8
4015-
python-version: "*"
4016-
display_name: "Atlas connect ${python-version} ${platform}"
4017-
tasks:
4018-
- name: "atlas-connect"
4019-
4020-
# OCSP test matrix.
3956+
# OCSP tests.
40213957
- name: ocsp-test-rhel8-v4.4-py3.9
40223958
tasks:
40233959
- name: .ocsp
@@ -4359,14 +4295,6 @@ buildvariants:
43594295
test_loadbalancer: "true"
43604296
PYTHON_BINARY: /opt/python/3.9/bin/python3
43614297

4362-
- matrix_name: "oidc-auth-test"
4363-
matrix_spec:
4364-
platform: [ rhel8, macos, windows ]
4365-
display_name: "OIDC Auth ${platform}"
4366-
tasks:
4367-
- name: testoidc_task_group
4368-
batchtime: 20160 # 14 days
4369-
43704298
- name: testazureoidc-variant
43714299
display_name: "OIDC Auth Azure"
43724300
run_on: ubuntu2204-small

.evergreen/scripts/generate_config.py

Lines changed: 68 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ class Host:
5959
HOSTS["ubuntu22"] = Host("ubuntu22", "ubuntu2204-small", "Ubuntu-22")
6060
HOSTS["rhel7"] = Host("rhel7", "rhel79-small", "RHEL7")
6161

62+
6263
##############
6364
# Helpers
6465
##############
@@ -616,6 +617,72 @@ def generate_serverless_variants():
616617
]
617618

618619

620+
def generate_oidc_auth_variants():
621+
variants = []
622+
for host in ["rhel8", "macos", "win64"]:
623+
variants.append(
624+
create_variant(
625+
["testoidc_task_group"],
626+
get_display_name("OIDC Auth", host),
627+
host=host,
628+
batchtime=BATCHTIME_WEEK * 2,
629+
)
630+
)
631+
return variants
632+
633+
634+
def generate_search_index_variants():
635+
host = "rhel8"
636+
python = CPYTHONS[0]
637+
return [
638+
create_variant(
639+
["test_atlas_task_group_search_indexes"],
640+
get_display_name("Search Index Helpers", host, python=python),
641+
python=python,
642+
host=host,
643+
)
644+
]
645+
646+
647+
def generate_mockupdb_variants():
648+
host = "rhel8"
649+
python = CPYTHONS[0]
650+
return [
651+
create_variant(
652+
["mockupdb"],
653+
get_display_name("MockupDB Tests", host, python=python),
654+
python=python,
655+
host=host,
656+
)
657+
]
658+
659+
660+
def generate_doctests_variants():
661+
host = "rhel8"
662+
python = CPYTHONS[0]
663+
return [
664+
create_variant(
665+
["doctests"],
666+
get_display_name("Doctests", host, python=python),
667+
python=python,
668+
host=host,
669+
)
670+
]
671+
672+
673+
def generate_atlas_connect_variants():
674+
host = "rhel8"
675+
return [
676+
create_variant(
677+
["atlas-connect"],
678+
get_display_name("Atlas connect", host, python=python),
679+
python=python,
680+
host=host,
681+
)
682+
for python in MIN_MAX_PYTHON
683+
]
684+
685+
619686
def generate_aws_auth_variants():
620687
variants = []
621688
tasks = [
@@ -689,5 +756,5 @@ def generate_alternative_hosts_variants():
689756
# Generate Config
690757
##################
691758

692-
variants = generate_alternative_hosts_variants()
759+
variants = generate_search_index_variants()
693760
generate_yaml(variants=variants)

0 commit comments

Comments
 (0)