Package generated shader directories with the Windows runtime tests #3368
Labels
No labels
accessibility
area: ci
area: d3d12
area: docs
area: launcher
area: runtime (legacy)
area: shader translator
area: tools
area: viewer
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs in-game run
needs rebase
needs-triage
question
ready-for-agent
submodules
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida#3368
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?
@merzleckeier on GitHub · 2026-12-03 16:52 UTC · original
Claimed as
CI-RUNTIME-WINDOWS-FIXTURE-DIRSin #3312, following the directory fixture finding.Depends on: none. The file lookup helper is already on
main.What changed
The Windows runtime artifact uploads the top-level
generated/*.spvfiles, but leaves out the directories that hold test shader indexes, modules, stubs, and synthetic FSSM programs. Several test executables also use the CI runner’s absolute build path for those directories.Package the generated shader test directories and use the same local-build-first lookup as the existing individual file fixtures. After extraction, the C++ tests resolve their directory under
generated/and retain its nested layout. This also supplies the bindless shaders whose paths the Wine runner already remaps from CTest arguments.Verification
git diff --checkand the no-game-data check passed.AI-assisted with OpenAI Codex. Independently reviewed read-only by GPT-6.2 Sol.
Checklist
main.Pull request details or commits were not available from GitHub; kept as an issue.
@Kal0s-design on GitHub · 2026-12-03 17:31 UTC · original
Ran natively on Windows 11, head
b9599fe5fmerged into currentmain(09273248c, clean merge).One finding, about CI rather than the code. The Windows job doesn't build any of these nine tests today, so the new glob has nothing to package. In the last Runtime run on
main(46705543929, at9f0d351cc), the configure step printsllvm-mc (set LLVM_MC) or the SDK's spirv-as/spirv-val not foundfor translated_draw, m2_textured, m2_formats, m3_frame, m4_compute and buffer_uav, and a second line sayingd3d12_subgroup_test is not built.rect_list,quad_indexand thevk_bindless_ps_*tests sit behind the same check and don't appear in that log at all. The workflow on currentmainstill installs only glslang in the Windows job, andVULKAN_SDKthere is the headers checkout, so the result should be the same now. That meansruntime/build/generated/*_shaders/**matches nothing, andif-no-files-found: errorwon't notice because the other patterns still match. The tests aren't inctest.jsonfor Wine either. The lookup and the glob work (results below), but the Windows/MSVC and Wine jobs won't exercise them until the Windows job gets an AMDGPUllvm-mcand SPIRV-Tools. The #3312 finding left the packaging question open, so this is the remaining piece.I built the nine tests and
shader_fixture_path_testwith MSVC (CMake + Ninja, RelWithDebInfo). The warnings in the touched test files are the same as onmain. The build generated all eight directories the tests look up into its owngenerated/, includingsubgroup_shaders/glsl/*.spvandsubgroup_shaders/ps_w64_native/spirv/. On the mergeshader_fixture_path_testprintsshader fixture lookup passedand exits 0. To mimic the artifact I hid the build'sgenerated/and ran each exe (left next to its DLLs) from a working directory holding a copy of it asgenerated/, subdirectories included. For the missing case I hid it and ran from an empty folder.main/ mergegenerated/in cwd,main/ mergemain/ merged3d12_buffer_uav_testd3d12_m2_formats_testd3d12_m2_textured_testd3d12_m3_frame_testd3d12_m4_compute_testd3d12_quad_index_testd3d12_rect_list_testd3d12_subgroup_testd3d12_translated_draw_testUnlike the single-file fixtures, these fail cleanly on
main, exiting 1 on anEXPECTforlibrary.load(...)or the FSSM program sizes, with no 0xC0000409. With the directory missing, the merge prints the sameEXPECTlines, one line lower because of the new include. In the artifact-style run the merge'stranslated shaders ... fromline names the copiedgenerated/<name>_shaders/spirv, and for subgroup it namesgenerated/subgroup_shaders/w64_emulated/spirv. Every result line matches the normal run: M3 6 frames and 3555 samples, M4 1924 words, buffer UAV 21394 values, m2_formats 14 cases, M1.5 4064 of 4096 exact plus 32 edge pixels, subgroup 2 shaders judged exact. Themaincolumn came from the same build tree with the same generated fixtures.The tests look up
m15_shaders(translated_draw and rect_list),quad_shaders,m2_shaders,m2f_shaders,m3_shaders,m4_shaders,buffer_uav_shadersandsubgroup_shaders, and the bindless CTest arguments point intobindless_shaders. Inruntime/CMakeLists.txtthose are the only directories undergenerated/, and all nine matchgenerated/*_shaders/**. The local tree has no dot-files that upload-artifact would skip. None of the nine tests still builds a rawstd::filesystem::path(LEONIDA_TEST_*_DIR). Under Wine,run_wine_tests.pyalready maps the Windows checkout's drive onto the Linux one, so the compiled absolute paths would resolve there once the files are packaged. The cwd fallback matters when that mapping is skipped or someone extracts the artifact by hand.Not checked: a real downloaded CI artifact, the Wine job,
vk_bindless_testwithbindless_shaders(not built here), CTest itself.GPUs tested: one NVIDIA desktop card (native Vulkan).
AI-assisted: yes (Claude Code).
@merzleckeier on GitHub · 2026-12-03 17:37 UTC · original
Additional Windows-path verification for
b9599fe5: I compiledruntime/test/shader_fixture_path_test.cppwith Clang-cl and the Windows SDK, then ran it under Wine. It passed, including the UTF-8 path and directory fallback cases.A second Windows executable checked two locally assembled archives under Wine. With the old upload pattern, it returned 1 for the missing M15 index. With the PR pattern, it opened the packaged M15 index and FSSM fixture plus the nested subgroup files and returned 0. Both archives used synthetic fixtures. The hosted Windows/Wine run is still building. AI-assisted with OpenAI Codex.
@merzleckeier on GitHub · 2026-12-03 17:44 UTC · original
Thanks for tracing the missing fixtures to the Windows configure step.
3ab24191installs LLVM and SPIRV-Tools via the pinned MSYS2 UCRT64 setup action, checks thatllvm-mcsupports AMDGPU, and gives CMake the three tool paths explicitly. Before uploading the Wine artifact, Windows now checks that the fixture indexes and subgroup probe exist and are nonempty.Local PowerShell checks preserved Windows paths with spaces and rejected a missing validator, an LLVM build without AMDGPU, and missing or empty generated output. The independent workflow review found no blockers. The GitHub-hosted Runtime run is running the exact new PR head.
AI-assisted with OpenAI Codex. Independently reviewed read-only by GPT-6.2 Sol.