ttpf_mips: ask report_paths for the report-path guard (TTPF-MIPS-SHARED-REPORT-PATH) #1173

Open
github-bot wants to merge 1 commit from github-bot/gh-1173 into main AGit
Owner

@⁠breachato on GitHub · 2026-11-24 19:32 UTC · original
breachato:rpt-ttpf-mips → main · +3 −11 · 1 files · 1 commits · open

Claimed in the coordination issue as: 7142221628 (#14)

Depends on: none

Fixes: none

What and why

Both output guards of tools/ttpf_mips.py (:2188, :2208) compared paths with a private
same_output_path (:1496), a second derivation of tools/report_paths.same_report_path that
CONTRIBUTING.md asks a report writer to call, and one that missed the helper's folding-volume probe: on a
Linux mount that ignores case (vfat, exFAT, CIFS) --json R.json and --json r.json were two report paths
and the second overwrote the first. Both sites now call same_report_path; no test calls the private
name.

Tested

  • tests/test_ttpf_mips.py: 93 passed, 156 subtests passed.
  • python -I tools/ttpf_mips.py --help: prints its usage.
  • python -m compileall -q tools/ttpf_mips.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)
**@⁠breachato** on GitHub · 2026-11-24 19:32 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1173) `breachato:rpt-ttpf-mips` → `main` · +3 −11 · 1 files · 1 commits · open Claimed in the coordination issue as: 7142221628 (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) Depends on: none Fixes: none ### What and why Both output guards of `tools/ttpf_mips.py` (`:2188`, `:2208`) compared paths with a private `same_output_path` (`:1496`), a second derivation of `tools/report_paths.same_report_path` that CONTRIBUTING.md asks a report writer to call, and one that missed the helper's folding-volume probe: on a Linux mount that ignores case (vfat, exFAT, CIFS) `--json R.json` and `--json r.json` were two report paths and the second overwrote the first. Both sites now call `same_report_path`; no test calls the private name. ### Tested - `tests/test_ttpf_mips.py`: **93 passed**, 156 subtests passed. - `python -I tools/ttpf_mips.py --help`: prints its usage. - `python -m compileall -q tools/ttpf_mips.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)
Both output guards compared paths with a private `same_output_path`, a second derivation of `report_paths.same_report_path` that CONTRIBUTING.md asks a report writer to call, and one that missed the helper's folding-volume probe (vfat/exFAT/CIFS).

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:41:22 +00:00
Author
Owner

@⁠abnalstlll-byte on GitHub · 2026-11-24 19:35 UTC · original · approved these changes

Reviewed and verified. Standardizes --json and --out report destination guards in tools/ttpf_mips.py against overwriting input archives or texture pools via canonical tools/report_paths.py:same_report_path. 100% clean-room.

**@⁠abnalstlll-byte** on GitHub · 2026-11-24 19:35 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1173#pullrequestreview-6046026638) · **approved these changes** Reviewed and verified. Standardizes `--json` and `--out` report destination guards in `tools/ttpf_mips.py` against overwriting input archives or texture pools via canonical `tools/report_paths.py:same_report_path`. 100% clean-room.
Author
Owner

@⁠Deedlyy on GitHub · 2026-11-24 20:10 UTC · original

Recommendation: [MERGE]

Reasoning: Both output guards in ttpf_mips call report_paths.same_report_path instead of a private copy. Net -8 lines, part of the #1162 series. CI (label, change-scope, no-game-data and the Runtime jobs) is still queued awaiting maintainer workflow approval, so nothing has run in CI yet; GitHub reports no merge conflict with main. Merge once the queued checks are green.

Impact level: 2/10

**@⁠Deedlyy** on GitHub · 2026-11-24 20:10 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1173#issuecomment-7143144309) **Recommendation:** [MERGE] **Reasoning:** Both output guards in `ttpf_mips` call `report_paths.same_report_path` instead of a private copy. Net -8 lines, part of the #1162 series. CI (label, change-scope, no-game-data and the Runtime jobs) is still queued awaiting maintainer workflow approval, so nothing has run in CI yet; GitHub reports no merge conflict with `main`. Merge once the queued checks are green. **Impact level:** 2/10
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1173/head:github-bot/gh-1173'
git switch 'github-bot/gh-1173'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1173'
git switch 'github-bot/gh-1173'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1173'
git switch 'github-bot/gh-1173'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1173'
git switch 'main'
git merge --squash 'github-bot/gh-1173'
git switch 'main'
git merge --ff-only 'github-bot/gh-1173'
git switch 'main'
git merge 'github-bot/gh-1173'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.