Skip to content

runtime: set SKIP_RETURN_CODE 77 on vk_xdxr_postbuild_readback (CI-XDXR-POSTBUILD-SKIP-CODE) - #1418

Open
JesusACD wants to merge 1 commit into
ProjectLeonida:mainfrom
JesusACD:fix/xdxr-postbuild-skip-code
Open

JesusACD wants to merge 1 commit into
ProjectLeonida:mainfrom
JesusACD:fix/xdxr-postbuild-skip-code

Conversation

@JesusACD

Copy link
Copy Markdown

Claimed in the coordination issue as: CI-XDXR-POSTBUILD-SKIP-CODE (#14 (comment))

What and why

runtime/test/vk_xdxr_postbuild_readback_test.cpp (:81-84, added in #615) skips with exit code 77 when no Vulkan device supporting bufferDeviceAddress is available:

307/308 Test #307: vk_xdxr_postbuild_readback ..............................***Failed    0.02 sec
vk_xdxr_postbuild_readback: skipped (no Vulkan device with bufferDeviceAddress)

Because runtime/CMakeLists.txt (:3516) registered vk_xdxr_postbuild_readback without SKIP_RETURN_CODE 77, CTest treated exit code 77 as a failure on GPU-less windows-latest runners, failing the windows job of the Runtime workflow (99% tests passed, 1 tests failed out of 306).

This sets SKIP_RETURN_CODE 77 on vk_xdxr_postbuild_readback in runtime/CMakeLists.txt and pins it in tests/test_ctest_registration.py.

Tested

  • Reproduced the windows-latest CTest failure on main (e8fee01cd, workflow run), where vk_xdxr_postbuild_readback was the sole failure out of 306 executed tests.
  • Ran vk_xdxr_postbuild_readback_test.exe locally on physical Vulkan hardware (NVIDIA GeForce RTX 4060 Ti, PCI 10de:2803, driver 621.14, Vulkan 1.4.357, Windows 11 x64): vk_xdxr_postbuild_readback: PASS (compute_to_host_barriers=1, reported_size=320, expected=320) (exit 0).
  • python -I tests/test_ctest_registration.py -v: 6 passed.
  • python -I tests/test_ci_registration.py and python -I tests/test_text_write_line_endings.py: 19 passed.
  • python -I scripts/check_no_game_data.py runtime/CMakeLists.txt tests/test_ctest_registration.py: clean.

GPUs tested: NVIDIA GeForce RTX 4060 Ti (PCI 10de:2803), NVIDIA 621.14, Vulkan 1.4.357, Windows 11 x64

AI-assisted: yes

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. (n/a: no translator change)

@PierreEbele

Copy link
Copy Markdown
Contributor

Confirming this is what fails the Windows "CPU runtime tests" step on unrelated PRs: on #1459 and #1518 the only ctest failure is vk_xdxr_postbuild_readback ... ***Failed right after it prints skipped (no Vulkan device with bufferDeviceAddress) (runs 45519729914 and 45538050964). runtime/test/vk_xdxr_postbuild_readback_test.cpp:83 on current main (57ba40b) already returns 77 there, and runtime/CMakeLists.txt:4185 registers the test without SKIP_RETURN_CODE 77, which is what this PR adds. AI-assisted.

Recommendation: Merge

@qhukz13

qhukz13 commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Reproduced the CI case on native Windows and checked this PR against it. GTX 1050 Ti, Windows 10 Pro 19045, NVIDIA 582.66, MSVC RelWithDebInfo, current main c50ed94b3 (this head is 509 commits behind but merges into it cleanly).

  • Still needed on current main: runtime/CMakeLists.txt:4531 registers vk_xdxr_postbuild_readback without SKIP_RETURN_CODE, and vk_xdxr_postbuild_readback_test.cpp:82-83 still prints the skip line and returns 77.
  • With the GPU visible, both main and main + this PR: vk_xdxr_postbuild_readback: PASS (compute_to_host_barriers=1, reported_size=320, expected=320), ctest Passed.
  • With no Vulkan driver visible (VK_ICD_FILENAMES / VK_DRIVER_FILES pointed at a missing file, run from a non-elevated process, since the loader ignores those variables in an elevated one), the test takes the runner's path:
    • main: skipped (no Vulkan device with bufferDeviceAddress) -> ***Failed, 0% tests passed, 1 tests failed out of 1, the exact signature on the Windows CI job;
    • main + this PR: the same line -> ***Skipped, 100% tests passed out of 1.
  • tests/test_ctest_registration.py on main + this PR: 7 tests OK; the new case pins both the property and the return 77 after the skip line.

This is one of the two failures that currently turn the windows job red on every open PR (kotekompotek's and DadaCap's findings in #1608). +1 to PierreEbele's merge recommendation.

AI-assisted (Claude Code).

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.

3 participants