world_drawable_verify: one archive under another case is the same source (WORLD-DRAWABLE-VERIFY-CASE-ARCHIVE) #1453
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!1453
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/world-drawable-verify-case-archive"
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 successfully merged and closed
Claimed in the coordination issue as: WORLD-DRAWABLE-VERIFY-CASE-ARCHIVE
What and why
tools/world_drawable_verify.pyarchive_pathcompared source archives withos.path.normcase(os.path.abspath()). On macOS that keeps the case you typed, andos.path.samefilecannot see a file that has not been created. Two reports ofGame/missing.rpfandgame/missing.rpfwere rejected as different archives.The key now uses
report_paths.path_key. A hard link or symlink to an existing archive is still accepted, and a distinct file with the same bytes is still rejected.Tested
python -I tests/test_world_drawable_verify_archive_aliases.py(7 tests) andpython -I tests/test_world_drawable_verify.py(10 tests) on macOS APFS. The new test accepts two spellings of one archive that has not been created. No game files.GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly.docs/design.md(not a translator change).Made with Cursor
Reviewed 8dd9eb777: ran
python3 -I tests/test_world_drawable_verify.py(10 OK on this head and on main; the rewritten 2-itemrealpathmock into a tolerant fake is behavior-preserving with both tools) andtests/test_world_drawable_verify_archive_aliases.py(6 OK; the new test skips here — this volume keeps case), all on Linux arm64, no GPU or game files. Probedverify()withcase_insensitive_volume()patched to its macOS-default answer: main rejects predictions…/Game/missing.rpfagainst…/game/missing.rpfwith "different source archive from predictions" (ValueError); this head confirms them, NFC-vs-NFD accent spellings included. Controls unchanged on both trees: same-case and dotted spellings accepted, genuinely different archives rejected, and on the case-keeping host every probe row is identical between main and this head. Same residue noted on #1452: Linux mounts that fold case (vfat/exFAT/CIFS) stay outsidepath_key's knowledge — pre-existing, a candidate for the coordination issue.AI-assisted review.
Recommendation: Merge
Verified by OreoFR
3408969a7+ PR head8dd9eb777python -I tests/test_world_drawable_verify.py tests/test_world_drawable_verify_archive_aliases.pyAI-assisted (Claude Code, Claude Opus 5.5).
#1453 | head 8dd9eb777c4b1c22d20e66c74ba94c7113da9fda (merged cleanly onto origin/main a3484ceebc) | Windows 11 (10.0.26200.9974, NTFS), Python 3.12.10 | AI-assisted: yes
Independent Verification (Windows 11 + NTFS)
tools/world_drawable_verify.py,tests/test_world_drawable_verify.py, andtests/test_world_drawable_verify_archive_aliases.pyswitchingarchive_pathtoreport_paths.path_key(value).python -I scripts/check_no_game_data.py tools/world_drawable_verify.py tests/test_world_drawable_verify.py tests/test_world_drawable_verify_archive_aliases.pypassed (rc=0).python -I tests/test_world_drawable_verify.py->10 ran, OK (skipped=1)python -I tests/test_world_drawable_verify_archive_aliases.py->7 ran, OK (skipped=1), executingtest_another_case_of_one_missing_archive_is_the_same_source(Game\missing.rpfvsgame\missing.rpfon a real case-insensitive NTFS volume; only the separate POSIX symlink alias test skips when unprivileged symlinks are unavailable).Gameand an NTFS directory junctionmklink /J GameJunc Game, confirmingarchive_path("...\\Game\\missing.rpf") == archive_path("...\\GameJunc\\MISSING.RPF")beforemissing.rpfexists on disk.Ready for testing: merges cleanly with
main3535eb5c4. Not inmainyet:git cherryfinds 1 commit(s) not there, and 1 of the 14 lines it adds are already present. No duplicate found: its claimWORLD-DRAWABLE-VERIFY-CASE-ARCHIVEappears in no other open pull request and in nomaincommit.AI-assisted (Claude Code).
RUN comment, PR #1453 (world_drawable_verify: one archive under another case is the same source)
Heads: PR 8dd9eb777, main 91bab934d (local merge of the PR into it, not pushed).
Kind: Python (tools/world_drawable_verify.py) + 2 test files.
Commands (repo root):
python -I tests/test_world_drawable_verify.py
python -I tests/test_world_drawable_verify_archive_aliases.py
RED: not reachable on Windows. With tools/world_drawable_verify.py put back to the merge-base version and the tests kept, both files still pass (10/10 and 7/7). The bug is macOS-specific: os.path.normcase keeps case there, while on Windows it already lowercases, so normcase(abspath()) and path_key() agree and the new test (another_case_of_one_missing_archive_is_the_same_source, a case-insensitive volume is detected, it runs and is not skipped here) is green without the fix. The red needs a case-insensitive volume on macOS.
GREEN at the PR head: test_world_drawable_verify 10/10, test_world_drawable_verify_archive_aliases 7/7.
GREEN merged into main: same two files 10/10 and 7/7.
Machine: Windows 11 Pro, RTX 3090 24 GB, NVIDIA 621.40, Python 3.13.12 (uv build), run with
python -I, one process per test file.Verified by OreoFR on macOS 27.2.1 (26B131), Apple M5, APFS (case-insensitive), Python 3.12.16, main 4364a4fa6, PR head 8dd9eb777 : red 1 error / green 17 OK
git merge-tree). Reviews: none. No game data in the diff. Skipped on the merge: none.test_world_drawable_verify10/10 (the PR only adapts therealpathmock there);test_world_drawable_verify_archive_aliases7 tests, 1 error:test_another_case_of_one_missing_archive_is_the_same_source(ValueError "different source archive").git merge --no-ff): 10/10 and 7/7 OK (the new test skips on case-sensitive volumes; it runs here).report_paths): main 464 passed / 9 skipped, merge 465 / 9, no regression.archive_pathnow goes throughpath_key, which folds case per volume. Correct.Verdict: READY
AI-assisted: Claude Code
Thank you! Merged into
mainwith a merge commit. It was verified ready on its current head (8dd9eb777) by OreoFR's Mac agent (macOS, red/green on main + PR); see the verification comment above. (AI-assisted, posted for DadaCap.)