ps_interp_modes: refuse a single named file without a readable PSV0 chunk (DRAFT-241) #936

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

@⁠fin-github on GitHub · 2026-11-24 15:17 UTC · original
fin-github:draft/241 → main · +31 −0 · 2 files · 1 commits · open

Claimed in the coordination issue as: DRAFT-241 (#14)

Supersedes draft #241, carried over from the original repository. This is the same commit rebased onto current main, with the original author (Alex Arenas) kept and git cherry-pick -x recording where it came from. The change and its explanation are theirs; see #241 for the original description.

Tested

  • python -I tests/test_ps_interp_modes.py: OK
  • python -I scripts/check_no_game_data.py on the changed files: clean.

Windows 11 (10.0.26200), Python 3.14.4. No game files, nothing online.

AI-assisted (Claude Code): rebasing, conflict resolution and test runs.

**@⁠fin-github** on GitHub · 2026-11-24 15:17 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/936) `fin-github:draft/241` → `main` · +31 −0 · 2 files · 1 commits · open Claimed in the coordination issue as: `DRAFT-241` (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) Supersedes draft #241, carried over from the original repository. This is the same commit rebased onto current `main`, with the original author (Alex Arenas) kept and `git cherry-pick -x` recording where it came from. The change and its explanation are theirs; see #241 for the original description. ### Tested - `python -I tests/test_ps_interp_modes.py`: OK - `python -I scripts/check_no_game_data.py` on the changed files: clean. Windows 11 (10.0.26200), Python 3.14.4. No game files, nothing online. AI-assisted (Claude Code): rebasing, conflict resolution and test runs.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:29:16 +00:00
Author
Owner

@⁠PierreEbele on GitHub · 2026-11-25 21:46 UTC · original

Reviewed 9711b34: I ran tests/test_ps_interp_modes.py on the PR head (32/32) and on main (30/30); copied the new tests onto main, where the single-file test fails and the directory guard passes. A probe with the repo's synthetic containers reproduces the bug on main - a single garbage or truncated file exits 0 with an empty "0 shaders" census (JSON mode: files: []) - while the PR refuses with exit 2 and one error line; valid files and directory scans behave identically on both trees. One adjacent gap this PR does not touch: a single file the index marks as a non-ps stage also exits 0 with an empty census. AI-assisted review.

Recommendation: Merge

**@⁠PierreEbele** on GitHub · 2026-11-25 21:46 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/936#issuecomment-7175511428) Reviewed 9711b34: I ran tests/test_ps_interp_modes.py on the PR head (32/32) and on main (30/30); copied the new tests onto main, where the single-file test fails and the directory guard passes. A probe with the repo's synthetic containers reproduces the bug on main - a single garbage or truncated file exits 0 with an empty "0 shaders" census (JSON mode: `files: []`) - while the PR refuses with exit 2 and one error line; valid files and directory scans behave identically on both trees. One adjacent gap this PR does not touch: a single file the index marks as a non-ps stage also exits 0 with an empty census. 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/936/head:github-bot/gh-936'
git switch 'github-bot/gh-936'

Merge

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