bvh_groups: use shared same_report_path and catch --json write OSError (DRAFT-274) #931
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!931
Loading…
Reference in a new issue
No description provided.
Delete branch "draft/274"
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 successfully merged and closed
Claimed in the coordination issue as:
DRAFT-274(https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7135362620)Supersedes draft #274, carried over from the original repository. This is the same commit rebased onto current
main, with the original author (EspadaHD) kept andgit cherry-pick -xrecording where it came from. The change and its explanation are theirs; see #274 for the original description.Tested
python -I tests/test_bvh_groups.py: OKpython -I scripts/check_no_game_data.pyon the changed files: clean.Windows 11 (10.0.26200), Python 3.14.4. No game files, nothing online.
AI-assisted (Claude Code): rebasing, conflict resolution and test runs.
Reviewed 6349981: bvh_groups now uses the shared same_report_path guard and returns exit 2 with a one-line message when the JSON report cannot be written, plus two tests. I ran
tests/test_bvh_groups.py(16/16 pass on the PR; the two new tests error on main, so they test the fix) and a CLI probe with a hand-built archive: missing-directory and directory report targets change from exit 1 + traceback on main to exit 2 + clean message; the archive-alias refusal and the case-sensitive-volume behaviour are unchanged. compileall and check_no_game_data clean. No game data, no GPU/Windows needed. Only nit: the head docstring's exit-status line could mention the failed report write. AI-assisted review.Recommendation: Merge
Red/green: 3 failures on main, 16 passed with this PR.
Full suite with this PR merged together with seven others in one batch matches main (pytest, translator suite, ctest without the game) on Windows 11 with an RTX 4060, except xmem_write_watch, a test that depends on free host memory and has also failed on plain main.
AI-assisted (Claude Code, Claude Opus 5.5). Thank you!