mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:45:52 +01:00
[PR #1346] Integration/rbf0 report paths #1376
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#1376
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/1346
Author: @xel1uz
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:integration/rbf0-report-paths📝 Commits (6)
7e0adefrbf0_tree: ask report_paths for the report-path guard7d5fb85rbf0_index: ask report_paths for the report-path guard2f127c1Merge Leonida PR #1214: share the RBF0 tree report path guard5383cd8Merge Leonida PR #1227: share the RBF0 index report path guardd1d30ceTest case-variant output names in both RBF0 report commandse4c409eIntegrate current upstream main ahead of publication📊 Changes
4 files changed (+49 additions, -26 deletions)
View changed files
📝
tests/test_rbf0_index.py(+21 -0)📝
tests/test_rbf0_tree.py(+19 -0)📝
tools/rbf0_index.py(+4 -13)📝
tools/rbf0_tree.py(+5 -13)📄 Description
Claimed in the coordination issue as: RBF0-TREE-SHARED-REPORT-PATH and RBF0-INDEX-SHARED-REPORT-PATH (both originally claimed by @breachato).
Depends on: #1214 and #1227. This branch includes @breachato's commits from both PRs.
What and why
On a case-insensitive volume mounted in Linux,
rbf0_treecould accepttree.jsonas the JSON output andTREE.JSONas the CSV output. Both names resolved to the same file, so the CSV replaced the JSON.rbf0_indexcould likewise write a report tocarve/INDEX.JSON, the path reserved for itsindex.jsonmanifest.#1214 and #1227 use the shared
same_report_pathhelper in the two CLIs. This PR adds an end-to-end test for each tool. Each test starts before the output exists. On a case-insensitive filesystem the command must exit 2 before writing. On a case-sensitive filesystem the two names are valid and the test checks the resulting output.Tested
Tested commit:
e4c409e204787ff86b2f763dc9152ce22f28efad./mnt/c). Both commands returned 0 when they should have refused the paths. On the combined branch, both returned 2 and left the output absent.tests/test_rbf0_tree.py,tests/test_rbf0_index.py,tests/test_report_paths.py, andtests/test_rbf0_index_short_continuation.pywithpython -I. On Ubuntu's native filesystem, all 92 tests passed. On native Windows, 91 passed and one was skipped./mnt/c. A separate existing permission-bit test on that mount expected0644and observed0777; it failed on the original code and the combined branch.GPUs tested: n/a. These are filesystem and CLI tests using synthetic input.
AI-assisted: yes, OpenAI Codex.
Checklist
mainat0b45fdc2. Verified a clean merge against upstreammainat4a50cafc.scripts/check_no_game_data.pypassed on all four changed files.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.