ps_interp_modes: refuse a single named file without a readable PSV0 chunk (DRAFT-241) #936
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/936"
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 ubiquitarianism/leonida. Originally posted by fin-github on 2026-11-24T15:17:22Z.
Claimed in the coordination issue as:
DRAFT-241(https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7135362620)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 andgit cherry-pick -xrecording 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: OKpython -I scripts/check_no_game_data.pyon 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.
Imported from ubiquitarianism/leonida. Originally posted by PierreEbele on 2026-11-25T21:46:00Z.
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
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T19:26:50Z.
Red/green: tests/test_ps_interp_modes.py fails on main (single file without PSV0 exits 0 instead of 2) and passes with the PR merged, on GitHub Actions Linux and natively on Windows.
Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main
7daa4a4a5in GitHub Actions: no new failure.AI-assisted (Claude Code, Claude Opus 5.5)