Repository navigation
Conversation
abnalstlll-byte
left a comment
There was a problem hiding this comment.
Reviewed and verified. Replaces custom same_output_path implementation in tools/vertex_types.py with canonical tools/report_paths.py:same_report_path, protecting against accidental file self-truncation across case-folding filesystems and links. 100% clean-room.
|
Recommendation: [MERGE] Reasoning: Impact level: 2/10 |
e71ea4c to
89af928
Compare
…-path guard (VERTEX-TYPES-SHARED-REPORT-PATH) From ProjectLeonida#1170 (head 89af928), 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). |
|
Re-checked 89af928 merged (no commit) with main 0bc6e21: Python 3.12.4, Windows 11 10.0.26300, CPU only. Same result as the note above.
AI-assisted (Claude Code). |
89af928 to
fe97a61
Compare
|
Fixed in The import is now two lines: from report_paths import path_key # noqa: E402
from report_paths import same_report_path # noqa: E402Verified again with your test edit (adding
Thanks for re-checking the tree instead of the history. |
|
Added:
Every PR in this series now touches that AI-assisted. |
8db1e03 to
b04f6f3
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/vertex_types.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.)
b04f6f3 to
034d4c2
Compare
The tool carried its own `same_output_path` (realpath, normcase, samefile) while it already imported `report_paths.path_key`, so it answered the report-path question two ways; CONTRIBUTING.md asks a report writer to ask `same_report_path` instead of deriving it again. The private copy also missed the helper's folding-volume probe, so on a Linux mount that ignores case (vfat/exFAT/CIFS) `--json R.json` and `--json r.json` were two paths and the second overwrote the first.
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.
71f82c8 to
4812d70
Compare
Claimed in the coordination issue as: 7142219882 (#14 (comment))
Depends on: none
Fixes: none
What and why
tools/vertex_types.pyalready importedreport_paths.path_keyfor its--jsonguard at:49, and thencarried a private
same_output_pathat:682that derived the same answer again (realpath, normcase,samefile). CONTRIBUTING.md asks a report writer to call
report_paths.same_report_pathrather than deriveit again, and the private copy also left out that helper's folding-volume probe: on a Linux mount that
ignores case (vfat, exFAT, CIFS)
--json R.jsonand--json r.jsonwere two report paths and the secondoverwrote the first. The one guard site now calls
same_report_path; no test calls the private name, so itgoes with the duplication.
Tested
tests/test_vertex_types.py: 44 passed, 1 skipped, 8 subtests passed.tests/test_vertex_types_wide_group.py: 1 passed.python -I tools/vertex_types.py --help: prints its usage (the import works under-I).python -m compileall -q tools/vertex_types.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)