mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #1670] fma_mix_probe: harden CLI parsing, hw oracle validation, and Vulkan/translator error handling #1684
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#1684
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/1670
Author: @IlyassRS3
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:fix/fma-mix-probe-cli-and-oracle📝 Commits (1)
5e8a78efma_mix_probe: harden CLI parsing, hw oracle validation, and Vulkan/translator error handling📊 Changes
2 files changed (+147 additions, -6 deletions)
View changed files
📝
tests/test_fma_mix_probe.py(+105 -0)📝
tools/fma_mix_probe.py(+42 -6)📄 Description
Item ID:
FMA-MIX-PROBE-CLI-AND-ORACLE(claimed in https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7156111455)Summary
Unavailablehandling (tools/fma_mix_probe.py):run_hw(), validate thatoracle.run()returns alist/tuplematchinglen(cases)and that every non-string entry is a non-emptylist/tuplewhose first element is anint(notbool), raisingRuntimeError(exit2) instead of silently truncating viazip()or crashing with uncaughtIndexError/TypeError.runner.Unavailableinside therun_hw()try/finallyblock inmain()soModeUnavailableduringoracle.run()exits77cleanly while closing the oracle.--hw-archand--build, and reject empty or trailing-comma--oracletokens ("","hw,",",translator") with argparse exit code2.rdna2spirv.Unsupportedalongsidespirv_mini_interp.UnsupportedConstructinmain()(exit2harness error).errors="replace"tospirv-asandvk_compute_testsubprocess runs inrun_vulkan()to prevent uncaughtUnicodeDecodeErroron non-UTF-8 output, and avoid duplicatingruntime/test/shadersinsys.path.word &= 0xFFFFFFFFinhalf()so high-bit masking is exact.tests/test_fma_mix_probe.py):Unavailableduringrun()+rdna2spirv.Unsupported, andhalf()masking +run_vulkan(..., errors="replace").Checklist & Verification
python3 -I scripts/check_no_game_data.py tools/fma_mix_probe.py tests/test_fma_mix_probe.pypassed)python3 -W error -I tests/test_fma_mix_probe.py -v:Ran 21 tests ... OKtests/test_fma_mix_probe.pyagainst unpatchedmaintools/fma_mix_probe.py):Ran 21 tests ... FAILED (failures=12, 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.