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

Merged
R0Y00 merged 1 commit from upstream-pr/3817 into main 2026-12-02 02:51:00 +00:00
R0Y00 commented 2026-12-02 02:41:10 +00:00 (Migrated from github.com)

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 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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5598734851 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3817). Originally posted by [R0Y00](https://github.com/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 `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.
lukaslw-lab commented 2026-12-02 02:50:05 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-02T02:50:05Z.

Review: APPROVED


Reviewed 4e2758ca by 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 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 #3507 and #3815". #3815 is an unrelated pixel PR; the report is #3816.
  • 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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6143959194 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3817#pullrequestreview-6143959194). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-12-02T02:50:05Z. **Review:** APPROVED --- Reviewed `4e2758ca` by 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 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 #3507 and #3815". #3815 is an unrelated pixel PR; the report is #3816. - 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.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!3817
No description provided.