[PR #589] [MERGED] tools: close hardware oracle in mode_round_probe (PROBE-MODEROUND-ORACLE-CLOSE) #630

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

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

  • 87aceb8 tools: 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.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_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.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/589 **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-moderound-oracle-close` --- ### 📝 Commits (1) - [`87aceb8`](https://github.com/ubiquitarianism/leonida/commit/87aceb8422fb4fb88bbd7fa0b52c57bb93ea9f37) tools: close hardware oracle in mode_round_probe (PROBE-MODEROUND-ORACLE-CLOSE) ### 📊 Changes **2 files changed** (+64 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_mode_round_probe.py` (+36 -0) 📝 `tools/mode_round_probe.py` (+28 -24) </details> ### 📄 Description Claimed in the coordination issue as: PROBE-MODEROUND-ORACLE-CLOSE (#14) ### What and why `tools/mode_round_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_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 --- <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:31 +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#630
No description provided.