Shader checks: preserve subprocess diagnostics and validate probe output #1325

Open
github-bot wants to merge 1 commit from github-bot/gh-1325 into main AGit
Owner

@⁠delysidemanYT1 on GitHub · 2026-11-24 21:53 UTC · original
delysidemanYT1:gpu-check-subprocess-output → main · +6 −4 · 1 files · 1 commits · open

Claimed in the coordination issue as: GPU-CHECK-CLI-OUTPUT, GPU-CHECK-MESH-OUTPUT, GPU-CHECK-PROBE-JSON
Claim: #14

  • Escape undecodable bytes from ordinary shader test processes, preserving their return code and diagnostics.
  • Apply the same capture policy to the wave64 mesh harness, which captures its output separately.
  • Treat non-object JSON from the barycentric capability probe as unavailable and keep the fallback disabled for that response. Valid object responses still work.

Reproduced all three failures on Windows before the change and verified all three afterward with synthetic subprocess output: invalid bytes in both streams for the ordinary and mesh paths, and JSON arrays/null plus a valid object for the capability probe. All 219 related unit tests and git diff --check passed. No GPU execution or game files. AI-assisted (Codex).

**@⁠delysidemanYT1** on GitHub · 2026-11-24 21:53 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1325) `delysidemanYT1:gpu-check-subprocess-output` → `main` · +6 −4 · 1 files · 1 commits · open Claimed in the coordination issue as: GPU-CHECK-CLI-OUTPUT, GPU-CHECK-MESH-OUTPUT, GPU-CHECK-PROBE-JSON Claim: https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14 - Escape undecodable bytes from ordinary shader test processes, preserving their return code and diagnostics. - Apply the same capture policy to the wave64 mesh harness, which captures its output separately. - Treat non-object JSON from the barycentric capability probe as unavailable and keep the fallback disabled for that response. Valid object responses still work. Reproduced all three failures on Windows before the change and verified all three afterward with synthetic subprocess output: invalid bytes in both streams for the ordinary and mesh paths, and JSON arrays/null plus a valid object for the capability probe. All 219 related unit tests and git diff --check passed. No GPU execution or game files. AI-assisted (Codex).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:47:29 +00:00
Author
Owner

@⁠PierreEbele on GitHub · 2026-11-25 14:59 UTC · original

Reviewed dc64524: ran the three shader-check test files on the PR tree (87/64/6 OK) and main (88/68/6 OK); probes on both trees reproduce both fixed crashes — undecodable tool output kills main's check.run with an uncaught UnicodeDecodeError, and valid non-dict JSON in the probe answer makes main raise AttributeError at import; the PR keeps the log (\xNN escapes) and answers False (mesh path not run: no GPU). Non-blocking: the dict guard needs stdout contamination (the probe tool prints one ASCII JSON line), scripts/run_gpu_tests.py:364/379 keeps the same unguarded .get() (pre-existing, reproduced); a small regression test would pin the crashes. AI-assisted review.

Recommendation: Merge

**@⁠PierreEbele** on GitHub · 2026-11-25 14:59 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1325#issuecomment-7166136639) Reviewed dc64524: ran the three shader-check test files on the PR tree (87/64/6 OK) and main (88/68/6 OK); probes on both trees reproduce both fixed crashes — undecodable tool output kills main's check.run with an uncaught UnicodeDecodeError, and valid non-dict JSON in the probe answer makes main raise AttributeError at import; the PR keeps the log (\xNN escapes) and answers False (mesh path not run: no GPU). Non-blocking: the dict guard needs stdout contamination (the probe tool prints one ASCII JSON line), scripts/run_gpu_tests.py:364/379 keeps the same unguarded .get() (pre-existing, reproduced); a small regression test would pin the crashes. AI-assisted review. **Recommendation:** Merge
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1325/head:github-bot/gh-1325'
git switch 'github-bot/gh-1325'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1325'
git switch 'github-bot/gh-1325'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1325'
git switch 'github-bot/gh-1325'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1325'
git switch 'main'
git merge --squash 'github-bot/gh-1325'
git switch 'main'
git merge --ff-only 'github-bot/gh-1325'
git switch 'main'
git merge 'github-bot/gh-1325'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.