Repository navigation
Conversation
|
Reviewed 376346e: swapped Recommendation: Merge |
… guard (ODRP-7A-SHARED-REPORT-PATH) From ProjectLeonida#1215 (head 376346e), 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. |
8311768 to
eb72419
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/odrp_7a.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.)
eb72419 to
78eddaa
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.
d572224 to
93736c4
Compare
Claimed in the coordination issue as: ODRP-7A-SHARED-REPORT-PATH (#14 (comment))
Depends on: none
Fixes: none
What and why
tools/odrp_7a.pyderived report-path equality itself in_same_path(:1182, realpath + normcase + samefile)and asked it at its three output guards: the source against
out(:1221), the carve folder's manifest(
:1228) and each carved stream (:1233). That is the answertools/report_paths.same_report_pathexists togive, and CONTRIBUTING.md asks a report writer to call it rather than derive it again.
The private copy also 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 report paths and the second replaced the first,including when the first was the archive being scanned.
The duplicated logic goes (4 insertions, 12 deletions). The tool already puts its own folder on
sys.pathforfile_mode, so the import is one line; no test calls_same_path, so the name goes with the duplication.No behaviour change on Windows, macOS or a case-sensitive Linux filesystem.
Tested
tests/test_odrp_7a.py: 16 passed, 6 subtests passed.python -I tools/odrp_7a.py --help: prints its usage (the import works under-I).python -m compileall -q tools/odrp_7a.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)