world_drawable_verify: deduplicate input manifests by file identity #466
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/466"
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 EdenBendheim on 2026-11-24T05:50:06Z.
Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7123318168
What changed
tools/world_drawable_verify.py: Deduplicate input manifests in first-seen order usingos.fstat()on the opened file handle (closing stat-vs-open races), requiring bothst_devandst_inoto be non-zero and falling back toos.path.normcase(os.path.realpath(path))when either is unavailable. Preserves upstream source-archive alias checks and keeps independently written identical-content manifests counted separately.tests/test_world_drawable_verify.py: Synthetic tests covering repeated/relative paths, hard links, symlinks, independent identical-content files, zerost_dev/st_inoandnormcasefallbacks, and input-order errors.Testing & Disclosure
gpt-6.2-sol) and reviewed with Codex (gpt-6.2-astra).ubiquitarianism/leonidamain(8f481cf16):test_world_drawable_verify*.py(16/16),compileall,check_no_game_data.py, LF check — all passed.Imported from ubiquitarianism/leonida. Originally posted by QemmHD on 2026-11-24T08:53:43Z.
Merging. Why merged: the same manifest passed twice under different paths is counted once.
Why it's good: security-reviewed; on main
1c93c86: world_drawable tests 9 -> 16 (3 fail without the fix); repo-consistency set 563/563.AI-assisted (Claude Code, Claude Opus 5.5).