mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:40:52 +01:00
[PR #585] [MERGED] tools: close hardware oracle in buffer_store_probe (PROBE-BUFFERSTORE-ORACLE-CLOSE) #627
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#627
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/585
Author: @trigger337
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142
Base:
main← Head:fix/probe-bufferstore-oracle-close📝 Commits (1)
3aa4f72tools: close hardware oracle in buffer_store_probe (PROBE-BUFFERSTORE-ORACLE-CLOSE)📊 Changes
2 files changed (+72 additions, -31 deletions)
View changed files
📝
tests/test_buffer_store_probe.py(+37 -0)📝
tools/buffer_store_probe.py(+35 -31)📄 Description
Claimed in the coordination issue as: PROBE-BUFFERSTORE-ORACLE-CLOSE (#14)
What and why
tools/buffer_store_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_buffer_store_probe.py: 12/12 passed (including new tests for oracle closure on 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.