Repository navigation
Conversation
|
Reviewed 7d5fb85: cleanly replaces Recommendation: Merge |
Native Windows 11 NTFS Verification (
|
|
Tested 7d5fb85 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. |
58a187f to
797c364
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/rbf0_index.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.)
797c364 to
195f360
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.
93736c4 to
64b59a4
Compare
Claimed in the coordination issue as: RBF0-INDEX-SHARED-REPORT-PATH (#14 (comment))
Depends on: none
Fixes: none
What and why
tools/rbf0_index.pyderived report-path equality itself insame_output_path(:542, realpath + normcase +samefile) and asked it at its three output guards: the source against
out(:562), the carve folder'sindex.jsonagainstout(:577) and each carved stream againstout(:578). That is the answertools/report_paths.pyexists to give, and CONTRIBUTING.md asks a report writer to callsame_report_path(a, b)rather than derive it again (the same one-topic refactor as #1162 and #1214-#1216).
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 or a stream being scanned.
The duplicated logic goes. The tool already puts its own folder on
sys.pathforfile_mode, so the import isone line; no test calls
same_output_path, so the name goes with the duplication. The staging and permissionpath claimed by RBF0-INDEX-STAGE-CLEANUP (#791) is not touched. No behaviour change on Windows, macOS or a
case-sensitive Linux filesystem.
Tested
tests/test_rbf0_index.pyandtests/test_rbf0_index_short_continuation.py: 30 passed, 4 subtests passed.python -I tools/rbf0_index.py --help: prints its usage (the import works under-I).python -m compileall -q tools/rbf0_index.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)