mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #1682] vinterp_hw_probe: harden CLI validation, run_hw batch/tuple handling, and harness error exits #1696
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#1696
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/1682
Author: @IlyassRS3
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:fix/vinterp-hw-probe-oracle-and-cli📝 Commits (1)
c80e31bvinterp_hw_probe: harden CLI validation, run_hw batch/tuple handling, and harness error exits📊 Changes
2 files changed (+125 additions, -8 deletions)
View changed files
📝
tests/test_vinterp_hw_probe.py(+91 -1)📝
tools/vinterp_hw_probe.py(+34 -7)📄 Description
Item ID:
VINTERP-HW-PROBE-ORACLE-AND-CLI(claimed in https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7156493260)Summary
tools/vinterp_hw_probe.py):run_hw(), validate thatoracle.run([k] * 4, words=5)returns alist/tupleof length4, accept bothlistandtupleper-kernel entries when selecting CU0 ((r[4] & 0x100) == 0) or falling back to a valid entry, verify at least 5 non-boolintwords per non-string entry (masking to 32 bits), and raiseRuntimeErrorwhen a batch is malformed or all 4 kernels are rejected as strings (instead of crashing withIndexError/TypeErroror misreporting rejections asMISMATCHexit1).--hw-archwith argparse exit code2.rdna2spirv.Unsupported,spirv_mini_interp.UnsupportedConstruct,RuntimeError, andOSErroraroundrun_translator_checks(), plusRuntimeErroraroundrun_hw(), returning exit2cleanly instead of unhandled tracebacks.tests/test_vinterp_hw_probe.py):--hw-arch, translator harness errors -> exit2, tuple CU0 selection over CU1, malformed & all-rejected hardware oracle batches, andRuntimeError/runner.Unavailableraised fromoracle.run(), verifyingoracle.close()on every path.Checklist & Verification
python3 -I scripts/check_no_game_data.py tools/vinterp_hw_probe.py tests/test_vinterp_hw_probe.pypassed)python3 -W error -I tests/test_vinterp_hw_probe.py -v:Ran 7 tests ... OKtests/test_vinterp_hw_probe.pyagainst unpatchedmaintools/vinterp_hw_probe.py):Ran 7 tests ... FAILED (failures=3, errors=1)python3 -m compileall -q make_game.py tools tests: passedpython3 -I tests/test_text_write_line_endings.py:Ran 3 tests ... OK🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.