mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:20:53 +01:00
[PR #1228] text_tables: ask report_paths for the report-path guard (TEXT-TABLES-SHARED-REPORT-PATH) #1260
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1260
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1228
Author: @breachato
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:text-tables-shared-report-path📝 Commits (1)
0d6800atext_tables: ask report_paths for the report-path guard📊 Changes
1 file changed (+4 additions, -12 deletions)
View changed files
📝
tools/text_tables.py(+4 -12)📄 Description
Claimed in the coordination issue as: TEXT-TABLES-SHARED-REPORT-PATH (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7143809865)
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)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.