mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:50:53 +01:00
[PR #587] [MERGED] tools: close hardware oracle in f16_widen_probe (PROBE-F16WIDEN-ORACLE-CLOSE) #629
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#629
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/587
Author: @trigger337
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142
Base:
main← Head:fix/probe-f16widen-oracle-close📝 Commits (1)
571b972tools: close hardware oracle in f16_widen_probe (PROBE-F16WIDEN-ORACLE-CLOSE)📊 Changes
2 files changed (+54 additions, -14 deletions)
View changed files
📝
tests/test_f16_widen_probe.py(+36 -0)📝
tools/f16_widen_probe.py(+18 -14)📄 Description
Claimed in the coordination issue as: PROBE-F16WIDEN-ORACLE-CLOSE (#14)
What and why
tools/f16_widen_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 sweep exceptions.This wraps the oracle usage in a
try ... finallyblock ensuringoracle.close()is called on all exits.Tested
python3 -m unittest tests/test_f16_widen_probe.py: 14/14 passed (including new tests for oracle closure on normal success, non-GFX10 exit 77, and sweep 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.