Repository navigation
Conversation
|
Tested a27c3a7 on Windows 11 (NTFS), Python 3.12.10 (CPU only, no GPU, no game files): fail, the new test mocks What I ran:
Old guard vs new guard, same hand-made inputs,
No input changed in any row. On NTFS the two guards give the same answer for every alias I tried. About the description: it says the old Suggested fix:
Overlap: no other open PR changes this guard. #4352 (bvh_rehydrate: the output write and --compare read report failures as one line) conflicts with this PR in AI-assisted (Claude Code). |
|
Tested a27c3a7 merged with main ff686df on Linux/Python 3.12.16: pass Commands run (merged worktree,
Diff read: the --out-versus-inputs guard (the dehydrated file, every --geom file, and --compare) now calls |
Claimed in the coordination issue as: #6214 (comment)
What and why
tools/bvh_rehydrate.pypreviously guarded--outagainst overwriting input files (dehydrated,--geomVB/IB,--compare) withos.path.exists(a.out)+os.path.samefile, which misses case-folding aliases on volumes like vfat/exFAT/CIFS when--outdoes not exist yet. Replacing it withreport_paths.same_report_pathreuses the repository's shared collision helper and covers all platforms/filesystems uniformly, with a regression test intests/test_bvh_rehydrate.py.Tested
python3 -I -m compileall -q tools/bvh_rehydrate.py tests/test_bvh_rehydrate.py-> exit 0python3 -I tests/test_bvh_rehydrate.py -v-> 17/17 passedpython3 -I tests/test_text_write_line_endings.py-> 3/3 passedAI-assisted: yes
Checklist
docs/design.md, with how it was confirmed.