You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
check_no_game_data: detect PSO/shader caches under renamed files - #7366
A PSO/shader cache renamed .txt currently passes check_no_game_data, including inside ZIP and gzip files. Add its measured four-byte signature at offset 0 (docs/pso_cache.md, Header) to the existing classifier, so these inputs exit 1 and report PSO/shader cache.
The tests construct only short synthetic headers in temporary folders. They cover renamed direct files, ZIP members, gzip streams, and controls for truncated/other-version headers, the bytes at a nonzero offset, and a text description of the signature. All three new detection cases failed before the fix (exit 0 instead of 1).
Validation on Windows 11 26200, Python 3.12.5:
python -I tests/test_check_no_game_data.py: 8 tests pass, no skips.
python -I tests/test_no_game_data_workflow.py: 3 tests pass, no skips.
python -I scripts/check_no_game_data.py: full tracked-file scan passes.
Based on main 511e3826; clean merge against 5cf3dafe. Fresh coordination/PR searches found no competing implementation. No new PR dependency: the other container signatures in #5788 already landed via #6311; its existing docstring conflict is also present against the unchanged base. The independent changes in #6079 and #6396 merge cleanly with this branch.
AI-assisted (Codex). No game files used or included. CPU-only checks; GPU not exercised (host: RTX 3070, driver 610.88).
Independent Linux check (WSL2, CPython 3.14.4) merged into main 042c5f378: pass. tests/test_check_no_game_data.py: OK. Negative control: with main's script 4 cases fail (renamed file, zip member, gzip stream). python3 -I scripts/check_no_game_data.py on the repo itself still exits 0. The magic matches docs/pso_cache.md (offset 0x00, 50 53 00 09). Note: #7387 adds the same signature two minutes later; this one has the wider tests (zip/gzip, offset and version controls). AI-assisted (Claude).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A PSO/shader cache renamed
.txtcurrently passescheck_no_game_data, including inside ZIP and gzip files. Add its measured four-byte signature at offset 0 (docs/pso_cache.md, Header) to the existing classifier, so these inputs exit 1 and reportPSO/shader cache.Claim: #7333 (comment)
Finding: #7231 (comment)
The tests construct only short synthetic headers in temporary folders. They cover renamed direct files, ZIP members, gzip streams, and controls for truncated/other-version headers, the bytes at a nonzero offset, and a text description of the signature. All three new detection cases failed before the fix (exit 0 instead of 1).
Validation on Windows 11 26200, Python 3.12.5:
python -I tests/test_check_no_game_data.py: 8 tests pass, no skips.python -I tests/test_no_game_data_workflow.py: 3 tests pass, no skips.python -I scripts/check_no_game_data.py: full tracked-file scan passes.python -m compileall -q scripts/check_no_game_data.py tests/test_check_no_game_data.pyandgit diff --check: pass.Based on main
511e3826; clean merge against5cf3dafe. Fresh coordination/PR searches found no competing implementation. No new PR dependency: the other container signatures in #5788 already landed via #6311; its existing docstring conflict is also present against the unchanged base. The independent changes in #6079 and #6396 merge cleanly with this branch.AI-assisted (Codex). No game files used or included. CPU-only checks; GPU not exercised (host: RTX 3070, driver 610.88).