Runtime tests: copy shader fixtures through shader_fixture_path #3363
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3363"
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 MoonEyes on 2026-12-03T16:27:27Z.
Claimed in the coordination issue as: runtime tests copying a compiled-in shader path (claim comment in #3312)
Depends on: #3359 (same pattern; the files are distinct,
git merge-treeshows no conflict)What and why
Eight tests copy their shader with a raw, throwing
std::filesystem::copy_file(LEONIDA_*_SPV, ...). From the extractedruntime-windowsartifact the baked-in path does not exist, so the exception is uncaught and the test aborts with 0xC0000409 (as in #2978). Each copy now goes throughtestfiles::copy_file(vktest::shader_fixture_path(MACRO), dest)and returns 1 with a readable message on failure.d3d12_typeless_families_testalready used a non-throwing copy but had no fallback; it gets one. When the compiled path exists, the behaviour is unchanged. No new helper,CMakeLists.txtuntouched.Tested
python -I scripts/check_no_game_data.py,test_docs_*(59) andcmake -S runtimeconfigure on Linux.return 1is directly inint main, signatures and includes, no raw copy left in the eight files,git merge-treeagainstmainand #3219 (the only other PR touchingd3d12_mesh_test.cpp) is clean; one line over 120 columns was wrapped.GPUs tested: n/a
AI-assisted: yes. Written with Claude Sonnet 5.5; independently reviewed read-only by Claude Opus 5.5.
Checklist
mainand merges cleanly.Generated by Claude Code
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T17:14:26Z.
Reviewed #3363 at
b374466and #3362 at0a7d457on09273248, with #3359, #3366, and #3368 included. The five heads merge cleanly and the fixture-path unit test passes with the combined helper.These were synthetic filesystem tests on Linux. The full Windows/Vulkan executables were not run. Review assisted by OpenAI Codex.
Imported from ubiquitarianism/leonida. Originally posted by Kal0s-design on 2026-12-03T17:14:44Z.
Ran natively on Windows 11, head
b37446609merged into currentmain(fba6f09ce, clean merge).No findings. MSVC build (CMake + Ninja, RelWithDebInfo) of all eight targets, no new warnings in them. None of the fixtures are in the checkout; glslangValidator compiles them into the build's
generated/. To mimic the artifact I hid that folder and ran each exe from a directory with a copy of it asgenerated/.main/ mergegenerated/in cwd,main/ mergemain/ merged3d12_bindless_churn_testd3d12_depth24_draw_testd3d12_geometry_testd3d12_mesh_testd3d12_state_sweep_testd3d12_typeless_families_testcannot copy) / 0d3d12_indirect_dispatch_count_testd3d12_stores_atomics_testThe last two already used
shader_fixture_pathonmain, so for them the only change is that a missing fixture now gives a readable exit 1 instead of the abort. In every missing case the merge printscannot copy ...naming the file. Themaincolumn was measured on717b90233; nothing underruntime/changed since.Not checked: a real downloaded CI artifact, CTest itself.
GPUs tested: one NVIDIA desktop card (native Vulkan), plus WARP where the tests compare with it.
AI-assisted: yes (Claude Code).