Repository navigation
Conversation
|
Reviewed 0d6800a: sandboxed on arm64 Linux against origin/main and the PR head: test_text_tables (33 ran, 1 Windows-only skip), test_report_paths (22 ok), test_report_path_case (4 ran, 1 macOS skip), test_missing_input_exit_codes, compileall, and check_no_game_data pass identically on both trees; git merge-tree vs main is clean. Guard probes match main on this case-sensitive volume, and with a patched folding volume the PR refuses nonexistent case-colliding output pairs ( Recommendation: Merge |
…path guard (TEXT-TABLES-SHARED-REPORT-PATH) From ProjectLeonida#1228 (head 0d6800a), applied as a reviewed patch. Co-authored-by: breachato <breachato@users.noreply.github.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Native Windows 11 NTFS Verification (
|
|
Closing: upstream #1655 merged the same change (my commit is already in |
Claimed in the coordination issue as: TEXT-TABLES-SHARED-REPORT-PATH (#14 (comment))
Depends on: none
Fixes: none
What and why
tools/text_tables.pyanswered the report-path question two ways: a private_same_output_path(:427, realpath--dialogue/--tables/--stringsoutputs against each other (:460) and againsta source folder's
index.json(:466), and an inlineos.path.exists(...) and os.path.samefile(...)against everyinput (
:463). CONTRIBUTING.md asks a report writer to calltools/report_paths.same_report_pathinstead ofderiving it again, and the private copy missed that helper's folding-volume probe: on a Linux mount that ignores
case (vfat, exFAT, CIFS) two outputs differing only in case passed as distinct and the second replaced the first,
and an output named like an input with a different case was not refused.
Both places and the inline check now call
same_report_path. The tool already puts its own folder onsys.pathfor
file_modeandhashdict, so the import is one line; no test calls the private name, so it goes with theduplication. Different topic from TEXT-TABLES-RO-CLEANUP (#818, staged-file permissions). No behaviour change on
Windows, macOS or a case-sensitive Linux filesystem.
Tested
tests/test_text_tables.py: 33 passed, 13 subtests passed.python -I tools/text_tables.py --help: prints its usage (the import works under-I).python -m compileall -q tools/text_tables.py: clean.machine is NTFS, where
normcasealready folds case.tests/test_report_paths.pycovers the helper's ownfolding-volume answer.
GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)