Repository navigation
restofworld_model_join: ask report_paths for the report-path guard (RESTOFWORLD-MODEL-JOIN-SHARED-REPORT-PATH) - #1244
Conversation
|
Reviewed 9638d91: restofworld_model_join's overwrite guard now calls Recommendation: Merge |
…the report-path guard (RESTOFWORLD-MODEL-JOIN-SHARED-REPORT-PATH) From ProjectLeonida#1244 (head 9638d91), applied as a reviewed patch. Co-authored-by: breachato <breachato@users.noreply.github.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Thanks for the review and for the
So I would rather do it as a single follow-up pull request once the series is in: add If you would rather have it split per tool anyway, say so and I will do that instead. AI-assisted. |
|
#1244 | head 9638d91 (merged cleanly with main c7753ed) | live NTFS Audited |
|
Tested 9638d91 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. |
81d6c7b to
42606d7
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/restofworld_model_join.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.)
42606d7 to
9bd01f3
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.
9bd01f3 to
a129dfd
Compare
Claimed in the coordination issue as: RESTOFWORLD-MODEL-JOIN-SHARED-REPORT-PATH (#14 (comment))
Depends on: none
Fixes: none
What and why
tools/restofworld_model_join.pyderived the report-path answer itself inside_aliases_input(:1236-1257):realpath + normcase compared by hand twice (the source, then the carve folder's
index.json) andos.path.samefiletwice, to refuse an--outthat would overwrite the archive, the folder manifest or a carvedstream. CONTRIBUTING.md asks a report writer to call
report_paths.same_report_pathinstead of deriving it again,and the private copy missed that helper's folding-volume probe: on a Linux mount that ignores case (vfat, exFAT,
CIFS)
--out INDEX.jsonbeside an existingindex.jsonwas not refused and replaced the manifest.The equalities now go through
same_report_path; the last branch of_aliases_inputis untouched because it is acontainment rule, not an equality (an output inside the carve folder with a
.bin/.bk2name), andtests/test_carve_short_system_pages.pyasserts it. The tool had notools/entry onsys.path, so one is addedfor the import, as
tex_headersdoes. Different topic from OLD-7750 (#886, page-map slots andindex.jsonload).No behaviour change on Windows, macOS or a case-sensitive Linux filesystem.
Tested
tests/test_restofworld_model_join.py,tests/test_carve_short_system_pages.pyandtests/test_report_path_case.py: 23 passed, 1 skipped, 44 subtests passed.python -I tools/restofworld_model_join.py --help: prints its usage (the import works under-I).python -m compileall -q tools/restofworld_model_join.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)