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

Closed
opened 2026-12-02 02:39:07 +00:00 by lukaslw-lab · 1 comment
lukaslw-lab commented 2026-12-02 02:39:07 +00:00 (Migrated from github.com)
Contributor

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


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:

  • #3656 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.
  • #3690 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 #3712 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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6735604227 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3816). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-12-02T02:39:07Z. --- 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: - #3656 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`. - #3690 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 #3712 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 commented 2026-12-02 02:57:43 +00:00 (Migrated from github.com)
Author
Contributor

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


Fixed by #3817 (merged as 5416e287).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7333379421 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3816#issuecomment-7333379421). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-12-02T02:57:43Z. --- Fixed by #3817 (merged as `5416e287`).
Sign in to join this conversation.
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#3816
No description provided.