PYTHON-4983 - Restore no C extension coverage variants (#2142)

This commit is contained in:
Noah Stapp 2025-02-11 13:13:14 -05:00 committed by GitHub
parent 13fa361421
commit 8b6be4ab71
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 41 additions and 1 deletions

View File

@ -1079,6 +1079,19 @@ buildvariants:
PYTHON_BINARY: /opt/python/3.9/bin/python3
# Server tests
- name: test-rhel8-python3.9-cov-no-c
tasks:
- name: .standalone .sync_async
- name: .replica_set .sync_async
- name: .sharded_cluster .sync_async
display_name: "* Test RHEL8 Python3.9 cov No C"
run_on:
- rhel87-small
expansions:
COVERAGE: coverage
NO_EXT: "1"
PYTHON_BINARY: /opt/python/3.9/bin/python3
tags: [coverage_tag]
- name: test-rhel8-python3.9-cov
tasks:
- name: .standalone .sync_async
@ -1091,6 +1104,19 @@ buildvariants:
COVERAGE: coverage
PYTHON_BINARY: /opt/python/3.9/bin/python3
tags: [coverage_tag]
- name: test-rhel8-python3.13-cov-no-c
tasks:
- name: .standalone .sync_async
- name: .replica_set .sync_async
- name: .sharded_cluster .sync_async
display_name: "* Test RHEL8 Python3.13 cov No C"
run_on:
- rhel87-small
expansions:
COVERAGE: coverage
NO_EXT: "1"
PYTHON_BINARY: /opt/python/3.13/bin/python3
tags: [coverage_tag]
- name: test-rhel8-python3.13-cov
tasks:
- name: .standalone .sync_async
@ -1103,6 +1129,19 @@ buildvariants:
COVERAGE: coverage
PYTHON_BINARY: /opt/python/3.13/bin/python3
tags: [coverage_tag]
- name: test-rhel8-pypy3.10-cov-no-c
tasks:
- name: .standalone .sync_async
- name: .replica_set .sync_async
- name: .sharded_cluster .sync_async
display_name: "* Test RHEL8 PyPy3.10 cov No C"
run_on:
- rhel87-small
expansions:
COVERAGE: coverage
NO_EXT: "1"
PYTHON_BINARY: /opt/python/pypy3.10/bin/python3
tags: [coverage_tag]
- name: test-rhel8-pypy3.10-cov
tasks:
- name: .standalone .sync_async

View File

@ -279,8 +279,9 @@ def create_server_variants() -> list[BuildVariant]:
host = DEFAULT_HOST
# Prefix the display name with an asterisk so it is sorted first.
base_display_name = "* Test"
for python in [*MIN_MAX_PYTHON, PYPYS[-1]]:
for python, c_ext in product([*MIN_MAX_PYTHON, PYPYS[-1]], C_EXTS):
expansions = dict(COVERAGE="coverage")
handle_c_ext(c_ext, expansions)
display_name = get_display_name(base_display_name, host, python=python, **expansions)
variant = create_variant(
[f".{t} .sync_async" for t in TOPOLOGIES],