Repository navigation
build_runtime: the cl.exe fallback builds vk_sandbox and vk_ps_sweep (EGEN-FALLBACK-SANDBOX-SWEEP) - #9712
Conversation
…(EGEN-FALLBACK-SANDBOX-SWEEP) tools/sandbox.py starts runtime/build/vk_sandbox.exe (without it the tool ends at 'unsupported: vk_sandbox is not built'), and tools/ps_sweep.py --exe / tools/ab_control_flow.py --all-attachments start runtime/build/vk_ps_sweep.exe. CMake builds both in its Vulkan tools loop; the fallback built neither, so a fallback build had no harness for either pixel check of translated shaders. tests/test_build_runtime_fallback.py collects the harness names every Python tool under tools/, scripts/ and runtime/test/shaders/ starts and requires the fallback to build them: vk_sandbox and vk_ps_sweep fail on 5d74c27 and pass with the two cl lines.
Grimkaaah
left a comment
There was a problem hiding this comment.
Independent review (Linux CPU) — PASS (PR scope); note pre-existing FAIL on main
Checked
build_runtime.ps1cl.exe fallback now buildsvk_sandbox.exeandvk_ps_sweep.exewhenVULKAN_SDKis set — matches whatsandbox.py/ps_sweep.pystart by name.- New test
test_the_fallback_builds_every_harness_a_tool_starts→ passed. - Paths case-sensitive OK.
Note (not introduced by this PR): on both this tip and current upstream/main, test_the_launcher_compiles_every_source_cmake_gives_gta6rt fails with shims\xg_xs.cpp in CMake's gta6rt sources but missing from the cl.exe launcher list. Unrelated to EGEN-FALLBACK-SANDBOX-SWEEP; worth a separate fix.
No game files. Reviewer: Grimkeh (AI-assisted Cursor / Composer).
|
Re-tested head
The single red is the same on both sides: The new test is not vacuous: with the two added Not covered by Linux: the AI-assisted testing, counts read through by hand. |
|
Independent Windows check on
Scope: local fixtures, no retail files or live GPU run. AI-assisted verification. |
Claimed in the coordination issue as: EGEN-FALLBACK-SANDBOX-SWEEP (#9677 (comment))
Depends on: #8854, #9169 and #8393 — conflicts only (they rewrite the neighbouring cl.exe lines and the launcher's source list in the same file); this change needs none of them.
What and why
scripts/build_runtime.ps1's cl.exe fallback — the branch that runs when Visual Studio's "C++ CMake tools" component is missing — built every Vulkan harness the GPU runners need, but not the two that the pixel-check tools start by name fromruntime/build:tools/sandbox.pylooks forvk_sandbox.exe/vk_sandboxand ends atunsupported: vk_sandbox is not builtwithout it; the tool renders a translated VS/PS pair over placed props.tools/ps_sweep.py --exedraws one pixel shader against an RGBA32F target, andtools/ab_control_flow.py --all-attachmentsrunsvk_ps_sweep.exeby default path — neither has a harness to start on a fallback build.runtime/CMakeLists.txtbuilds both in its Vulkan tools loop (vk_harness vk_ps_sweep ... vk_sandbox), so the fallback was the only Windows build path that produced no artifact for either, and the pixel checks of translated game shaders could not be run from it at all. The fix adds the twocllines beside the otherVULKAN_SDKharnesses.The regression collects the harness names every Python tool under
tools/,scripts/andruntime/test/shaders/starts (quotedvk_*names that name a realruntime/test/*.cpp) and requires the fallback to build all of them, so the next such gap fails the suite instead of being found on a user's machine.Tested
Base commit
5d74c2723, Windows 11, Python 3.12. This machine has no MSVC, so the two lines were not compiled here; the evidence is the fallback's own definitions, its regression test, and the real generated batch executed with a stand-incl.exethat records its arguments:python -I tests/test_build_runtime_fallback.py FallbackBuildsTheHarnesses.test_the_fallback_builds_every_harness_a_tool_startsFAIL—AssertionError: Items in the first set but not the second: 'vk_sandbox', 'vk_ps_sweep'OKpython -I tests/test_build_runtime_fallback.py— 9 tests. The only failure left is the pre-existingshims\xg_xs.cppgap in the launcher's$fileslist, which open build_runtime: the cl.exe fallback compiles the xg_xs shim again #8393 fixes; it failed the same way before this change.cl.exe: 16 cl invocations on5d74c272with no/Fe:vk_sandbox.exeand no/Fe:vk_ps_sweep.exe; 18 after, one each (... vk_sandbox.cpp /Fe:vk_sandbox.exe,... vk_ps_sweep.cpp /Fe:vk_ps_sweep.exe), and the batch still exits 0.tools/sandbox.py's lookup against the build folder of that run:find_tool(...) -> None, the branch that printsunsupported: vk_sandbox is not built.python -m compileall -q make_game.py tools tests,python -I make_game.py --help,python -I scripts/check_no_game_data.pyandpython -I tests/test_build_runtime_batch.pypass, andscripts/build_runtime.ps1parses with 0 errors.What remains to run on a machine with MSVC (or where CMake/Ninja are absent, which selects this branch):
scripts/build_runtime.ps1, thenpython -I tools/sandbox.py --work <work>andpython -I tools/ps_sweep.py ... --exe runtime\build\vk_ps_sweep.exe. No game files, no GPU output and no performance claim in this pull request.AI-assisted: yes (Cline, deepseek8)
Checklist
docs/design.md, with how it was confirmed. (not a translator change)Tag: SHAYDERRR