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

Merged
fin-github merged 1 commit from upstream-pr/931 into main 2026-11-28 07:45:48 +00:00
fin-github commented 2026-11-24 15:17:12 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fin-github on 2026-11-24T15:17:12Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5474956146 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/931). Originally posted by [fin-github](https://github.com/fin-github) on 2026-11-24T15:17:12Z. --- 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 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by PierreEbele on 2026-11-25T21:33:55Z.


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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7175245145 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/931#issuecomment-7175245145). Originally posted by [PierreEbele](https://github.com/PierreEbele) on 2026-11-25T21:33:55Z. --- 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 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T07:45:43Z.


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!

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7236145824 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/931#issuecomment-7236145824). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T07:45:43Z. --- 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 reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!931
No description provided.