Skip to content

Commit 8b6be4a

Browse files
authored
PYTHON-4983 - Restore no C extension coverage variants (#2142)
1 parent 13fa361 commit 8b6be4a

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

.evergreen/generated_configs/variants.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,6 +1079,19 @@ buildvariants:
10791079
PYTHON_BINARY: /opt/python/3.9/bin/python3
10801080

10811081
# Server tests
1082+
- name: test-rhel8-python3.9-cov-no-c
1083+
tasks:
1084+
- name: .standalone .sync_async
1085+
- name: .replica_set .sync_async
1086+
- name: .sharded_cluster .sync_async
1087+
display_name: "* Test RHEL8 Python3.9 cov No C"
1088+
run_on:
1089+
- rhel87-small
1090+
expansions:
1091+
COVERAGE: coverage
1092+
NO_EXT: "1"
1093+
PYTHON_BINARY: /opt/python/3.9/bin/python3
1094+
tags: [coverage_tag]
10821095
- name: test-rhel8-python3.9-cov
10831096
tasks:
10841097
- name: .standalone .sync_async
@@ -1091,6 +1104,19 @@ buildvariants:
10911104
COVERAGE: coverage
10921105
PYTHON_BINARY: /opt/python/3.9/bin/python3
10931106
tags: [coverage_tag]
1107+
- name: test-rhel8-python3.13-cov-no-c
1108+
tasks:
1109+
- name: .standalone .sync_async
1110+
- name: .replica_set .sync_async
1111+
- name: .sharded_cluster .sync_async
1112+
display_name: "* Test RHEL8 Python3.13 cov No C"
1113+
run_on:
1114+
- rhel87-small
1115+
expansions:
1116+
COVERAGE: coverage
1117+
NO_EXT: "1"
1118+
PYTHON_BINARY: /opt/python/3.13/bin/python3
1119+
tags: [coverage_tag]
10941120
- name: test-rhel8-python3.13-cov
10951121
tasks:
10961122
- name: .standalone .sync_async
@@ -1103,6 +1129,19 @@ buildvariants:
11031129
COVERAGE: coverage
11041130
PYTHON_BINARY: /opt/python/3.13/bin/python3
11051131
tags: [coverage_tag]
1132+
- name: test-rhel8-pypy3.10-cov-no-c
1133+
tasks:
1134+
- name: .standalone .sync_async
1135+
- name: .replica_set .sync_async
1136+
- name: .sharded_cluster .sync_async
1137+
display_name: "* Test RHEL8 PyPy3.10 cov No C"
1138+
run_on:
1139+
- rhel87-small
1140+
expansions:
1141+
COVERAGE: coverage
1142+
NO_EXT: "1"
1143+
PYTHON_BINARY: /opt/python/pypy3.10/bin/python3
1144+
tags: [coverage_tag]
11061145
- name: test-rhel8-pypy3.10-cov
11071146
tasks:
11081147
- name: .standalone .sync_async

.evergreen/scripts/generate_config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,9 @@ def create_server_variants() -> list[BuildVariant]:
279279
host = DEFAULT_HOST
280280
# Prefix the display name with an asterisk so it is sorted first.
281281
base_display_name = "* Test"
282-
for python in [*MIN_MAX_PYTHON, PYPYS[-1]]:
282+
for python, c_ext in product([*MIN_MAX_PYTHON, PYPYS[-1]], C_EXTS):
283283
expansions = dict(COVERAGE="coverage")
284+
handle_c_ext(c_ext, expansions)
284285
display_name = get_display_name(base_display_name, host, python=python, **expansions)
285286
variant = create_variant(
286287
[f".{t} .sync_async" for t in TOPOLOGIES],

0 commit comments

Comments
 (0)