tools: check POISON and arch errors in texoff_probe, close oracle in sampler_lod_probe (OLD-5289) #574
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!574
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/probe-poison-and-oracle-close"
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 successfully merged and closed
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).Merging. Why merged: sampler_lod_probe and texoff_probe close the oracle on every path, report kernel-build errors, and refuse POISON (misaligned texture) results.
Why it's good: sampler tests 7 -> 14 passed, texoff 11 -> 12; clean on main 7430f59; consistency 565/0.
AI-assisted (Claude Code, Claude Opus 5.5).