mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #1171] tex_headers: ask report_paths for the report-path guard (TEX-HEADERS-SHARED-REPORT-PATH) #1204
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#1204
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/1171
Author: @breachato
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:rpt-tex-headers📝 Commits (1)
ca8cccctex_headers: ask report_paths for the report-path guard📊 Changes
1 file changed (+7 additions, -7 deletions)
View changed files
📝
tools/tex_headers.py(+7 -7)📄 Description
Claimed in the coordination issue as: 7142220367 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7142220367)
Depends on: none
Fixes: none
What and why
tools/tex_headers.pyderived report-path equality itself insame_output_path(:836), which is theanswer
tools/report_paths.same_report_pathexists to give (CONTRIBUTING.md asks a report writer to callit instead of deriving it again). The private copy missed that helper's folding-volume probe, so on a
Linux mount that ignores case (vfat, exFAT, CIFS)
--out R.jsonand--out r.jsonpassed as two reportsand the second overwrote the first. The tool now adds its own folder to
sys.pathand delegates;same_output_pathstays as a one-line wrapper becausetests/test_tex_headers_report_paths.pypatchesthat name to count its calls.
Tested
tests/test_tex_headers.py: 77 passed, 140 subtests passed.tests/test_tex_headers_report_paths.py: 7 passed, 1 skipped, 2 subtests passed (this is the filethat patches
tex_headers.same_output_path, which is why the name stays).python -I tools/tex_headers.py --help: prints its usage.python -m compileall -q tools/tex_headers.py: clean.this machine is NTFS, where
normcasealready folds case.tests/test_report_paths.pycovers thehelper's own folding-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.