mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:05:53 +01:00
[PR #1687] vcmp16_opsel_probe: validate oracle batch/word types and handle run errors #1702
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#1702
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/1687
Author: @IlyassRS3
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:fix/vcmp16-opsel-probe-oracle-validation📝 Commits (1)
36f0b75vcmp16_opsel_probe: validate oracle batch/word types and handle run errors📊 Changes
2 files changed (+61 additions, -3 deletions)
View changed files
📝
tests/test_vcmp16_opsel_probe.py(+44 -0)📝
tools/vcmp16_opsel_probe.py(+17 -3)📄 Description
Item ID:
VCMP16-OPSEL-PROBE-ORACLE-VALIDATION(claimed in https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7156727807)Summary
tools/vcmp16_opsel_probe.py):oracle.run(...)to return alist/tupleof exact length1(preventing non-sequenceTypeError, string indexing, or silent extra-result drops).booland non-intword elements inside the kernel word list with"harness error:"and exit2(masking valid ints to 32 bits).runner.Unavailable(exit77) andRuntimeError(exit2) raised duringoracle.run()insidetry ... finally: oracle.close().tests/test_vcmp16_opsel_probe.py):bool/Noneword elements,runner.Unavailableduringrun()-> exit77, andRuntimeErrorduringrun()-> exit2, verifyingoracle.close()on every path.Checklist & Verification
python3 -I scripts/check_no_game_data.py tools/vcmp16_opsel_probe.py tests/test_vcmp16_opsel_probe.pypassed)python3 -W error -I tests/test_vcmp16_opsel_probe.py -v:Ran 16 tests ... OKtests/test_vcmp16_opsel_probe.pyagainst unpatchedmaintools/vcmp16_opsel_probe.py):Ran 16 tests ... FAILED (failures=3, errors=3)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.