shader_profile: ask report_paths for the report-path guard (SHADER-PROFILE-SHARED-REPORT-PATH) #1172

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

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

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

Depends on: none

Fixes: none

What and why

tools/shader_profile.py derived report-path equality itself in same_output_path (:291, called at
:314 and :331), 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) two reports
that differ only in case passed as two paths 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_shader_profile.py:616 calls it by name.

Tested

  • tests/test_shader_profile.py: 41 passed, 99 subtests passed (it calls P.same_output_path
    directly, which is why the name stays).
  • python -I tools/shader_profile.py --help: prints its usage.
  • python -m compileall -q tools/shader_profile.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/1172) `breachato:rpt-shader-profile` → `main` · +7 −7 · 1 files · 1 commits · open Claimed in the coordination issue as: 7142220859 (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) Depends on: none Fixes: none ### What and why `tools/shader_profile.py` derived report-path equality itself in `same_output_path` (`:291`, called at `:314` and `:331`), 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) two reports that differ only in case passed as two paths 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_shader_profile.py:616` calls it by name. ### Tested - `tests/test_shader_profile.py`: **41 passed**, 99 subtests passed (it calls `P.same_output_path` directly, which is why the name stays). - `python -I tools/shader_profile.py --help`: prints its usage. - `python -m compileall -q tools/shader_profile.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)
`same_output_path` was a second derivation of `report_paths.same_report_path`, which CONTRIBUTING.md asks a report writer to call, and it missed the helper's folding-volume probe (vfat/exFAT/CIFS). The name stays as a one-line delegation because `tests/test_shader_profile.py` calls it by name.

🤖 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:18 +00:00
Author
Owner

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

Reviewed and verified. Standardizes output path collision protection in tools/shader_profile.py 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/1172#pullrequestreview-6046024702) · **approved these changes** Reviewed and verified. Standardizes output path collision protection in `tools/shader_profile.py` 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: shader_profile replaces its private same_output_path with report_paths.same_report_path at both call sites. Small refactor in the #1162 series, same rationale and risk profile. 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/1172#issuecomment-7143146961) **Recommendation:** [MERGE] **Reasoning:** `shader_profile` replaces its private `same_output_path` with `report_paths.same_report_path` at both call sites. Small refactor in the #1162 series, same rationale and risk profile. 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/1172/head:github-bot/gh-1172'
git switch 'github-bot/gh-1172'

Merge

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