tests: audit full Windows runs separately from coverage-only dispatch #3817
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3817"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-02T02:41:10Z.
Refs #3507 and #3815.
#3656 added the startup-stubs CI guard. #3690 added a dispatch-only coverage run with the same Debug preset as the full suite. Together they make the guard treat the restricted coverage selection as the ordinary Debug suite, failing the Linux checks.
Exclude only the explicit coverage-only branch from the full-suite audit, check that its switch is gated to manual workflow dispatch, and keep the existing Debug and Release filters under audit. The preset-typo mutation now targets the full Debug invocation. Add a mutation for an ungated coverage switch.
Local verification on Windows with the merged workflow at
7069dfeaand an isolated copy of the existing registration and presets:python -B tests/baseline_startup_stubs_ci_check.pyexited 1 with the reproduced false positive and 5/7 mutations killed.python -B tests/startup_stubs_ci_check.pyexited 0, with 8/8 mutations killed.Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-02T02:50:05Z.
Review: APPROVED
Reviewed
4e2758caby reading the diff; not built or run.Verdict: approve. This fixes #3816 as proposed there. The full-suite audit skips only the explicit
elseif ($env:COVERAGE_ONLY -eq 'true')block, and the Debug and Release lines are still audited. The preset-typo mutation now hitsDEV_LINE, so it can no longer survive on the coverage call. No MUST.any(entry.strip() == COVERAGE_GATE ...)). A secondCOVERAGE_ONLY: 'true'in thebuild-and-testjob's or step'senv:would override the workflow-level gate (windows.yml:16), so every push would run only the coverage subset, and the guard would still pass. Requiring exactly oneCOVERAGE_ONLY:definition, the gated one, closes that. A mutation that adds a job-levelCOVERAGE_ONLY: 'true'would pin it.elseif, so the} else {full-suite branch is audited again.build-and-testgets the exemption. The release job's audit is unchanged.Tests: the guard's own mutation audit now runs 8 mutations, adding "ungate the coverage-only branch". CI's Linux Python job, which runs this check, is green at this head. Before this, main
b7d61632and every open PR failed it.