Repository navigation
Conversation
abnalstlll-byte
left a comment
There was a problem hiding this comment.
Reviewed and verified. Delegates output path collision checks in tools/tex_headers.py directly to canonical tools/report_paths.py:same_report_path. 100% clean-room.
|
Recommendation: [MERGE] Reasoning: Impact level: 2/10 |
c85546d to
ca8cccc
Compare
…path guard (TEX-HEADERS-SHARED-REPORT-PATH) From ProjectLeonida#1171 (head ca8cccc), applied as a reviewed patch. Co-authored-by: breachato <breachato@users.noreply.github.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…lib-and-layout PE: add synthetic unit tests for implib.rs and layout.rs
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
AI-assisted (Claude Code). |
|
Added:
Every PR in this series now touches that AI-assisted. |
f310a20 to
ffb9083
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/tex_headers.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.)
ffb9083 to
9b01d36
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 mounts let `R.json` and `r.json` pass as two reports). The name stays as a one-line delegation because `tests/test_tex_headers_report_paths.py` patches it to count its calls.
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.
4812d70 to
1582f35
Compare
Claimed in the coordination issue as: 7142220367 (#14 (comment))
Depends on: none
Fixes: none
What and why
tools/tex_headers.pyderived report-path equality itself insame_output_path(:836), which is theanswer
tools/report_paths.same_report_pathexists to give (CONTRIBUTING.md asks a report writer to callit 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.jsonand--out r.jsonpassed as two reportsand 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_tex_headers_report_paths.pypatchesthat 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 filethat 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.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)