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

Merged
JesusACD merged 1 commit from upstream-pr/1418 into main 2026-11-28 07:48:51 +00:00
JesusACD commented 2026-11-24 23:46:38 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by JesusACD on 2026-11-24T23:46:38Z.


Claimed in the coordination issue as: CI-XDXR-POSTBUILD-SKIP-CODE (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7147726562)

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)
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5482300861 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1418). Originally posted by [JesusACD](https://github.com/JesusACD) on 2026-11-24T23:46:38Z. --- Claimed in the coordination issue as: CI-XDXR-POSTBUILD-SKIP-CODE (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7147726562) ### 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)
PierreEbele commented 2026-11-25 10:18:28 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by PierreEbele on 2026-11-25T10:18:28Z.


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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7159515957 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1418#issuecomment-7159515957). Originally posted by [PierreEbele](https://github.com/PierreEbele) on 2026-11-25T10:18:28Z. --- 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
qhukz13 commented 2026-11-26 00:09:24 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by qhukz13 on 2026-11-26T00:09:24Z.


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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7178455364 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1418#issuecomment-7178455364). Originally posted by [qhukz13](https://github.com/qhukz13) on 2026-11-26T00:09:24Z. --- 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).
MoonEyes commented 2026-11-28 07:48:46 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T07:48:46Z.


Red/green: the registration test fails on main and passes with this PR (7 passed); rechecked after merging the current main (23e51d3be), 7 passed.
Full suite with this PR merged together with seven others in one batch matches main (pytest, translator suite, ctest without the game) on Windows 11 with an RTX 4060, except xmem_write_watch, a test that depends on free host memory and has also failed on plain main.
AI-assisted (Claude Code, Claude Opus 5.5). Thank you!

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7236177787 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1418#issuecomment-7236177787). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T07:48:46Z. --- Red/green: the registration test fails on main and passes with this PR (7 passed); rechecked after merging the current main (23e51d3be), 7 passed. Full suite with this PR merged together with seven others in one batch matches main (pytest, translator suite, ctest without the game) on Windows 11 with an RTX 4060, except xmem_write_watch, a test that depends on free host memory and has also failed on plain main. AI-assisted (Claude Code, Claude Opus 5.5). Thank you!
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!1418
No description provided.