Repository navigation
crosslane_fuzz: a missing vk_compute_test is one line before anything runs - #1381
Conversation
… runs With the translator oracle and no vk_compute_test at --exe (nor in its RelWithDebInfo/Release folder), the fuzzer generated and translated its programs and then ended in a bare FileNotFoundError traceback from the first GPU run. It now stops right after parsing its arguments with one line naming the path and how to build it, exit 1, as lds_fuzz.py does. --oracle hw alone and --self-test don't need it. The HarnessErrors tests and test_mc_command's missing-llvm-mc case run main() with the GPU replaced; they now pass an --exe that exists. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested c067ae3 on Windows 11, CPython 3.12.13 (no GPU): pass.
Negative control with only Scope: no |
|
Tested on Linux (WSL2 Ubuntu), Python 3.12, CPU only: pass. Tests with |
Claimed in the coordination issue as: new FUZZ item, claim.
What and why
With the translator oracle (the default) and no
vk_compute_testat--exe(defaultruntime/build/vk_compute_test, nor in itsRelWithDebInfo/Releasefolder),crosslane_fuzz.pygenerated and translated its programs and then ended in a bareFileNotFoundError: [WinError 2]traceback fromsubprocess.runinrun_gpu(). Onmainc0ac5fd (Windows 11, RTX 2080 Ti, a Ninja build outsideruntime/build),--seed 1122 --programs 300 --wave both --dppran 28 s before the traceback.main()now checks--exeright after the--oraclecheck and, when the translator oracle is selected, stops with one line and exit 1, aslds_fuzz.py:555does:--oracle hwalone and--self-testdon't need it and are unchanged. The exit-code paragraph of the docstring says so.Two existing tests ran
main()with the GPU replaced and relied on the default--exepath being absent but never checked:HarnessErrors._mainand thecrosslane_fuzz.pycase oftest_mc_command.py's missing-llvm-mctest. They now pass an--exethat exists (an empty file, never started), like the--buildfolder the other fuzzers get there.Different from the timeout item (@Urban225) and the missing-
llvm-mcitem (#1249).Tested
Windows 11, Python 3.12.10, CPU only for the tests (no game files).
tests/test_crosslane_fuzz.py: 32 tests, OK (1 skipped: the hardware oracle). NewMissingHarness:test_missing_exe_is_one_line_before_anything_runs: exit 1, no traceback, the message names the path, nothing on stdout. Withmain'scrosslane_fuzz.pyit fails (the run gets as far as llvm-mc).test_hardware_oracle_alone_does_not_need_it(exit 77 as before) andtest_self_test_does_not_need_it.tests/test_mc_command.py: 16 tests, OK.python -I tests/test_*.py),python -m unittest discover -s tests/semanticandpython -m compileall -q tools testspass.--seed 5 --programs 6 --wave both --exe <build>/vk_compute_test.exegives the same summary on this branch as onmain(its two wave32 mismatches are mask-as-data programs, Translator: a lane mask read as data gives the wave's bits (SHADER-21 part 1, #210) #293; with--no-maskdataseeds 5-7 have none).AI-assisted (Claude Code).
Checklist
docs/design.md, with how it was confirmed. (N/A: no translator change.)🤖 Generated with Claude Code