tests: add CI regression guard for startup_stubs coverage #3656

Merged
Ammmae0x merged 1 commit from upstream-pr/3656 into main 2026-12-02 02:08:45 +00:00
Ammmae0x commented 2026-11-30 22:00:09 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Ammmae0x on 2026-11-30T22:00:09Z.


Refs #1149

Implements the untested CI regression guard noted in #1149 item 1: a CI meta-check that the startup_stubs test is present in the test list and executed, so the coverage cannot quietly vanish.

New files only (no existing file modified):

  • tests/startup_stubs_ci_check.py — no-arg audit plus a 7-mutation self-audit on scratch copies; standard library only (the workflow is read with a line/indent parser; the CI Python environment has no YAML package). Verifies: (a) add_test(NAME startup_stubs ...) exists in CMakeLists.txt, runs tests/startup_stub_check.py, and is not gated behind an off-by-default option or WILL_FAIL; (b) the non-PR Windows jobs run their full-suite ctest --preset dev / --preset release invocations without a -R filter (or one matching startup_stubs) and without an -E pattern matching startup_stubs; (c) the pr test preset filter is recorded accurately (smoke subset, excludes startup_stubs — reported, not a failure); any -R / -E that drops startup_stubs from a dev/release run fails loudly naming the job, line and regex.
  • tests/cmake/startup_stubs_ci.cmake — registers startup_stubs_ci_check (auto-globbed by CMakeLists.txt).
  • tests/checks/python-linux/startup_stubs_ci.txt — runs the check in Linux CI.
  • docs/experiments/startup-stubs-ci-guard.md — documents the guard, the mutations and the run commands.

Tests (Linux, /tmp/pe-env):

  • tests/startup_stubs_ci_check.py: PASS, 7/7 mutations killed (adding -R '^native_' to dev, -R '^foo' to release, widening -E to '(_hardware|startup_stubs)$' on dev and to '.*' on release, deleting the dev ctest invocation, removing add_test(NAME startup_stubs, typoing the dev preset to deev).
  • tools/run_checks_parallel.py --from-dir tests/checks/python-linux: all 73 checks passed.
  • tests/form_coverage_check.py, tests/docs_links_check.py (192 files / 745 links), tests/bidi_controls_check.py (2762 files): pass.

Notes: the separate focused step ctest --preset dev -R '^native_dxil_llvm_ident_controls$' is an extra check on top of the full run, not a replacement, so its -R is not flagged. Windows CTest execution of startup_stubs_ci_check awaits Windows verification.

Windows Verification (60490b2d)

Commit: 60490b2dc3e02ea336c907872aa90d1b54b9b156 (merge-tree upstream/main HEAD -> cffe8ef8, exit 0; git diff --check clean)
dev: cmake --preset dev && ctest --preset dev --no-tests=error -R "^startup_stubs_ci_check$" --output-on-failure -> 1/1 passed (3.72s; check + 7/7 mutations killed)
release: cmake --preset release && ctest --preset release --no-tests=error -R "^startup_stubs_ci_check$" -E "cpu_native_archive_" --output-on-failure -> 1/1 passed (3.68s)
Extra: startup_stubs_ci_check.py --build-dir out/build/dev -> passed (listed startup_stubs and startup_stubs_ci_check)
Checks: form_coverage_check.py, docs_links_check.py (193 files, 745 links), bidi_controls_check.py (2764 files) -> passed

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5574533336 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3656). Originally posted by [Ammmae0x](https://github.com/Ammmae0x) on 2026-11-30T22:00:09Z. --- Refs #1149 Implements the untested CI regression guard noted in #1149 item 1: a CI meta-check that the startup_stubs test is present in the test list and executed, so the coverage cannot quietly vanish. New files only (no existing file modified): - tests/startup_stubs_ci_check.py — no-arg audit plus a 7-mutation self-audit on scratch copies; standard library only (the workflow is read with a line/indent parser; the CI Python environment has no YAML package). Verifies: (a) add_test(NAME startup_stubs ...) exists in CMakeLists.txt, runs tests/startup_stub_check.py, and is not gated behind an off-by-default option or WILL_FAIL; (b) the non-PR Windows jobs run their full-suite ctest --preset dev / --preset release invocations without a -R filter (or one matching startup_stubs) and without an -E pattern matching startup_stubs; (c) the pr test preset filter is recorded accurately (smoke subset, excludes startup_stubs — reported, not a failure); any -R / -E that drops startup_stubs from a dev/release run fails loudly naming the job, line and regex. - tests/cmake/startup_stubs_ci.cmake — registers startup_stubs_ci_check (auto-globbed by CMakeLists.txt). - tests/checks/python-linux/startup_stubs_ci.txt — runs the check in Linux CI. - docs/experiments/startup-stubs-ci-guard.md — documents the guard, the mutations and the run commands. Tests (Linux, /tmp/pe-env): - tests/startup_stubs_ci_check.py: PASS, 7/7 mutations killed (adding -R '^native_' to dev, -R '^foo' to release, widening -E to '(_hardware|startup_stubs)$' on dev and to '.*' on release, deleting the dev ctest invocation, removing add_test(NAME startup_stubs, typoing the dev preset to deev). - tools/run_checks_parallel.py --from-dir tests/checks/python-linux: all 73 checks passed. - tests/form_coverage_check.py, tests/docs_links_check.py (192 files / 745 links), tests/bidi_controls_check.py (2762 files): pass. Notes: the separate focused step ctest --preset dev -R '^native_dxil_llvm_ident_controls$' is an extra check on top of the full run, not a replacement, so its -R is not flagged. Windows CTest execution of startup_stubs_ci_check awaits Windows verification. ### Windows Verification (`60490b2d`) ```text Commit: 60490b2dc3e02ea336c907872aa90d1b54b9b156 (merge-tree upstream/main HEAD -> cffe8ef8, exit 0; git diff --check clean) dev: cmake --preset dev && ctest --preset dev --no-tests=error -R "^startup_stubs_ci_check$" --output-on-failure -> 1/1 passed (3.72s; check + 7/7 mutations killed) release: cmake --preset release && ctest --preset release --no-tests=error -R "^startup_stubs_ci_check$" -E "cpu_native_archive_" --output-on-failure -> 1/1 passed (3.68s) Extra: startup_stubs_ci_check.py --build-dir out/build/dev -> passed (listed startup_stubs and startup_stubs_ci_check) Checks: form_coverage_check.py, docs_links_check.py (193 files, 745 links), bidi_controls_check.py (2764 files) -> passed ``` AI-assisted. <!-- WIN-VERIFY: passed | sha=60490b2dc3e02ea336c907872aa90d1b54b9b156 | targets=none | ctest=^startup_stubs_ci_check$ | release=true -->
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!3656
No description provided.