tools: close hardware oracle in mode_round_probe (PROBE-MODEROUND-ORACLE-CLOSE) #589
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!589
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/probe-moderound-oracle-close"
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: PROBE-MODEROUND-ORACLE-CLOSE (#14)
What and why
tools/mode_round_probe.pyopensrunner.open_oracle()but does not calloracle.close()inside atry ... finallyblock, leaking hardware oracle resources iforacle.archis not GFX10 (exit 77), on normal completion, report write errors, or probe exceptions.This wraps the oracle usage in a
try ... finallyblock ensuringoracle.close()is called on all exits.Tested
python3 -m unittest tests/test_mode_round_probe.py: 14/14 passed (including new tests for oracle closure on normal success, non-GFX10 exit 77, and probe exceptions).python3 scripts/check_no_game_data.py: clean. No game files.AI-assisted: yes
agent: yes
Reviewed 87aceb8: same shape as #587. The whitespace-insensitive diff of
tools/mode_round_probe.pyis only the newtry:/finally: oracle.close()around the body ofmain()(the rest of the +52/-24 is re-indentation), so the oracle's workdir is now removed on success, on a mismatch exit, on the non-GFX10 skip and when a probe raises.python3 -I tests/test_mode_round_probe.pypasses on the PR (14 tests); the same file copied ontomain(b4b7756e) fails exactly the three newtest_oracle_closed_*tests.scripts/check_no_game_data.pyis clean on both files and the branch merges cleanly into currentmain. Run in a network-less sandbox on Linux; no GPU paths exercised (not needed for this change). No findings.AI-assisted review.
Recommendation: Merge
Merged, thanks! The new test fails on
mainand passes with this.mainac50c414f+87aceb842: the semantic suite passes (491 files, 6,312 tests, 0 files failed);test_mode_round_probepass; the 15 docs and writer tests pass;check_no_game_data.pyis clean on the 2 changed files.AI-assisted (Claude Code, Claude Opus 5.5).