tests: startup_stubs_ci_check fails on main after the coverage-only dispatch mode (#3656 + #3690) #3818

Closed
opened 2026-12-02 02:44:26 +00:00 by github-bot · 1 comment
Owner

@⁠lukaslw-lab on GitHub · 2026-12-02 02:39 UTC · original

The Linux job "Run platform-independent Python checks" fails on main b7d61632, so it fails on every open PR. Two PRs merged a minute apart:

  • #3658 added tests/startup_stubs_ci_check.py. It inspects every ctest --preset dev call in the build-and-test job and requires each one to sit in the } else { (non-PR) branch and to select startup_stubs.
  • #3692 added an elseif ($env:COVERAGE_ONLY -eq 'true') branch with a filtered dev call (.github/workflows/windows.yml:509):
    ctest --preset dev ... -E '_hardware$' -R '^(cpu_|pixel_aot_|compute_store_aot_|mesh_entry_aot_)'

That call comes before the } else { and does not select startup_stubs, so the guard fails (_check_workflow, startup_stubs_ci_check.py:283-310):

FAIL: job 'build-and-test' ctest --preset dev invocation is not in the non-PR (else) branch
FAIL: job 'build-and-test' ctest --preset dev has -R '^(cpu_|pixel_aot_|compute_store_aot_|mesh_entry_aot_)' which does not match startup_stubs (.github/workflows/windows.yml:509)
FAIL: mutation 'delete dev ctest invocation': survived (expected 'has no ctest --preset dev invocation')
FAIL: mutation 'typo dev preset name in workflow': survived (expected 'has no ctest --preset dev invocation')
FAIL: mutation audit killed 5 of 7

The two mutations survive for the same reason: after the full-suite line is deleted or misspelled, the coverage-only call still counts as a dev invocation.

Tree python -B tests/startup_stubs_ci_check.py
main b7d61632 (local, Windows 10 19045) exit 1, the failures above
CI, main b7d61632 Linux Python job failed
CI, PR #3714 at a7fe90de (no workflow or guard change) Linux Python job fails at startup_stubs_ci_check.py

Proposal: the coverage-only branch runs a subset on purpose (manual dispatch only), so the guard should ignore calls inside elseif ($env:COVERAGE_ONLY ...). It should then require exactly one full-suite dev call in the } else { branch, and that call must select startup_stubs. The two surviving mutations would then be killed again.

AI-assisted.

**@⁠lukaslw-lab** on GitHub · 2026-12-02 02:39 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/3816) The Linux job "Run platform-independent Python checks" fails on main `b7d61632`, so it fails on every open PR. Two PRs merged a minute apart: - #3658 added `tests/startup_stubs_ci_check.py`. It inspects every `ctest --preset dev` call in the `build-and-test` job and requires each one to sit in the `} else {` (non-PR) branch and to select `startup_stubs`. - #3692 added an `elseif ($env:COVERAGE_ONLY -eq 'true')` branch with a filtered dev call (`.github/workflows/windows.yml:509`): `ctest --preset dev ... -E '_hardware$' -R '^(cpu_|pixel_aot_|compute_store_aot_|mesh_entry_aot_)'` That call comes before the `} else {` and does not select `startup_stubs`, so the guard fails (`_check_workflow`, `startup_stubs_ci_check.py:283-310`): ``` FAIL: job 'build-and-test' ctest --preset dev invocation is not in the non-PR (else) branch FAIL: job 'build-and-test' ctest --preset dev has -R '^(cpu_|pixel_aot_|compute_store_aot_|mesh_entry_aot_)' which does not match startup_stubs (.github/workflows/windows.yml:509) FAIL: mutation 'delete dev ctest invocation': survived (expected 'has no ctest --preset dev invocation') FAIL: mutation 'typo dev preset name in workflow': survived (expected 'has no ctest --preset dev invocation') FAIL: mutation audit killed 5 of 7 ``` The two mutations survive for the same reason: after the full-suite line is deleted or misspelled, the coverage-only call still counts as a dev invocation. | Tree | `python -B tests/startup_stubs_ci_check.py` | |---|---| | main `b7d61632` (local, Windows 10 19045) | exit 1, the failures above | | CI, main `b7d61632` | Linux Python job failed | | CI, PR #3714 at `a7fe90de` (no workflow or guard change) | Linux Python job fails at `startup_stubs_ci_check.py` | Proposal: the coverage-only branch runs a subset on purpose (manual dispatch only), so the guard should ignore calls inside `elseif ($env:COVERAGE_ONLY ...)`. It should then require exactly one full-suite dev call in the `} else {` branch, and that call must select `startup_stubs`. The two surviving mutations would then be killed again. AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 02:44:26 +00:00
Author
Owner

@⁠lukaslw-lab on GitHub · 2026-12-02 02:57 UTC · original

Fixed by #3819 (merged as 5416e287).

**@⁠lukaslw-lab** on GitHub · 2026-12-02 02:57 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/3816#issuecomment-7333379421) Fixed by #3819 (merged as `5416e287`).
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/R0Y00--Xbox2Windows#3818
No description provided.