tooling: report skipped checks separately #2288
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2296"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by JVProg on 2026-11-25T10:43:56Z.
Change
tools/run_checks_parallel.pylisted every non-zero exit underFAILED:, including exit 77, which checks use for a skip. On a Windows PC without CMake onPATH,tests/startup_build_rev_check.pyskipped and the runner reported it as failed.The runner now lists exit-77 checks under
SKIPPED:, apart fromFAILED:. This is an independent tooling fix that makes skips visible separately, asAGENTS.mdasks.The exit status does not change: a skip still returns 1, so it cannot turn a CI run green, and
all N checks passedis not printed.run_checks()is shared with the CI step that passes per-check arguments, so the new summary applies there too. Per-script log group headers still showexit 77.Verification
Commit
d8b0c27b, Windows 11 x64 (build 26300.9974), Python 3.13.New test cases against the previous runner (run before the fix):
Failed as expected with an
AssertionError: the skipping script was listed underFAILED:and there was noSKIPPED:line.With the change:
Result:
run_checks_parallel_check: ok, exit 0.I also ran the 116 scripts named in the
python-linuxjob of.github/workflows/windows.ymlthrough the runner (Git Bash, from the repository root):tests/startup_build_rev_check.py(CMake not onPATH). It was listed underSKIPPED:.FAILED:line. Runner exit status: 1, because of the skip.I then repeated the same command with the CMake bundled with Visual Studio Build Tools added to
PATH:all 116 checks passed, exit 0. The 24 skipped test cases inside five scripts were still skipped.I also ran the pull request presets locally from an x64 Visual Studio developer command prompt (CMake 3.31.6, MSVC 19.44.35230):
Configure and build succeeded. Of 31 tests, 17 passed, 14 skipped and none failed. The skips are the
spirv_*_warpbridge tests; I did not set up the pinned SPIR-V tools, which hosted CI builds and requires. These CTest runs are a general regression check; the runner behavior is covered by the Python test above.Not run: the hosted CI, the full CTest suite, the SPIR-V bridge tests and GPU hardware tests.
Evidence and follow-up
The new cases use small Python scripts that the test writes to a temporary directory. They cover a skip next to a pass, and a skip next to a failure. No third-party fixtures.
Checklist
AI-assisted (Claude Code): it wrote the change, ran the checks and drafted this description.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T10:49:01Z.
Review: COMMENTED
Review of head
d8b0c27b2a32144f700337832568ce5a30084e82(comment only).Summary: Exit 77 is now listed under
SKIPPED:apart fromFAILED:. The exit status stays 1, so a skip cannot turn a run green. The change is small and correct. No P1 or P2 findings.Checked
tools/run_checks_parallel.py(+11/-2) andtests/run_checks_parallel_check.py(+14).git diff --stat origin/main...HEADshows only these two files.if code == SKIP_EXIT_CODE ... elif code != 0is the right order.if failed or skipped: return 1keeps the old status. "all N checks passed" is only printed when both lists are empty.SKIPPED:line and the absence ofFAILED:. They also cover a mixed skip, fail and pass run, and the log group headerexit 77.Commands run locally on the worktree
python3 -B tests/run_checks_parallel_check.py->run_checks_parallel_check: okpython3 tests/docs_links_check.py->Checked 18 Markdown files and 436 links.python3 tests/bidi_controls_check.py->no bidirectional controls.git diff --check origin/main...HEAD-> cleancode == SKIP_EXIT_CODEchanged tocode == 9999. The check failed (the skip script was listed underFAILED:). Killed.if failed or skipped:changed toif failed:. The check failed (the output said "all 2 checks passed" for a skip run). Killed. Worktree restored withgit checkout -- ..Nits (not blocking)
FAILED:would no longer see skips there. I found none in the repo (rgover yml, py and md files).AGENTS.mdanddocs/non-windows-hosts.mddo not mention the newSKIPPED:line. The module docstring does. A one-line doc note is optional.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T11:09:52Z.
I'll take the contributor-guide follow-up from the review. I'll document how to read the Linux CI runner's skip and failure summaries and verify the exit statuses against the existing runner regression.