tooling: report skipped checks separately #2288

Merged
JVProg merged 1 commit from upstream-pr/2296 into main 2026-11-25 10:59:30 +00:00
JVProg commented 2026-11-25 10:43:56 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by JVProg on 2026-11-25T10:43:56Z.


Change

tools/run_checks_parallel.py listed every non-zero exit under FAILED:, including exit 77, which checks use for a skip. On a Windows PC without CMake on PATH, tests/startup_build_rev_check.py skipped and the runner reported it as failed.

The runner now lists exit-77 checks under SKIPPED:, apart from FAILED:. This is an independent tooling fix that makes skips visible separately, as AGENTS.md asks.

The exit status does not change: a skip still returns 1, so it cannot turn a CI run green, and all N checks passed is 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 show exit 77.

Verification

Commit d8b0c27b, Windows 11 x64 (build 26300.9974), Python 3.13.

New test cases against the previous runner (run before the fix):

python -B tests/run_checks_parallel_check.py

Failed as expected with an AssertionError: the skipping script was listed under FAILED: and there was no SKIPPED: line.

With the change:

python -B tests/run_checks_parallel_check.py

Result: run_checks_parallel_check: ok, exit 0.

I also ran the 116 scripts named in the python-linux job of .github/workflows/windows.yml through the runner (Git Bash, from the repository root):

list=$(awk '/^  python-linux:/{f=1} /^  build-and-test:/{f=0} f' .github/workflows/windows.yml | grep -o 'tests/[A-Za-z0-9_/]*\.py' | grep -v 'run_checks_parallel\.py')
./out/pe-env/Scripts/python.exe -B tools/run_checks_parallel.py -j 4 $list
  • 115 scripts exited 0.
  • 1 script skipped: tests/startup_build_rev_check.py (CMake not on PATH). It was listed under SKIPPED:.
  • No FAILED: line. Runner exit status: 1, because of the skip.
  • Five of the scripts that exited 0 also reported skipped test cases (1, 2, 1, 1 and 19; 24 in total). These are not counted as passed cases.

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):

cmake --preset dev
cmake --build --preset pr
ctest --preset pr --no-tests=error

Configure and build succeeded. Of 31 tests, 17 passed, 14 skipped and none failed. The skips are the spirv_*_warp bridge 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

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture.
  • I updated README/docs when a capability or build requirement changed. (Neither changed; the runner's docstring describes the new summary.)
  • I did not include game files, dumps, distribution links or secrets.

AI-assisted (Claude Code): it wrote the change, ran the checks and drafted this description.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6602660823 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2296). Originally posted by [JVProg](https://github.com/JVProg) on 2026-11-25T10:43:56Z. --- ## Change `tools/run_checks_parallel.py` listed every non-zero exit under `FAILED:`, including exit 77, which checks use for a skip. On a Windows PC without CMake on `PATH`, `tests/startup_build_rev_check.py` skipped and the runner reported it as failed. The runner now lists exit-77 checks under `SKIPPED:`, apart from `FAILED:`. This is an independent tooling fix that makes skips visible separately, as `AGENTS.md` asks. The exit status does not change: a skip still returns 1, so it cannot turn a CI run green, and `all N checks passed` is 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 show `exit 77`. ## Verification Commit `d8b0c27b`, Windows 11 x64 (build 26300.9974), Python 3.13. New test cases against the previous runner (run before the fix): ``` python -B tests/run_checks_parallel_check.py ``` Failed as expected with an `AssertionError`: the skipping script was listed under `FAILED:` and there was no `SKIPPED:` line. With the change: ``` python -B tests/run_checks_parallel_check.py ``` Result: `run_checks_parallel_check: ok`, exit 0. I also ran the 116 scripts named in the `python-linux` job of `.github/workflows/windows.yml` through the runner (Git Bash, from the repository root): ```bash list=$(awk '/^ python-linux:/{f=1} /^ build-and-test:/{f=0} f' .github/workflows/windows.yml | grep -o 'tests/[A-Za-z0-9_/]*\.py' | grep -v 'run_checks_parallel\.py') ./out/pe-env/Scripts/python.exe -B tools/run_checks_parallel.py -j 4 $list ``` - 115 scripts exited 0. - 1 script skipped: `tests/startup_build_rev_check.py` (CMake not on `PATH`). It was listed under `SKIPPED:`. - No `FAILED:` line. Runner exit status: 1, because of the skip. - Five of the scripts that exited 0 also reported skipped test cases (1, 2, 1, 1 and 19; 24 in total). These are not counted as passed cases. 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): ``` cmake --preset dev cmake --build --preset pr ctest --preset pr --no-tests=error ``` Configure and build succeeded. Of 31 tests, 17 passed, 14 skipped and none failed. The skips are the `spirv_*_warp` bridge 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 - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] I considered a negative control or failure case for a new fixture. - [x] I updated README/docs when a capability or build requirement changed. (Neither changed; the runner's docstring describes the new summary.) - [x] I did not include game files, dumps, distribution links or secrets. AI-assisted (Claude Code): it wrote the change, ran the checks and drafted this description.
upstream-sync closed this pull request 2026-11-25 11:02:25 +00:00
tedin7 commented 2026-11-25 11:02:25 +00:00 (Migrated from github.com)

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 from FAILED:. 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

  • Diff: tools/run_checks_parallel.py (+11/-2) and tests/run_checks_parallel_check.py (+14). git diff --stat origin/main...HEAD shows only these two files.
  • if code == SKIP_EXIT_CODE ... elif code != 0 is the right order. if failed or skipped: return 1 keeps the old status. "all N checks passed" is only printed when both lists are empty.
  • The new tests cover a skip-only run, with its status, the SKIPPED: line and the absence of FAILED:. They also cover a mixed skip, fail and pass run, and the log group header exit 77.
  • Title is neutral. The PR is not a draft and is mergeable. CI: Linux Python checks pass, Windows build and test pass, gfx1013 fixtures pass. The /O2 job and the chart job are skipped by design.

Commands run locally on the worktree

  • python3 -B tests/run_checks_parallel_check.py -> run_checks_parallel_check: ok
  • python3 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 -> clean
  • Mutation 1: code == SKIP_EXIT_CODE changed to code == 9999. The check failed (the skip script was listed under FAILED:). Killed.
  • Mutation 2: if failed or skipped: changed to if failed:. The check failed (the output said "all 2 checks passed" for a skip run). Killed. Worktree restored with git checkout -- ..
  • Windows WARP was not run. The change is Python tooling only and has no shader or C++ path.

Nits (not blocking)

  • Other callers that read the runner's output for the string FAILED: would no longer see skips there. I found none in the repo (rg over yml, py and md files).
  • AGENTS.md and docs/non-windows-hosts.md do not mention the new SKIPPED: line. The module docstring does. A one-line doc note is optional.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6056159589 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2296#pullrequestreview-6056159589). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T10:49:01Z. **Review:** COMMENTED --- Review of head `d8b0c27b2a32144f700337832568ce5a30084e82` (comment only). **Summary:** Exit 77 is now listed under `SKIPPED:` apart from `FAILED:`. 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** - Diff: `tools/run_checks_parallel.py` (+11/-2) and `tests/run_checks_parallel_check.py` (+14). `git diff --stat origin/main...HEAD` shows only these two files. - `if code == SKIP_EXIT_CODE ... elif code != 0` is the right order. `if failed or skipped: return 1` keeps the old status. "all N checks passed" is only printed when both lists are empty. - The new tests cover a skip-only run, with its status, the `SKIPPED:` line and the absence of `FAILED:`. They also cover a mixed skip, fail and pass run, and the log group header `exit 77`. - Title is neutral. The PR is not a draft and is mergeable. CI: Linux Python checks pass, Windows build and test pass, gfx1013 fixtures pass. The /O2 job and the chart job are skipped by design. **Commands run locally on the worktree** - `python3 -B tests/run_checks_parallel_check.py` -> `run_checks_parallel_check: ok` - `python3 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` -> clean - Mutation 1: `code == SKIP_EXIT_CODE` changed to `code == 9999`. The check failed (the skip script was listed under `FAILED:`). Killed. - Mutation 2: `if failed or skipped:` changed to `if failed:`. The check failed (the output said "all 2 checks passed" for a skip run). Killed. Worktree restored with `git checkout -- .`. - Windows WARP was not run. The change is Python tooling only and has no shader or C++ path. **Nits (not blocking)** - Other callers that read the runner's output for the string `FAILED:` would no longer see skips there. I found none in the repo (`rg` over yml, py and md files). - `AGENTS.md` and `docs/non-windows-hosts.md` do not mention the new `SKIPPED:` line. The module docstring does. A one-line doc note is optional. AI-assisted; commands listed were executed locally.
RavenCurseBurg commented 2026-11-25 12:01:52 +00:00 (Migrated from github.com)

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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7160678356 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2296#issuecomment-7160678356). Originally posted by [RavenCurseBurg](https://github.com/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.
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!2288
No description provided.