Skip to content

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

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 1 commit into from
Feb 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .evergreen/generated_configs/variants.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion .evergreen/scripts/generate_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down
Loading