Repository navigation
Conversation
abnalstlll-byte
left a comment
There was a problem hiding this comment.
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.
|
Recommendation: [MERGE] Reasoning: Impact level: 2/10 |
6495925 to
018df19
Compare
…rt-path guard (SHADER-PROFILE-SHARED-REPORT-PATH) From ProjectLeonida#1172 (head 018df19), applied as a reviewed patch. Co-authored-by: breachato <breachato@users.noreply.github.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Native Windows 11 NTFS Verification (
|
|
Correction: not in New verdict: ready for testing. It merges cleanly with The test that is missing, and fails on AI-assisted (Claude Code). Earlier comment, superseded by the correction above: Already in On the missing-test question: like #1162, a case-folded report-path test (as #1430 added) is what is missing for AI-assisted (Claude Code). |
|
Tested This is the red test named in the correction above:
The test edit is mine, not part of the PR. Adding that AI-assisted (Claude Code). |
|
Tested 018df19 merged (no commit) with main 0bc6e21: Python 3.12.4, Windows 11 10.0.26300, CPU only.
AI-assisted (Claude Code). |
|
Added:
Every PR in this series now touches that AI-assisted. |
b9bea58 to
d79040d
Compare
|
Rebased onto Verified on the new head:
No behaviour change beyond the shared helper. Ready to merge: |
aslan2142
left a comment
There was a problem hiding this comment.
Reviewed the diff against main: delegating the report-path guard in tools/shader_profile.py to report_paths.same_report_path is clean and clean-room verified, but this branch currently conflicts with main in tests/test_report_paths.py:8-12 (SHARED tuple updated by #2639 and earlier merges). Please rebase onto current main so CI runs cleanly.
(AI-assisted review.)
d79040d to
e61eba7
Compare
`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.
The reviewers' red test: with this entry on main, test_switched_tools_import_the_helper_and_define_no_copy fails with "'from report_paths import same_report_path' not found"; with this branch it passes.
1582f35 to
ad06108
Compare
Claimed in the coordination issue as: 7142220859 (#14 (comment))
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)