test: skip translated draw variants without Vulkan #2161

Closed
Joaco9020 wants to merge 1 commit from upstream-pr/2161 into main
Joaco9020 commented 2026-11-26 00:36:10 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Joaco9020 on 2026-11-26T00:36:10Z.


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.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5501720680 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2161). Originally posted by [Joaco9020](https://github.com/Joaco9020) on 2026-11-26T00:36:10Z. --- 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 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by real-rusher on 2026-11-26T10:20:16Z.


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)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7189230712 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/2161#issuecomment-7189230712). Originally posted by [real-rusher](https://github.com/real-rusher) on 2026-11-26T10:20:16Z. --- 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 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T12:23:48Z.


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.)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7311070959 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2161#issuecomment-7311070959). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T12:23:48Z. --- 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 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T17:25:14Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7319269970 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2161#issuecomment-7319269970). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T17:25:14Z. --- 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.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!2161
No description provided.