tests: audit full Windows runs separately from coverage-only dispatch #3819

Manually merged
github merged 1 commit from github-bot/gh-3817 into main 2026-12-02 02:51:37 +00:00 AGit
Owner

@⁠R0Y00 on GitHub · 2026-12-02 02:41 UTC · original
R0Y00:codex/coverage-only-startup-ci-guard → main · +20 −3 · 1 files · 1 commits · merged 2026-12-02 02:51 UTC

Refs #3509 and #3817.

#3658 added the startup-stubs CI guard. #3692 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 7069dfea and an isolated copy of the existing registration and presets: python -B tests/baseline_startup_stubs_ci_check.py exited 1 with the reproduced false positive and 5/7 mutations killed. python -B tests/startup_stubs_ci_check.py exited 0, with 8/8 mutations killed.

**@⁠R0Y00** on GitHub · 2026-12-02 02:41 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3817) `R0Y00:codex/coverage-only-startup-ci-guard` → `main` · +20 −3 · 1 files · 1 commits · merged 2026-12-02 02:51 UTC Refs #3509 and #3817. #3658 added the startup-stubs CI guard. #3692 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 `7069dfea` and an isolated copy of the existing registration and presets: `python -B tests/baseline_startup_stubs_ci_check.py` exited 1 with the reproduced false positive and 5/7 mutations killed. `python -B tests/startup_stubs_ci_check.py` exited 0, with 8/8 mutations killed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 02:44:28 +00:00
github manually merged commit 5416e2871b into main 2026-12-02 02:51:37 +00:00
Author
Owner

@⁠lukaslw-lab on GitHub · 2026-12-02 02:50 UTC · original · approved these changes

Reviewed 4e2758ca by reading the diff; not built or run.

Verdict: approve. This fixes #3818 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 hits DEV_LINE, so it can no longer survive on the coverage call. No MUST.

  • SHOULD The gate check accepts the workflow if the gate line appears anywhere in the file (any(entry.strip() == COVERAGE_GATE ...)). A second COVERAGE_ONLY: 'true' in the build-and-test job's or step's env: 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 one COVERAGE_ONLY: definition, the gated one, closes that. A mutation that adds a job-level COVERAGE_ONLY: 'true' would pin it.
  • NIT The body says "Refs #3509 and #3817". #3817 is an unrelated pixel PR; the report is #3818.
  • Checked, no finding:
    • The skip ends at the first non-blank line indented no deeper than the elseif, so the } else { full-suite branch is audited again.
    • Exact-string matching fails closed. A reworded branch or gate makes the coverage call count as a full-suite call again, and the guard reports it.
    • Only build-and-test gets 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 b7d61632 and every open PR failed it.

**@⁠lukaslw-lab** on GitHub · 2026-12-02 02:50 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3817#pullrequestreview-6143959194) · **approved these changes** Reviewed `4e2758ca` by reading the diff; not built or run. **Verdict: approve.** This fixes #3818 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 hits `DEV_LINE`, so it can no longer survive on the coverage call. No MUST. - **SHOULD** The gate check accepts the workflow if the gate line appears anywhere in the file (`any(entry.strip() == COVERAGE_GATE ...)`). A second `COVERAGE_ONLY: 'true'` in the `build-and-test` job's or step's `env:` 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 one `COVERAGE_ONLY:` definition, the gated one, closes that. A mutation that adds a job-level `COVERAGE_ONLY: 'true'` would pin it. - **NIT** The body says "Refs #3509 and #3817". #3817 is an unrelated pixel PR; the report is #3818. - Checked, no finding: - The skip ends at the first non-blank line indented no deeper than the `elseif`, so the `} else {` full-suite branch is audited again. - Exact-string matching fails closed. A reworded branch or gate makes the coverage call count as a full-suite call again, and the guard reports it. - Only `build-and-test` gets 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 `b7d61632` and every open PR failed it.
This discussion has been locked. Commenting is limited to contributors.
No description provided.