mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:40:52 +01:00
[PR #334] [MERGED] manifest_verifier: refuse cache aliases of the input manifest (VERIFY-CACHE-COLLISION) #385
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#385
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/334
Author: @JiyouProt
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @QemmHD
Base:
main← Head:codex/verify-cache-collision📝 Commits (1)
90b9fb8manifest_verifier: refuse cache paths that alias the input manifest (VERIFY-CACHE-COLLISION)📊 Changes
2 files changed (+57 additions, -0 deletions)
View changed files
📝
tests/test_manifest_verifier.py(+52 -0)📝
tools/manifest_verifier.py(+5 -0)📄 Description
Claimed in the coordination issue as: VERIFY-CACHE-COLLISION
What and why
Passing the same file to
--manifestand--cachereplaces the input manifest with cache JSON after reporting successful verification. Reject this configuration before hashing or writing, usingreport_paths.same_report_pathso alternate path spellings, case aliases and links are also checked. The CLI exits 2 and preserves the original bytes.Adds five synthetic regression tests. On the unchanged base, four fail and the symlink case is skipped on this Windows host. Based on main
84347bb; GitHub reports no merge conflicts.Tested
Windows, Python 3.14.3:
python -I tests/test_manifest_verifier.py: 62 tests, 58 passed, 4 skipped.python -I tests/test_report_paths.py: 22 tests, 20 passed, 2 skipped. The sandbox prevents hard/symbolic link creation; the other verifier skips are platform-specific.python -m compileall -q make_game.py tools tests,python -I make_game.py --help,scripts/check_no_game_data.pyon both changed files, andgit diff --check: passed.python -I scripts/run_semantic_tests.py tests/semantic --jobs 8: completed in 501 s, 463 files and 6,075 tests run; 2 files failed (test_sopc_validation,test_unary_f16_validation) becausespirv-as/spirv-valare unavailable. These translator files are unchanged by this PR.GPUs tested: n/a. No game files used.
AI-assisted: yes, Codex.
Checklist
84347bband merges cleanly at submission.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.