[PR #585] [MERGED] tools: close hardware oracle in buffer_store_probe (PROBE-BUFFERSTORE-ORACLE-CLOSE) #627

Closed
opened 2026-11-26 20:18:30 +01:00 by 4ld0 · 0 comments
Owner

📋 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)

  • 3aa4f72 tools: 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.py opens runner.open_oracle() but does not call oracle.close() inside a try ... finally block, leaking hardware oracle resources if oracle.arch is not GFX10 (exit 77), on normal completion, report write errors, or probe exceptions.

This wraps the oracle usage in a try ... finally block ensuring oracle.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.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/585 **Author:** [@trigger337](https://github.com/trigger337) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/25/2026 **Merged by:** [@aslan2142](https://github.com/aslan2142) **Base:** `main` ← **Head:** `fix/probe-bufferstore-oracle-close` --- ### 📝 Commits (1) - [`3aa4f72`](https://github.com/ubiquitarianism/leonida/commit/3aa4f7243a7f90d889cd1273a5e6fbe60f946266) tools: close hardware oracle in buffer_store_probe (PROBE-BUFFERSTORE-ORACLE-CLOSE) ### 📊 Changes **2 files changed** (+72 additions, -31 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_buffer_store_probe.py` (+37 -0) 📝 `tools/buffer_store_probe.py` (+35 -31) </details> ### 📄 Description Claimed in the coordination issue as: PROBE-BUFFERSTORE-ORACLE-CLOSE (#14) ### What and why `tools/buffer_store_probe.py` opens `runner.open_oracle()` but does not call `oracle.close()` inside a `try ... finally` block, leaking hardware oracle resources if `oracle.arch` is not GFX10 (exit 77), on normal completion, report write errors, or probe exceptions. This wraps the oracle usage in a `try ... finally` block ensuring `oracle.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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:18:30 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#627
No description provided.