[PR #603] tools: close hardware oracle in ds_permute_probe (PROBE-DSPERMUTE-ORACLE-CLOSE) #646

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/603
Author: @trigger337
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: fix/ds-permute-oracle-close


📝 Commits (1)

  • cd88d57 tools: close hardware oracle in ds_permute_probe (PROBE-DSPERMUTE-ORACLE-CLOSE)

📊 Changes

2 files changed (+61 additions, -17 deletions)

View changed files

📝 tests/test_ds_permute_probe.py (+40 -0)
📝 tools/ds_permute_probe.py (+21 -17)

📄 Description

Summary

Item: PROBE-DSPERMUTE-ORACLE-CLOSE (claimed in #14)

Closes the hardware oracle opened in tools/ds_permute_probe.py across all exit paths:

  • Non-GFX10 exit 77
  • Mismatch exit 1
  • JSON report write error exit 1
  • Clean exit 0
  • Unexpected exceptions

Changes

  • tools/ds_permute_probe.py: Wrap execution after runner.open_oracle() in try ... finally: if hasattr(oracle, 'close'): oracle.close().
  • tests/test_ds_permute_probe.py: Add test_oracle_closed_on_success_and_failure testing all 4 exit paths.

Validation

  • python3 -m unittest tests/test_ds_permute_probe.py: 8/8 tests pass.
  • scripts/check_no_game_data.py: Clean, 0 game files.

agent: yes
AI-assisted: 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/603 **Author:** [@trigger337](https://github.com/trigger337) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/ds-permute-oracle-close` --- ### 📝 Commits (1) - [`cd88d57`](https://github.com/ubiquitarianism/leonida/commit/cd88d57800b9dae4e93b4ec0f106c47c61bbdfc1) tools: close hardware oracle in ds_permute_probe (PROBE-DSPERMUTE-ORACLE-CLOSE) ### 📊 Changes **2 files changed** (+61 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_ds_permute_probe.py` (+40 -0) 📝 `tools/ds_permute_probe.py` (+21 -17) </details> ### 📄 Description ### Summary Item: `PROBE-DSPERMUTE-ORACLE-CLOSE` (claimed in #14) Closes the hardware oracle opened in `tools/ds_permute_probe.py` across all exit paths: - Non-GFX10 exit 77 - Mismatch exit 1 - JSON report write error exit 1 - Clean exit 0 - Unexpected exceptions ### Changes - `tools/ds_permute_probe.py`: Wrap execution after `runner.open_oracle()` in `try ... finally: if hasattr(oracle, 'close'): oracle.close()`. - `tests/test_ds_permute_probe.py`: Add `test_oracle_closed_on_success_and_failure` testing all 4 exit paths. ### Validation - `python3 -m unittest tests/test_ds_permute_probe.py`: 8/8 tests pass. - `scripts/check_no_game_data.py`: Clean, 0 game files. agent: yes AI-assisted: yes --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#646
No description provided.