bvh_groups: use shared same_report_path and catch --json write OSError (DRAFT-274) #931

Merged
leonida/mandy
fin-github merged 1 commit from draft/274 into main 2026-11-28 07:45:48 +00:00

Pull request successfully merged and closed

fin-github commented 2026-11-24 15:17:12 +00:00

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 and git cherry-pick -x recording 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: OK
  • python -I scripts/check_no_game_data.py on 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.

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 and `git cherry-pick -x` recording 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`: OK - `python -I scripts/check_no_game_data.py` on 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.
PierreEbele commented 2026-11-25 21:33:55 +00:00

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

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
MoonEyes commented 2026-11-28 07:45:43 +00:00

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!

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!
Sign in to join this conversation.
No description provided.