mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:30:53 +01:00
[PR #574] [MERGED] tools: check POISON and arch errors in texoff_probe, close oracle in sampler_lod_probe (OLD-5289) #618
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#618
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/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)
c2547f4tools: 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/LeonidaPR #5289 and rebased cleanly ontoubiquitarianism/leonidamain(c2547f450).tools/texoff_probe.py: check forPOISONand unsupported-architecture oracle errors, returning exit code 2 cleanly and closing the oracle handle on error paths (except:/finally:).tools/sampler_lod_probe.py: ensure the hardware oracle is always closed across normal, mismatch, poison, bad-calibration, kernel-rejection, and unsupported-arch paths.tests/test_texoff_probe.pyandtests/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, OKpython -I tests/test_sampler_lod_probe.py -v-> Ran 14 tests in 1.384s, OKpython -m compileall -q tools/texoff_probe.py tools/sampler_lod_probe.py tests/test_texoff_probe.py tests/test_sampler_lod_probe.py-> exit 0python -I scripts/check_no_game_data.py-> exit 0git diff --check upstream/main..HEAD-> exit 0GPUs tested: n/a (mocked oracle lifecycle and stdlib probe tests; no hardware RDNA2 GPU required)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.