[PR #639] [MERGED] make_game: warn when the runtime stage runs without VULKAN_SDK (MAKE-GAME-VULKAN-SDK-WARN) #679

Closed
opened 2026-11-26 20:18:41 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/639
Author: @DesertGamer
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142

Base: main ← Head: fix/make-game-vulkan-sdk-warn


📝 Commits (1)

  • cf73e34 make_game: warn when the runtime stage runs without VULKAN_SDK

📊 Changes

2 files changed (+40 additions, -0 deletions)

View changed files

📝 make_game.py (+4 -0)
📝 tests/test_make_game_pipeline_preflight.py (+36 -0)

📄 Description

Claimed in the coordination issue as: MAKE-GAME-VULKAN-SDK-WARN (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7129032727)

What and why

make_game.py checks VULKAN_SDK in preflight only for the pipelines stage. A Windows runtime stage with no
VULKAN_SDK passes preflight and builds a runtime that may have no Vulkan D3D12 device: scripts/build_runtime.ps1
passes -DLEONIDA_REQUIRE_VULKAN=ON only when the variable is set, otherwise CMake only warns that the Vulkan headers
are missing and the build still succeeds. LEONIDA_D3D12=vulkan is then ignored without a word, and a boot
measurement taken with that runtime looks like a Vulkan one but runs on the Windows D3D12 device. This is how a
terminal that was opened before the Vulkan SDK installer set VULKAN_SDK produced a wrong measurement.

preflight now prints a warning in that case (Windows, runtime stage, no --runtime-build, VULKAN_SDK unset or
empty). It does not stop the build, because a runtime without Vulkan is still valid, and it says "may" because the
headers can also be found some other way. The warning comes after the required-prerequisite check, so it never
duplicates a failure.

Tested

  • python -I tests/test_make_game_pipeline_preflight.py: 23 tests, OK (1 skipped on Windows). Three are new: the
    warning appears once for an unset and for an empty VULKAN_SDK, it is absent with the SDK set, and it is absent for
    a prebuilt --runtime-build and on a non-Windows system.
  • With the make_game.py change reverted the new warning test fails (2 subtests), with it applied it passes.
  • Every tests/test_make_game_*.py and tests/test_spirv_stubs.py passes.
  • Windows 11 Pro 10.0.26200, Python 3.14.6. A full runtime build was not run for this change.

GPUs tested: n/a

AI-assisted: yes (Claude Code, Sonnet 5.5)

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/639 **Author:** [@DesertGamer](https://github.com/DesertGamer) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/25/2026 **Merged by:** [@aslan2142](https://github.com/aslan2142) **Base:** `main` ← **Head:** `fix/make-game-vulkan-sdk-warn` --- ### 📝 Commits (1) - [`cf73e34`](https://github.com/ubiquitarianism/leonida/commit/cf73e3497a56fc242e674a557204757af8ce2118) make_game: warn when the runtime stage runs without VULKAN_SDK ### 📊 Changes **2 files changed** (+40 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `make_game.py` (+4 -0) 📝 `tests/test_make_game_pipeline_preflight.py` (+36 -0) </details> ### 📄 Description Claimed in the coordination issue as: MAKE-GAME-VULKAN-SDK-WARN (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7129032727) ### What and why `make_game.py` checks `VULKAN_SDK` in `preflight` only for the pipelines stage. A Windows runtime stage with no `VULKAN_SDK` passes preflight and builds a runtime that may have no Vulkan D3D12 device: `scripts/build_runtime.ps1` passes `-DLEONIDA_REQUIRE_VULKAN=ON` only when the variable is set, otherwise CMake only warns that the Vulkan headers are missing and the build still succeeds. `LEONIDA_D3D12=vulkan` is then ignored without a word, and a boot measurement taken with that runtime looks like a Vulkan one but runs on the Windows D3D12 device. This is how a terminal that was opened before the Vulkan SDK installer set `VULKAN_SDK` produced a wrong measurement. `preflight` now prints a warning in that case (Windows, `runtime` stage, no `--runtime-build`, `VULKAN_SDK` unset or empty). It does not stop the build, because a runtime without Vulkan is still valid, and it says "may" because the headers can also be found some other way. The warning comes after the required-prerequisite check, so it never duplicates a failure. ### Tested - `python -I tests/test_make_game_pipeline_preflight.py`: 23 tests, OK (1 skipped on Windows). Three are new: the warning appears once for an unset and for an empty `VULKAN_SDK`, it is absent with the SDK set, and it is absent for a prebuilt `--runtime-build` and on a non-Windows system. - With the `make_game.py` change reverted the new warning test fails (2 subtests), with it applied it passes. - Every `tests/test_make_game_*.py` and `tests/test_spirv_stubs.py` passes. - Windows 11 Pro 10.0.26200, Python 3.14.6. A full runtime build was not run for this change. GPUs tested: n/a AI-assisted: yes (Claude Code, Sonnet 5.5) ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:18:41 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#679
No description provided.