Skip to content

build_runtime.ps1: the cl.exe fallback builds check.py's three test programs - #1236

Closed
abilliontokens wants to merge 1 commit into
ItsNotRexed:mainfrom
abilliontokens:bldrt-fallback-tests
Closed

abilliontokens wants to merge 1 commit into
ItsNotRexed:mainfrom
abilliontokens:bldrt-fallback-tests

Conversation

@abilliontokens

@abilliontokens abilliontokens commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Builds check.py's three TEST_PROGRAMS in scripts/build_runtime.ps1's cl.exe fallback, from derekhearst's finding: the fallback (VS without the "C++ CMake tools" component) builds gta6rt plus nine test programs but none of vk_compute_test, vk_store_test or vk_harness, so valu_fuzz.py/lds_fuzz.py stop at "vk_compute_test not found" and TEST-71 cannot run on that path.

Claim: #1218, 08:41:01Z.

What changed — three cl.exe lines after vk_descriptor_bench, matching the CMake path's outputs (add_executable(${tool} test/${tool}.cpp), Vulkan headers + runtime/src for vulkan_loader.h, same flags as the neighbouring lines). No other changes.

Verification (Windows 11, VS Build Tools 2022, Vulkan SDK 1.4.363):

  • This install HAS the C++ CMake tools component, so build_runtime.ps1 takes the CMake path here; the full CMake build on this branch passes (222/222 targets) and is unaffected by the change.
  • The three added cl.exe commands were extracted and run verbatim under vcvars64 + the Vulkan SDK: all three compile, link and launch (exit 0). The complete fallback script was not run end-to-end on this machine (the script selects the CMake path when the component is present); the added lines mirror the neighbouring fallback lines and the CMake foreach outputs.
  • Negative control: on main the fallback's /Fe: list has no such lines (the old body ends at vk_descriptor_bench.exe), so the three programs cannot exist after a fallback build.

Overlap note: @etcetera-yt claimed the same finding 38 seconds later (08:41:39Z vs my 08:41:01Z); this PR is the earlier claim, opened before any PR existed on their side. Happy to fold in their approach (their plan also added vk_image_fuzz and a /Fe:-list self-check) or stand down if the coordinator prefers.

AI-assisted (omp orchestrator). No game files.

…rograms

- derekhearst's finding (ItsNotRexed#1218, 08:37 UTC): the fallback (VS without the C++ CMake tools component) builds gta6rt plus nine test programs, but none of check.py's TEST_PROGRAMS - vk_compute_test, vk_store_test, vk_harness - so valu_fuzz.py and lds_fuzz.py stop at "vk_compute_test not found" and TEST-71 cannot run on that path.
- Adds the three cl.exe lines after vk_descriptor_bench: single-TU like CMakeLists.txt's Vulkan-Headers foreach, Vulkan SDK include + runtime/src for vulkan_loader.h, same flags as the neighbouring lines.
- Compile- and launch-verified on Windows 11 with VS Build Tools 2022 (the fallback toolchain) + Vulkan SDK 1.4.363; AI-assisted (omp orchestrator).
@kapitche

Copy link
Copy Markdown
Contributor

Tested 6f7c088 on Windows 11, VS 18 / MSVC 14.51, with the cl.exe fallback forced (the CMake/Ninja check replaced by $false in a scratch worktree). It builds vk_harness, vk_compute_test, vk_store_test, vk_texture_test, vk_bindless_test, vk_pipeline_check, vk_descriptor_bench and the unit tests, with exit 0.

Heads-up: #1238 (opened right after) extends the same fallback, conflicts with this in scripts/build_runtime.ps1, and builds everything here plus vk_image_fuzz, with a regression test. It's probably best to land one, likely #1238, and close the other.

@abilliontokens

Copy link
Copy Markdown
Contributor Author

Standing down in favor of #1238: it covers everything this PR builds plus vk_image_fuzz, adds a regression test with negative controls, and ran the forced fallback end-to-end; @kapitche independently verified both (see their comment). Our claim was 38s earlier, but #1238 is the better fix — closing this one to avoid duplicate churn. Credit @etcetera-yt. AI-assisted (omp orchestrator).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants