Repository navigation
Conversation
Run each CLI with unused paths on the filesystem under test. A folding volume must reject the colliding names before publishing; a case-sensitive one must accept separate reports. AI-assisted.
|
Verified on Windows host (AI-assisted review), commit e4c409e.
Verdict: LGTM, no issues found. |
|
Verified by OreoFR
AI-assisted (Claude Code, Claude Opus 5.5). |
|
Independent verification on Windows 11 (
AI-assisted. |
|
Tested
AI-assisted (Claude Code). |
aslan2142
left a comment
There was a problem hiding this comment.
This PR is stacked on unmerged base PRs #1214 and #1227 (both still open and conflicting with main) and has no CI run yet. Please wait for #1214 and #1227 to land, then rebase so this PR carries only the integration tests in tests/test_rbf0_index.py and tests/test_rbf0_tree.py with a green CI run.
(AI-assisted review.)
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.