tools: close hardware oracle in buffer_store_probe (PROBE-BUFFERSTORE-ORACLE-CLOSE) #585
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/585"
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?
Imported from ubiquitarianism/leonida. Originally posted by trigger337 on 2026-11-24T09:16:40Z.
Claimed 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
Imported from ubiquitarianism/leonida. Originally posted by PierreEbele on 2026-11-25T01:06:12Z.
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
Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-25T19:49:45Z.
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).