Visitar URL original
👷 ci: pin coverage to the ctrace core (#4009) · tox-dev/tox@0bbe8c4 · GitHub
Skip to content

Commit 0bbe8c4

Browse files
authored
👷 ci: pin coverage to the ctrace core (#4009)
The Python 3.14 and 3.15 jobs started failing on every platform after coverage 7.15.3 shipped: it now picks the sys.monitoring core by default on those versions, and that core cannot record the per-test dynamic contexts pytest-cov sets. The warning coverage raises at the first context switch is an error under our pytest settings, so all 16k tests errored out. Pinning the coverage core to ctrace restores the test runs and keeps context data accurate — sysmon was also under-reporting coverage. Unblocks #4008.
1 parent 9ac0081 commit 0bbe8c4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎pyproject.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ ini_options.tmp_path_retention_policy = "failed"
245245
ini_options.timeout = 30
246246

247247
[tool.coverage]
248+
run.core = "ctrace" # sysmon (the 3.14+ default) cannot record the dynamic contexts pytest-cov sets
248249
run.parallel = true
249250
run.plugins = [
250251
"covdefaults",

0 commit comments

Comments
 (0)