world_drawable_verify: one archive under another case is the same source (WORLD-DRAWABLE-VERIFY-CASE-ARCHIVE) #1453
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1453"
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 Dashhhhhhhh on 2026-11-25T00:31:04Z.
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
Imported from ubiquitarianism/leonida. Originally posted by PierreEbele on 2026-11-25T15:32:54Z.
Reviewed
8dd9eb777: ranpython3 -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
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-28T21:51:18Z.
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).
Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-29T00:55:30Z.
#1453 | head
8dd9eb777c(merged cleanly onto origin/maina3484ceebc) | Windows 11 (10.0.26200.9974, NTFS), Python 3.12.10 | AI-assisted: yesIndependent 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.Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-29T14:18:23Z.
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).
Imported from ubiquitarianism/leonida. Originally posted by enlight3d on 2026-11-29T15:28:55Z.
RUN comment, PR #1453 (world_drawable_verify: one archive under another case is the same source)
Heads: PR
8dd9eb777, main91bab934d(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.Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-29T17:11:12Z.
Verified by OreoFR on macOS 27.2.1 (26B131), Apple M5, APFS (case-insensitive), Python 3.12.16, main
4364a4fa6, PR head8dd9eb777: red 1 error / green 17 OKgit 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
Imported from ubiquitarianism/leonida. Originally posted by DadaCap on 2026-11-29T18:28:02Z.
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.)