Skip to content

PYTHON-5372 Convert Enterprise Auth Variants to use common tasks #2330

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
May 2, 2025
80 changes: 36 additions & 44 deletions .evergreen/generated_configs/tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,50 +136,6 @@ tasks:
depends_on: [{ name: .server-version, variant: .coverage_tag, status: "*", patch_optional: true }]
tags: [coverage]

# Enterprise auth tests
- name: test-enterprise-auth-python3.9
commands:
- func: run server
vars:
TEST_NAME: enterprise_auth
AUTH: auth
PYTHON_VERSION: "3.9"
- func: assume ec2 role
- func: run tests
vars:
TEST_NAME: enterprise_auth
AUTH: auth
PYTHON_VERSION: "3.9"
tags: [enterprise_auth]
- name: test-enterprise-auth-python3.13
commands:
- func: run server
vars:
TEST_NAME: enterprise_auth
AUTH: auth
PYTHON_VERSION: "3.13"
- func: assume ec2 role
- func: run tests
vars:
TEST_NAME: enterprise_auth
AUTH: auth
PYTHON_VERSION: "3.13"
tags: [enterprise_auth]
- name: test-enterprise-auth-pypy3.10
commands:
- func: run server
vars:
TEST_NAME: enterprise_auth
AUTH: auth
PYTHON_VERSION: pypy3.10
- func: assume ec2 role
- func: run tests
vars:
TEST_NAME: enterprise_auth
AUTH: auth
PYTHON_VERSION: pypy3.10
tags: [enterprise_auth, pypy]

# Free threading tests
- name: test-free-threading
commands:
Expand Down Expand Up @@ -3928,6 +3884,7 @@ tasks:
- server-4.0
- python-3.9
- standalone-noauth-nossl
- noauth
- name: test-non-standard-v4.0-python3.10-noauth-ssl-replica-set
commands:
- func: run server
Expand All @@ -3948,6 +3905,7 @@ tasks:
- server-4.0
- python-3.10
- replica_set-noauth-ssl
- noauth
- name: test-non-standard-v4.0-python3.11-auth-ssl-sharded-cluster
commands:
- func: run server
Expand All @@ -3968,6 +3926,7 @@ tasks:
- server-4.0
- python-3.11
- sharded_cluster-auth-ssl
- auth
- name: test-non-standard-v4.2-python3.12-noauth-nossl-standalone
commands:
- func: run server
Expand All @@ -3988,6 +3947,7 @@ tasks:
- server-4.2
- python-3.12
- standalone-noauth-nossl
- noauth
- name: test-non-standard-v4.2-python3.13-noauth-ssl-replica-set
commands:
- func: run server
Expand All @@ -4008,6 +3968,7 @@ tasks:
- server-4.2
- python-3.13
- replica_set-noauth-ssl
- noauth
- name: test-non-standard-v4.2-python3.9-auth-ssl-sharded-cluster
commands:
- func: run server
Expand All @@ -4028,6 +3989,7 @@ tasks:
- server-4.2
- python-3.9
- sharded_cluster-auth-ssl
- auth
- name: test-non-standard-v4.4-python3.10-noauth-nossl-standalone
commands:
- func: run server
Expand All @@ -4048,6 +4010,7 @@ tasks:
- server-4.4
- python-3.10
- standalone-noauth-nossl
- noauth
- name: test-non-standard-v4.4-python3.11-noauth-ssl-replica-set
commands:
- func: run server
Expand All @@ -4068,6 +4031,7 @@ tasks:
- server-4.4
- python-3.11
- replica_set-noauth-ssl
- noauth
- name: test-non-standard-v4.4-python3.12-auth-ssl-sharded-cluster
commands:
- func: run server
Expand All @@ -4088,6 +4052,7 @@ tasks:
- server-4.4
- python-3.12
- sharded_cluster-auth-ssl
- auth
- name: test-non-standard-v5.0-python3.13-noauth-nossl-standalone
commands:
- func: run server
Expand All @@ -4108,6 +4073,7 @@ tasks:
- server-5.0
- python-3.13
- standalone-noauth-nossl
- noauth
- name: test-non-standard-v5.0-python3.9-noauth-ssl-replica-set
commands:
- func: run server
Expand All @@ -4128,6 +4094,7 @@ tasks:
- server-5.0
- python-3.9
- replica_set-noauth-ssl
- noauth
- name: test-non-standard-v5.0-python3.10-auth-ssl-sharded-cluster
commands:
- func: run server
Expand All @@ -4148,6 +4115,7 @@ tasks:
- server-5.0
- python-3.10
- sharded_cluster-auth-ssl
- auth
- name: test-non-standard-v6.0-python3.11-noauth-nossl-standalone
commands:
- func: run server
Expand All @@ -4168,6 +4136,7 @@ tasks:
- server-6.0
- python-3.11
- standalone-noauth-nossl
- noauth
- name: test-non-standard-v6.0-python3.12-noauth-ssl-replica-set
commands:
- func: run server
Expand All @@ -4188,6 +4157,7 @@ tasks:
- server-6.0
- python-3.12
- replica_set-noauth-ssl
- noauth
- name: test-non-standard-v6.0-python3.13-auth-ssl-sharded-cluster
commands:
- func: run server
Expand All @@ -4208,6 +4178,7 @@ tasks:
- server-6.0
- python-3.13
- sharded_cluster-auth-ssl
- auth
- name: test-non-standard-v7.0-python3.9-noauth-nossl-standalone
commands:
- func: run server
Expand All @@ -4228,6 +4199,7 @@ tasks:
- server-7.0
- python-3.9
- standalone-noauth-nossl
- noauth
- name: test-non-standard-v7.0-python3.10-noauth-ssl-replica-set
commands:
- func: run server
Expand All @@ -4248,6 +4220,7 @@ tasks:
- server-7.0
- python-3.10
- replica_set-noauth-ssl
- noauth
- name: test-non-standard-v7.0-python3.11-auth-ssl-sharded-cluster
commands:
- func: run server
Expand All @@ -4268,6 +4241,7 @@ tasks:
- server-7.0
- python-3.11
- sharded_cluster-auth-ssl
- auth
- name: test-non-standard-v8.0-python3.12-noauth-nossl-standalone
commands:
- func: run server
Expand All @@ -4288,6 +4262,7 @@ tasks:
- server-8.0
- python-3.12
- standalone-noauth-nossl
- noauth
- name: test-non-standard-v8.0-python3.13-noauth-ssl-replica-set
commands:
- func: run server
Expand All @@ -4308,6 +4283,7 @@ tasks:
- server-8.0
- python-3.13
- replica_set-noauth-ssl
- noauth
- name: test-non-standard-v8.0-python3.9-auth-ssl-sharded-cluster
commands:
- func: run server
Expand All @@ -4328,6 +4304,7 @@ tasks:
- server-8.0
- python-3.9
- sharded_cluster-auth-ssl
- auth
- name: test-non-standard-rapid-python3.10-noauth-nossl-standalone
commands:
- func: run server
Expand All @@ -4348,6 +4325,7 @@ tasks:
- server-rapid
- python-3.10
- standalone-noauth-nossl
- noauth
- name: test-non-standard-rapid-python3.11-noauth-ssl-replica-set
commands:
- func: run server
Expand All @@ -4368,6 +4346,7 @@ tasks:
- server-rapid
- python-3.11
- replica_set-noauth-ssl
- noauth
- name: test-non-standard-rapid-python3.12-auth-ssl-sharded-cluster
commands:
- func: run server
Expand All @@ -4388,6 +4367,7 @@ tasks:
- server-rapid
- python-3.12
- sharded_cluster-auth-ssl
- auth
- name: test-non-standard-latest-python3.13-noauth-nossl-standalone
commands:
- func: run server
Expand All @@ -4408,6 +4388,7 @@ tasks:
- server-latest
- python-3.13
- standalone-noauth-nossl
- noauth
- name: test-non-standard-latest-python3.9-noauth-ssl-replica-set
commands:
- func: run server
Expand All @@ -4428,6 +4409,7 @@ tasks:
- server-latest
- python-3.9
- replica_set-noauth-ssl
- noauth
- name: test-non-standard-latest-python3.10-auth-ssl-sharded-cluster
commands:
- func: run server
Expand All @@ -4448,6 +4430,7 @@ tasks:
- server-latest
- python-3.10
- sharded_cluster-auth-ssl
- auth
- name: test-non-standard-v4.0-pypy3.10-noauth-nossl-standalone
commands:
- func: run server
Expand All @@ -4468,6 +4451,7 @@ tasks:
- server-4.0
- python-pypy3.10
- standalone-noauth-nossl
- noauth
- pypy
- name: test-non-standard-v4.2-pypy3.10-noauth-ssl-replica-set
commands:
Expand All @@ -4489,6 +4473,7 @@ tasks:
- server-4.2
- python-pypy3.10
- replica_set-noauth-ssl
- noauth
- pypy
- name: test-non-standard-v4.4-pypy3.10-auth-ssl-sharded-cluster
commands:
Expand All @@ -4510,6 +4495,7 @@ tasks:
- server-4.4
- python-pypy3.10
- sharded_cluster-auth-ssl
- auth
- pypy
- name: test-non-standard-v5.0-pypy3.10-noauth-nossl-standalone
commands:
Expand All @@ -4531,6 +4517,7 @@ tasks:
- server-5.0
- python-pypy3.10
- standalone-noauth-nossl
- noauth
- pypy
- name: test-non-standard-v6.0-pypy3.10-noauth-ssl-replica-set
commands:
Expand All @@ -4552,6 +4539,7 @@ tasks:
- server-6.0
- python-pypy3.10
- replica_set-noauth-ssl
- noauth
- pypy
- name: test-non-standard-v7.0-pypy3.10-auth-ssl-sharded-cluster
commands:
Expand All @@ -4573,6 +4561,7 @@ tasks:
- server-7.0
- python-pypy3.10
- sharded_cluster-auth-ssl
- auth
- pypy
- name: test-non-standard-v8.0-pypy3.10-noauth-nossl-standalone
commands:
Expand All @@ -4594,6 +4583,7 @@ tasks:
- server-8.0
- python-pypy3.10
- standalone-noauth-nossl
- noauth
- pypy
- name: test-non-standard-rapid-pypy3.10-noauth-ssl-replica-set
commands:
Expand All @@ -4615,6 +4605,7 @@ tasks:
- server-rapid
- python-pypy3.10
- replica_set-noauth-ssl
- noauth
- pypy
- name: test-non-standard-latest-pypy3.10-auth-ssl-sharded-cluster
commands:
Expand All @@ -4636,4 +4627,5 @@ tasks:
- server-latest
- python-pypy3.10
- sharded_cluster-auth-ssl
- auth
- pypy
27 changes: 18 additions & 9 deletions .evergreen/generated_configs/variants.yml
Original file line number Diff line number Diff line change
Expand Up @@ -251,24 +251,33 @@ buildvariants:
tags: [encryption_tag]

# Enterprise auth tests
- name: auth-enterprise-rhel8
tasks:
- name: .test-non-standard .auth
display_name: Auth Enterprise RHEL8
run_on:
- rhel87-small
expansions:
TEST_NAME: enterprise_auth
AUTH: auth
- name: auth-enterprise-macos
tasks:
- name: .enterprise_auth !.pypy
- name: .test-non-standard !.pypy .auth
display_name: Auth Enterprise macOS
run_on:
- macos-14
expansions:
TEST_NAME: enterprise_auth
AUTH: auth
- name: auth-enterprise-win64
tasks:
- name: .enterprise_auth !.pypy
- name: .test-non-standard !.pypy .auth
display_name: Auth Enterprise Win64
run_on:
- windows-64-vsMulti-small
- name: auth-enterprise-rhel8
tasks:
- name: .enterprise_auth
display_name: Auth Enterprise RHEL8
run_on:
- rhel87-small
expansions:
TEST_NAME: enterprise_auth
AUTH: auth

# Free threaded tests
- name: free-threaded-rhel8-python3.13t
Expand Down Expand Up @@ -368,7 +377,7 @@ buildvariants:
- name: mod_wsgi-ubuntu-22
tasks:
- name: .mod_wsgi
display_name: mod_wsgi Ubuntu-22
display_name: Mod_WSGI Ubuntu-22
run_on:
- ubuntu2204-small
expansions:
Expand Down
Loading
Loading