mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:30:53 +01:00
[PR #1172] shader_profile: ask report_paths for the report-path guard (SHADER-PROFILE-SHARED-REPORT-PATH) #1206
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#1206
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/1172
Author: @breachato
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:rpt-shader-profile📝 Commits (1)
018df19shader_profile: ask report_paths for the report-path guard📊 Changes
1 file changed (+7 additions, -7 deletions)
View changed files
📝
tools/shader_profile.py(+7 -7)📄 Description
Claimed in the coordination issue as: 7142220859 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7142220859)
Depends on: none
Fixes: none
What and why
tools/shader_profile.pyderived report-path equality itself insame_output_path(:291, called at:314and:331), which is the answertools/report_paths.same_report_pathexists 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.pathand delegates;same_output_pathstays as a one-line wrapper becausetests/test_shader_profile.py:616calls it by name.Tested
tests/test_shader_profile.py: 41 passed, 99 subtests passed (it callsP.same_output_pathdirectly, 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.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.