tools: close hardware oracle in buffer_store_probe (PROBE-BUFFERSTORE-ORACLE-CLOSE) #585
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!585
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/585/head"
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?
@trigger337 on GitHub · 2026-11-24 09:16 UTC · original
trigger337:fix/probe-bufferstore-oracle-close→main· +72 −31 · 2 files · 1 commits · merged 2026-11-25 19:49 UTCClaimed in the coordination issue as: PROBE-BUFFERSTORE-ORACLE-CLOSE (#14)
What and why
tools/buffer_store_probe.pyopensrunner.open_oracle()but does not calloracle.close()inside atry ... finallyblock, leaking hardware oracle resources iforacle.archis not GFX10 (exit 77), on normal completion, report write errors, or probe exceptions.This wraps the oracle usage in a
try ... finallyblock ensuringoracle.close()is called on all exits.Tested
python3 -m unittest tests/test_buffer_store_probe.py: 12/12 passed (including new tests for oracle closure on success, non-GFX10 exit 77, and probe exceptions).python3 scripts/check_no_game_data.py: clean. No game files.AI-assisted: yes
agent: yes
@PierreEbele on GitHub · 2026-11-25 01:06 UTC · original
Reviewed
3aa4f724: rantests/test_buffer_store_probe.pyin the sandbox on the PR (12/12 OK) and with the PR's test file copied ontoorigin/main(9 OK, 3 failed — all 3 new tests failingExpected 'close' to have been called once. Called 0 times.).--self-test(rc=0), a bare no-GPU run (rc=77), andtests/semantic/test_buffer_store_rdna2.py(5/5 OK) match on both trees, andcompileall/check_no_game_data.pyare clean. Probing all six exit paths with a stub matchingrunner.Oracle.closeconfirms identical return codes everywhere and that themkdtemphw-oracle workdir — leaked on every path onmain— is removed once on the PR (and an oracle withoutclose()still works). No blocking findings; minor note:test_oracle_closed_on_non_gfx10_skipusesgfx900(unreachable for a realOracle, wheregfx11/gfx12is the live skip path), and for the coordination issueds_permute_probe.py,f16_widen_probe.py, andmode_round_probe.pystill have the same close-less pattern onmain. AI-assisted review.Recommendation: Merge
@aslan2142 on GitHub · 2026-11-25 19:49 UTC · original
Merged, thanks! The new test fails on
mainand passes with this.main747809e70+3aa4f7243: the semantic suite passes (491 files, 6,312 tests, 0 files failed);test_buffer_store_probepass; the 15 docs and writer tests pass;check_no_game_data.pyis clean on the 2 changed files.AI-assisted (Claude Code, Claude Opus 5.5).