mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:10:53 +01:00
[PR #589] [MERGED] tools: close hardware oracle in mode_round_probe (PROBE-MODEROUND-ORACLE-CLOSE) #630
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#630
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/589
Author: @trigger337
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142
Base:
main← Head:fix/probe-moderound-oracle-close📝 Commits (1)
87aceb8tools: close hardware oracle in mode_round_probe (PROBE-MODEROUND-ORACLE-CLOSE)📊 Changes
2 files changed (+64 additions, -24 deletions)
View changed files
📝
tests/test_mode_round_probe.py(+36 -0)📝
tools/mode_round_probe.py(+28 -24)📄 Description
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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.