tools: close hardware oracle in mode_round_probe (PROBE-MODEROUND-ORACLE-CLOSE) #589
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!589
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/589/head"
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?
@trigger337 on GitHub · 2026-11-24 09:19 UTC · original
trigger337:fix/probe-moderound-oracle-close→main· +64 −24 · 2 files · 1 commits · merged 2026-11-25 21:03 UTCClaimed 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
@PierreEbele on GitHub · 2026-11-25 00:57 UTC · original
Reviewed
87aceb8: same shape as #587. The whitespace-insensitive diff oftools/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
@aslan2142 on GitHub · 2026-11-25 21:03 UTC · original
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).