test: skip translated draw variants without Vulkan #2161

Closed
leonida/mandy
Joaco9020 wants to merge 0 commits from fix/translated-draw-ctest-skips into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

Joaco9020 commented 2026-11-26 00:36:10 +00:00

Claimed as TEST-TRANSLATED-DRAW-SKIP-CODES in the coordination thread.

Summary

The translated-draw executable returns 77 when no usable Vulkan device is available. The base d3d12_translated_draw test already marks that code as a CTest skip, but its three sibling variants did not. Mark all four variants with SKIP_RETURN_CODE 77 and pin the sibling registrations in the CTest registration unit test.

Verification

  • python -I tests/test_ctest_registration.py -v — 7 passed.
  • python -I scripts/check_no_game_data.py runtime/CMakeLists.txt tests/test_ctest_registration.py — passed.
  • git diff --check — clean.
  • cmake -S runtime -B runtime/build -A x64 — configured. The translated-draw executable was not generated because this machine lacks llvm-mc and spirv-as/spirv-val.

No game files or GPU data are included. GPU execution is not needed for this CTest registration change. AI-assisted: yes.

  • One topic; no game data.
  • Based on current main.
Claimed as `TEST-TRANSLATED-DRAW-SKIP-CODES` in [the coordination thread](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7178880260). ## Summary The translated-draw executable returns `77` when no usable Vulkan device is available. The base `d3d12_translated_draw` test already marks that code as a CTest skip, but its three sibling variants did not. Mark all four variants with `SKIP_RETURN_CODE 77` and pin the sibling registrations in the CTest registration unit test. ## Verification - `python -I tests/test_ctest_registration.py -v` — 7 passed. - `python -I scripts/check_no_game_data.py runtime/CMakeLists.txt tests/test_ctest_registration.py` — passed. - `git diff --check` — clean. - `cmake -S runtime -B runtime/build -A x64` — configured. The translated-draw executable was not generated because this machine lacks `llvm-mc` and `spirv-as`/`spirv-val`. No game files or GPU data are included. GPU execution is not needed for this CTest registration change. AI-assisted: yes. - [x] One topic; no game data. - [x] Based on current `main`.
real-rusher commented 2026-11-26 10:20:16 +00:00

Verified on main a73a57e1 (Ubuntu 24.04 x86-64, Python 3.13, no GPU). Merges cleanly. python -I tests/test_ctest_registration.py: OK with this PR; the same file against main's runtime/CMakeLists.txt: 1 failure, so the new check fails on main and passes with the change. compileall clean.

AI-assisted: yes (Claude Code)

Verified on main a73a57e1 (Ubuntu 24.04 x86-64, Python 3.13, no GPU). Merges cleanly. python -I tests/test_ctest_registration.py: OK with this PR; the same file against main's runtime/CMakeLists.txt: 1 failure, so the new check fails on main and passes with the change. compileall clean. AI-assisted: yes (Claude Code)
aslan2142 commented 2026-12-01 12:23:48 +00:00

Marking Ready for Review since no WIP/blocker reason for draft status is specified on this PR, so it can enter normal CI and review.

(AI-assisted triage.)

Marking Ready for Review since no WIP/blocker reason for draft status is specified on this PR, so it can enter normal CI and review. *(AI-assisted triage.)*
aslan2142 commented 2026-12-01 17:25:14 +00:00

Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, d3d12/, or general docs), please feel free to reopen it.

Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (`d3d12/`) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, `d3d12/`, or general docs), please feel free to reopen it.
Sign in to join this conversation.
No description provided.