[PR #574] [MERGED] tools: check POISON and arch errors in texoff_probe, close oracle in sampler_lod_probe (OLD-5289) #618

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/574
Author: @Taffyyy-ops
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @QemmHD

Base: main ← Head: feat/probe-poison-and-oracle-close


📝 Commits (1)

  • c2547f4 tools: handle POISON/arch errors in texoff_probe and close oracle in sampler_lod_probe

📊 Changes

4 files changed (+259 additions, -40 deletions)

View changed files

📝 tests/test_sampler_lod_probe.py (+157 -0)
📝 tests/test_texoff_probe.py (+50 -0)
📝 tools/sampler_lod_probe.py (+41 -38)
📝 tools/texoff_probe.py (+11 -2)

📄 Description

Claimed in the coordination issue as: OLD-5289 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7126487215)

What and why

Carried over from the closed upstream ItsNotRexed/Leonida PR #5289 and rebased cleanly onto ubiquitarianism/leonida main (c2547f450).

  • In tools/texoff_probe.py: check for POISON and unsupported-architecture oracle errors, returning exit code 2 cleanly and closing the oracle handle on error paths (except: / finally:).
  • In tools/sampler_lod_probe.py: ensure the hardware oracle is always closed across normal, mismatch, poison, bad-calibration, kernel-rejection, and unsupported-arch paths.
  • Add mock/lifecycle regression tests in tests/test_texoff_probe.py and tests/test_sampler_lod_probe.py.

Tested

On Windows 11 with Python 3.12+ after rebasing onto 1c93c8697:

  • python -I tests/test_texoff_probe.py -v -> Ran 12 tests in 0.275s, OK
  • python -I tests/test_sampler_lod_probe.py -v -> Ran 14 tests in 1.384s, OK
  • python -m compileall -q tools/texoff_probe.py tools/sampler_lod_probe.py tests/test_texoff_probe.py tests/test_sampler_lod_probe.py -> exit 0
  • python -I scripts/check_no_game_data.py -> exit 0
  • git diff --check upstream/main..HEAD -> exit 0

GPUs tested: n/a (mocked oracle lifecycle and stdlib probe tests; no hardware RDNA2 GPU required)

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.

🔄 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/574 **Author:** [@Taffyyy-ops](https://github.com/Taffyyy-ops) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@QemmHD](https://github.com/QemmHD) **Base:** `main` ← **Head:** `feat/probe-poison-and-oracle-close` --- ### 📝 Commits (1) - [`c2547f4`](https://github.com/ubiquitarianism/leonida/commit/c2547f4508e6e769d32cf4fce240fd89991515dc) tools: handle POISON/arch errors in texoff_probe and close oracle in sampler_lod_probe ### 📊 Changes **4 files changed** (+259 additions, -40 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_sampler_lod_probe.py` (+157 -0) 📝 `tests/test_texoff_probe.py` (+50 -0) 📝 `tools/sampler_lod_probe.py` (+41 -38) 📝 `tools/texoff_probe.py` (+11 -2) </details> ### 📄 Description Claimed in the coordination issue as: OLD-5289 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7126487215) ### What and why Carried over from the closed upstream `ItsNotRexed/Leonida` PR #5289 and rebased cleanly onto `ubiquitarianism/leonida` `main` (`c2547f450`). - In `tools/texoff_probe.py`: check for `POISON` and unsupported-architecture oracle errors, returning exit code 2 cleanly and closing the oracle handle on error paths (`except:` / `finally:`). - In `tools/sampler_lod_probe.py`: ensure the hardware oracle is always closed across normal, mismatch, poison, bad-calibration, kernel-rejection, and unsupported-arch paths. - Add mock/lifecycle regression tests in `tests/test_texoff_probe.py` and `tests/test_sampler_lod_probe.py`. ### Tested On Windows 11 with Python 3.12+ after rebasing onto `1c93c8697`: - `python -I tests/test_texoff_probe.py -v` -> Ran 12 tests in 0.275s, OK - `python -I tests/test_sampler_lod_probe.py -v` -> Ran 14 tests in 1.384s, OK - `python -m compileall -q tools/texoff_probe.py tools/sampler_lod_probe.py tests/test_texoff_probe.py tests/test_sampler_lod_probe.py` -> exit 0 - `python -I scripts/check_no_game_data.py` -> exit 0 - `git diff --check upstream/main..HEAD` -> exit 0 GPUs tested: n/a (mocked oracle lifecycle and stdlib probe tests; no hardware RDNA2 GPU required) AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. --- <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:29 +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#618
No description provided.