Repository navigation
Conversation
|
Reviewed 8bde265: verified in the arm64 Linux sandbox against Recommendation: Merge |
…th guard (RTTI-SCAN-SHARED-REPORT-PATH) From ProjectLeonida#1229 (head 8bde265), 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 (
|
|
Tested
AI-assisted (Claude Code). |
|
Added:
Every PR in this series now touches that AI-assisted. |
b6ceede to
f0e5919
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/rtti_scan.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.)
f0e5919 to
6068950
Compare
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.
6068950 to
5f57870
Compare
Claimed in the coordination issue as: RTTI-SCAN-SHARED-REPORT-PATH (#14 (comment))
Depends on: none
Fixes: none
What and why
tools/rtti_scan.pyderived the report-path answer inline inmain(:518-524): realpath + normcase comparedby hand, then
os.path.samefileinside a bareexcept OSError: pass, to refuse an--outthat would overwritethe image being scanned. That is the answer
tools/report_paths.same_report_pathexists to give, andCONTRIBUTING.md asks a report writer to call it rather than derive it again.
The inline copy also missed that helper's folding-volume probe, so on a Linux mount that ignores case (vfat,
exFAT, CIFS)
--out IMAGE.rtti.jsonbeside an existingimage.rtti.jsonwas not refused and the report replacedthe previous one.
The five lines become one call. The tool already puts its own folder on
sys.pathforfile_mode, so the importis one line, and nothing else references the inline name. Different topic from RTTI-SCAN-STAGE-CLEANUP (#798,
staged-file permissions). No behaviour change on Windows, macOS or a case-sensitive Linux filesystem.
Tested
tests/test_rtti_scan.py: 29 passed, 1 skipped, 47 subtests passed.python -I tools/rtti_scan.py --help: prints its usage (the import works under-I).python -m compileall -q tools/rtti_scan.py: clean.machine is NTFS, where
normcasealready folds case.tests/test_report_paths.pycovers the helper's ownfolding-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)