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

Open
github-bot wants to merge 1 commit from github-bot/gh-1418 into main AGit
Owner

@⁠JesusACD on GitHub · 2026-11-24 23:46 UTC · original
JesusACD:fix/xdxr-postbuild-skip-code → main · +23 −0 · 2 files · 1 commits · open

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

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)
**@⁠JesusACD** on GitHub · 2026-11-24 23:46 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1418) `JesusACD:fix/xdxr-postbuild-skip-code` → `main` · +23 −0 · 2 files · 1 commits · open Claimed in the coordination issue as: CI-XDXR-POSTBUILD-SKIP-CODE (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) ### 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: ```text 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](https://github.com/JesusACD/leonida/actions/runs/45504927795)), 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 - [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. - [x] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a: no translator change)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:50:49 +00:00
Author
Owner

@⁠PierreEbele on GitHub · 2026-11-25 10:18 UTC · original

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 (57ba40bd6) 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

**@⁠PierreEbele** on GitHub · 2026-11-25 10:18 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1418#issuecomment-7159515957) 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 (57ba40bd6) 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
Author
Owner

@⁠qhukz13 on GitHub · 2026-11-26 00:09 UTC · original

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

**@⁠qhukz13** on GitHub · 2026-11-26 00:09 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1418#issuecomment-7178455364) 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).
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1418/head:github-bot/gh-1418'
git switch 'github-bot/gh-1418'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1418'
git switch 'github-bot/gh-1418'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1418'
git switch 'github-bot/gh-1418'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1418'
git switch 'main'
git merge --squash 'github-bot/gh-1418'
git switch 'main'
git merge --ff-only 'github-bot/gh-1418'
git switch 'main'
git merge 'github-bot/gh-1418'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.