[PR #1171] tex_headers: ask report_paths for the report-path guard (TEX-HEADERS-SHARED-REPORT-PATH) #1204

Open
opened 2026-11-26 20:20:26 +01:00 by 4ld0 · 0 comments
Owner

📋 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)

  • ca8cccc tex_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.py derived report-path equality itself in same_output_path (:836), which is the
answer tools/report_paths.same_report_path exists to give (CONTRIBUTING.md asks a report writer to call
it 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.json and --out r.json passed as two reports
and the second overwrote the first. The tool now adds its own folder to sys.path and delegates;
same_output_path stays as a one-line wrapper because tests/test_tex_headers_report_paths.py patches
that 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 file
    that 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.
  • Not tested: the folding-volume case this fixes, which needs a case-folding mount (vfat/exFAT/CIFS);
    this machine is NTFS, where normcase already folds case. tests/test_report_paths.py covers the
    helper's own folding-volume answer.
  • No game files, no GPU; nothing was built.

GPUs tested: n/a

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of 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.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1171 **Author:** [@breachato](https://github.com/breachato) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `rpt-tex-headers` --- ### 📝 Commits (1) - [`ca8cccc`](https://github.com/ubiquitarianism/leonida/commit/ca8cccc1f647a6a3df0bed00d49960640cab36d2) tex_headers: ask report_paths for the report-path guard ### 📊 Changes **1 file changed** (+7 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `tools/tex_headers.py` (+7 -7) </details> ### 📄 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.py` derived report-path equality itself in `same_output_path` (`:836`), which is the answer `tools/report_paths.same_report_path` exists to give (CONTRIBUTING.md asks a report writer to call it 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.json` and `--out r.json` passed as two reports and the second overwrote the first. The tool now adds its own folder to `sys.path` and delegates; `same_output_path` stays as a one-line wrapper because `tests/test_tex_headers_report_paths.py` patches that 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 file that 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. - **Not tested:** the folding-volume case this fixes, which needs a case-folding mount (vfat/exFAT/CIFS); this machine is NTFS, where `normcase` already folds case. `tests/test_report_paths.py` covers the helper's own folding-volume answer. - No game files, no GPU; nothing was built. GPUs tested: n/a AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [x] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a: no translator change) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1204
No description provided.