Repository navigation
Conversation
|
Reviewed 7e0adef: ran tests/test_rbf0_tree.py in the sandbox on both trees (38 OK each) plus Recommendation: Merge |
…u-unaligned-output-ub HLE: write decoded Opus samples through unaligned output buffers
Native Windows 11 NTFS Verification (
|
|
Tested 7e0adef 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. |
4701b15 to
b854dfc
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_tree.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.)
b854dfc to
c6b53f1
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.
56fe8aa to
d572224
Compare
Claimed in the coordination issue as: RBF0-TREE-SHARED-REPORT-PATH (#14 (comment))
Depends on: none
Fixes: none
What and why
tools/rbf0_tree.pyderived report-path equality itself insame_output_path(:680, realpath + normcase +samefile) and asked it at its four output guards:
outagainst--csv(:702),outand--csvagainstthe source file (
:706),outand--csvagainst a stream in the carve folder (:717), and--xmlagainstthe source folder (
:719). That is the one answertools/report_paths.pyexists to give, and CONTRIBUTING.mdasks a report writer to call
same_report_path(a, b)rather than derive it again (~70 tools already import it;#1084 does the same for
anim_clips).The private copy was also missing something the shared helper has: its folding-volume probe
(
same_name_on_folding_volume). On a Linux mount that ignores case (vfat, exFAT, CIFS)normcasefoldsnothing and
pathconfanswers only on macOS, soout.jsonandout.JSONpassed as two report paths, and--csvcould replace the JSON report or a stream in the carve folder the decode was about to read.The duplicated logic goes (5 insertions, 13 deletions). The tool already puts its own folder on
sys.pathfor
rbf0_index, so the import is one line; no test callssame_output_path, so the name goes with theduplication. No behaviour change on Windows, macOS or a case-sensitive Linux filesystem.
Tested
tests/test_rbf0_tree.py: 37 passed, 1 skipped, 17 subtests passed.python -I tools/rbf0_tree.py --help: prints its usage (the import works under-I).python -m compileall -q tools/rbf0_tree.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)