mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:30:53 +01:00
[PR #1214] rbf0_tree: ask report_paths for the report-path guard (RBF0-TREE-SHARED-REPORT-PATH) #1245
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1245
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1214
Author: @breachato
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:rbf0-tree-shared-report-path📝 Commits (1)
7e0adefrbf0_tree: ask report_paths for the report-path guard📊 Changes
1 file changed (+5 additions, -13 deletions)
View changed files
📝
tools/rbf0_tree.py(+5 -13)📄 Description
Claimed in the coordination issue as: RBF0-TREE-SHARED-REPORT-PATH (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7143541315)
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)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.