runtime: xdxr_build_check gets its own ctest TIMEOUT (CTEST-XDXR-CHECK-TIMEOUT) #1424

Merged
Anonymous78e merged 1 commit from upstream-pr/1424 into main 2026-11-29 15:45:32 +00:00
Anonymous78e commented 2026-11-24 23:52:24 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Anonymous78e on 2026-11-24T23:52:24Z.


Claimed in the coordination issue as: CTEST-XDXR-CHECK-TIMEOUT (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7147790860)

What and why

xdxr_build_check (tools/xdxr_bvh.py check-build ... --rays 1000, CPU-bound Python) had no ctest TIMEOUT, so a run with ctest --timeout 120 (the value docs/testing.md uses for the Wine run) applies 120 s to it, and a slower host scores a Timeout: @robot00f measured 212 s on a 4 GB Pascal card, Windows 10 native (finding). A per-test TIMEOUT takes precedence over --timeout, so the test now carries TIMEOUT 600, as other heavy tests do (d3d12_queue_handover 400, d3d12_multithread 300). One line in runtime/CMakeLists.txt plus a comment; no test logic changes.

Tested

Windows 11 Pro 26H2, MSVC 19.44 (VS 2022, RelWithDebInfo), CMake 3.31.6, on main 507029d1e:

  • ctest --show-only=json-v1 -R ^xdxr_build: xdxr_build_check now lists TIMEOUT 600 (it listed none before).

  • With a deliberately short --timeout 30, to show the precedence on a fast host:

    xdxr_build xdxr_build_check
    main Passed 0.35 s Timeout 30.01 s
    this branch Passed 0.37 s Passed 61.31 s
  • ctest -R "^xdxr_build(_check)?$" --timeout 120: 2/2 passed (61.1 s). In a full ctest -j 8 run the check took 78.6 s here.

GPUs tested: NVIDIA GeForce RTX 5070 Ti, driver 621.01, Windows 11 Pro 26H2 (the GPU writes the cases in xdxr_build; the timed step is CPU-only)

AI-assisted: yes (Claude Code, Claude Opus 5.5)

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)

🤖 Generated with Claude Code

https://claude.ai/code/session_014sDZDAAcsauTL6d8ie67Qo

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5482364657 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1424). Originally posted by [Anonymous78e](https://github.com/Anonymous78e) on 2026-11-24T23:52:24Z. --- Claimed in the coordination issue as: CTEST-XDXR-CHECK-TIMEOUT (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7147790860) ### What and why `xdxr_build_check` (`tools/xdxr_bvh.py check-build ... --rays 1000`, CPU-bound Python) had no ctest `TIMEOUT`, so a run with `ctest --timeout 120` (the value `docs/testing.md` uses for the Wine run) applies 120 s to it, and a slower host scores a Timeout: @robot00f measured 212 s on a 4 GB Pascal card, Windows 10 native ([finding](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7143570457)). A per-test `TIMEOUT` takes precedence over `--timeout`, so the test now carries `TIMEOUT 600`, as other heavy tests do (`d3d12_queue_handover` 400, `d3d12_multithread` 300). One line in `runtime/CMakeLists.txt` plus a comment; no test logic changes. ### Tested Windows 11 Pro 26H2, MSVC 19.44 (VS 2022, RelWithDebInfo), CMake 3.31.6, on `main` 507029d1e: - `ctest --show-only=json-v1 -R ^xdxr_build`: `xdxr_build_check` now lists `TIMEOUT 600` (it listed none before). - With a deliberately short `--timeout 30`, to show the precedence on a fast host: | | `xdxr_build` | `xdxr_build_check` | |---|---|---| | `main` | Passed 0.35 s | **Timeout 30.01 s** | | this branch | Passed 0.37 s | Passed 61.31 s | - `ctest -R "^xdxr_build(_check)?$" --timeout 120`: 2/2 passed (61.1 s). In a full `ctest -j 8` run the check took 78.6 s here. GPUs tested: NVIDIA GeForce RTX 5070 Ti, driver 621.01, Windows 11 Pro 26H2 (the GPU writes the cases in `xdxr_build`; the timed step is CPU-only) AI-assisted: yes (Claude Code, Claude Opus 5.5) ### 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) 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_014sDZDAAcsauTL6d8ie67Qo
PierreEbele commented 2026-11-25 10:36:00 +00:00 (Migrated from github.com)

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


Reviewed e79834ec: configured the runtime in the Linux sandbox on both trees and compared CTestTestfile.cmake — origin/main's xdxr_build_check has no TIMEOUT, the PR's has TIMEOUT 600, and the hunk applies cleanly to current origin/main (TIMEOUT: 600.0 in ctest --show-only=json-v1).
Built vk_xdxr_build_test and ran ctest --test-dir runtime/build -R '^xdxr_build(_check)?$' --timeout 120 -V on Mesa llvmpipe in the sandbox: origin/main timed out (xdxr_build passed in 5.15 s, xdxr_build_check hit ***Timeout 120.10 sec with computed timeout 120), while pr1424 ran with computed timeout 600 and passed in 119.38 s (all cases match, 30/30 cases; xdxr_build 5.57 s).
A synthetic CTest 3.31.6 probe also confirms per-test TIMEOUT overrides ctest --timeout. The commit's 61–79 s / 212 s timings are host-specific, but the --timeout 120 cutoff from docs/testing.md reproduces directly. No findings.
AI-assisted review.

Recommendation: Merge

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7159915594 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1424#issuecomment-7159915594). Originally posted by [PierreEbele](https://github.com/PierreEbele) on 2026-11-25T10:36:00Z. --- Reviewed e79834ec: configured the runtime in the Linux sandbox on both trees and compared `CTestTestfile.cmake` — `origin/main`'s `xdxr_build_check` has no `TIMEOUT`, the PR's has `TIMEOUT 600`, and the hunk applies cleanly to current `origin/main` (`TIMEOUT: 600.0` in `ctest --show-only=json-v1`). Built `vk_xdxr_build_test` and ran `ctest --test-dir runtime/build -R '^xdxr_build(_check)?$' --timeout 120 -V` on Mesa llvmpipe in the sandbox: `origin/main` timed out (`xdxr_build` passed in 5.15 s, `xdxr_build_check` hit `***Timeout 120.10 sec` with computed timeout 120), while `pr1424` ran with computed timeout 600 and passed in 119.38 s (`all cases match`, 30/30 cases; `xdxr_build` 5.57 s). A synthetic CTest 3.31.6 probe also confirms per-test `TIMEOUT` overrides `ctest --timeout`. The commit's 61–79 s / 212 s timings are host-specific, but the `--timeout 120` cutoff from `docs/testing.md` reproduces directly. No findings. AI-assisted review. **Recommendation:** Merge
zmasi commented 2026-11-28 23:01:16 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T23:01:16Z.


Native Windows 11 Verification (e79834ec6a) — PASS

Diff-audited runtime/CMakeLists.txt (+3/-1) and verified Red -> Green merged onto origin/main (adfb3821a2) on Windows 11 (10.0.26200, CMake + CTest + Vulkan SDK 1.4.363.1 + Python 3.12.10).

Results

  • Red (origin/main adfb3821a2): Configured cmake -S runtime -B runtime/build and inspected ctest --test-dir runtime/build -C RelWithDebInfo --show-only=json-v1 -R "^xdxr_build_check$". On origin/main, xdxr_build_check's properties are {'DEPENDS': ['xdxr_build'], 'FIXTURES_REQUIRED': ['xdxr_build_cases'], 'SKIP_RETURN_CODE': 77, ...} with no TIMEOUT property, allowing ctest --timeout 120 (docs/testing.md) to cut off the 1000-ray Python BVH traversal on slower hosts.
  • Green (PR #1424 merged onto origin/main):
    • Re-configured cmake -S runtime -B runtime/build and re-queried ctest --show-only=json-v1 -R "^xdxr_build_check$": xdxr_build_check now carries 'TIMEOUT': 600.0 alongside FIXTURES_REQUIRED: ['xdxr_build_cases'] and SKIP_RETURN_CODE: 77.
    • python -I tests/test_ctest_registration.py: Ran 7 tests in 0.319s — OK (rc=0).
    • Policy & Hygiene: scripts/check_no_game_data.py, tests/test_ci_registration.py (18/18), and tests/test_text_write_line_endings.py (3/3) all pass (rc=0).

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7247143210 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1424#issuecomment-7247143210). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-28T23:01:16Z. --- ### Native Windows 11 Verification (`e79834ec6a`) — PASS Diff-audited `runtime/CMakeLists.txt` (`+3/-1`) and verified Red -> Green merged onto `origin/main` (`adfb3821a2`) on Windows 11 (`10.0.26200`, CMake + CTest + Vulkan SDK `1.4.363.1` + Python `3.12.10`). #### Results - **Red (`origin/main` `adfb3821a2`)**: Configured `cmake -S runtime -B runtime/build` and inspected `ctest --test-dir runtime/build -C RelWithDebInfo --show-only=json-v1 -R "^xdxr_build_check$"`. On `origin/main`, `xdxr_build_check`'s properties are `{'DEPENDS': ['xdxr_build'], 'FIXTURES_REQUIRED': ['xdxr_build_cases'], 'SKIP_RETURN_CODE': 77, ...}` with **no `TIMEOUT` property**, allowing `ctest --timeout 120` (`docs/testing.md`) to cut off the 1000-ray Python BVH traversal on slower hosts. - **Green (`PR #1424` merged onto `origin/main`)**: - Re-configured `cmake -S runtime -B runtime/build` and re-queried `ctest --show-only=json-v1 -R "^xdxr_build_check$"`: `xdxr_build_check` now carries **`'TIMEOUT': 600.0`** alongside `FIXTURES_REQUIRED: ['xdxr_build_cases']` and `SKIP_RETURN_CODE: 77`. - `python -I tests/test_ctest_registration.py`: **`Ran 7 tests in 0.319s — OK`** (`rc=0`). - **Policy & Hygiene**: `scripts/check_no_game_data.py`, `tests/test_ci_registration.py` (`18/18`), and `tests/test_text_write_line_endings.py` (`3/3`) all pass (`rc=0`). AI-assisted.
TheGeogeo commented 2026-11-29 02:17:09 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-29T02:17:09Z.


Tested e79834ec6 merged (no commit) with main 53b77df14. GPUs tested: NVIDIA GeForce RTX 3080, driver 621.40, Windows 11 10.0.26300; MSVC 19.52 (Visual Studio 18), Ninja, RelWithDebInfo; Python 3.12.4. check_no_game_data.py is clean.

  • No test. Data point from this machine: xdxr_build_check passes in 92.6 s, under a ctest --timeout 120 but with little margin. The 212 s measured on a slower host would be cut, so the test's own TIMEOUT 600 is what lets it finish there.
  • Red is not observable here (92.6 s < 120 s).
  • LINK: gta6rt.exe links without ws2_32.lib with nothing new over main.

No blocker from my side.
AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7249329746 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1424#issuecomment-7249329746). Originally posted by [TheGeogeo](https://github.com/TheGeogeo) on 2026-11-29T02:17:09Z. --- Tested `e79834ec6` merged (no commit) with `main` `53b77df14`. GPUs tested: NVIDIA GeForce RTX 3080, driver 621.40, Windows 11 10.0.26300; MSVC 19.52 (Visual Studio 18), Ninja, RelWithDebInfo; Python 3.12.4. `check_no_game_data.py` is clean. - No test. Data point from this machine: `xdxr_build_check` passes in **92.6 s**, under a `ctest --timeout 120` but with little margin. The 212 s measured on a slower host would be cut, so the test's own `TIMEOUT 600` is what lets it finish there. - Red is not observable here (92.6 s < 120 s). - LINK: `gta6rt.exe` links without `ws2_32.lib` with nothing new over `main`. No blocker from my side. AI-assisted (Claude Code).
TheGeogeo commented 2026-11-29 14:18:42 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-29T14:18:42Z.


Ready for testing: merges cleanly with main 3535eb5c4. Not in main yet: git cherry finds 1 commit(s) not there, and 0 of the 3 lines it adds are already present. No duplicate found: its claim CTEST-XDXR-CHECK-TIMEOUT appears in no other open pull request and in no main commit.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7257204075 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1424#issuecomment-7257204075). Originally posted by [TheGeogeo](https://github.com/TheGeogeo) on 2026-11-29T14:18:42Z. --- Ready for testing: merges cleanly with `main` `3535eb5c4`. Not in `main` yet: `git cherry` finds 1 commit(s) not there, and 0 of the 3 lines it adds are already present. No duplicate found: its claim `CTEST-XDXR-CHECK-TIMEOUT` appears in no other open pull request and in no `main` commit. AI-assisted (Claude Code).
enlight3d commented 2026-11-29 15:41:49 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by enlight3d on 2026-11-29T15:41:49Z.


Independent run of #1424 (runtime/CMakeLists.txt, one ctest property). The test it touches is CPU-bound Python; the behaviour the PR changes is which timeout ctest applies, so the red is a behavioural one. No game, gta6rt not run.

  • PR head: e79834ec6a (merge-base 364ab4eab)
  • main: c22a0a7322 (PR merged into it locally with git merge --no-ff, clean; only runtime/CMakeLists.txt touched, +3 -1)
  • Machine: Windows 11 Pro 10.0.26300, RTX 3090 24 GB, NVIDIA 621.40, MSVC 14.44, Vulkan SDK 1.4.363.1; other builds were running on the same PC at the same time

Commands: vcvars64, VS cmake + ninja, cmake -S runtime -B runtime/build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLEONIDA_REQUIRE_VULKAN=ON, cmake --build runtime/build -j 8 --target vk_xdxr_build_test (merged and main: plus --target gta6rt), then ctest -R "^xdxr_build_check$" --output-on-failure -j 1 --timeout 120 (the setup test xdxr_build runs first as its fixture; --timeout 120 is the value docs/testing.md suggests).

  • Red (behavioural; it is not a build failure): with the PR's CMakeLists change reverted (= main) and the same command: xdxr_build_check ***Timeout 120.05 sec, ctest exit 8. A first run at head with --timeout 30 also passed, which already shows the property wins over the command-line value.
  • Green at head: same command: xdxr_build_check Passed 161.32 sec, 2/2 passed, exit 0. It runs well past the 120 s of --timeout, so the TIMEOUT 600 on the test is what applies.
  • Green merged into main: same command: Passed 178.76 sec, 2/2 passed, exit 0.
  • Measured duration of the test on this PC: 161-179 s (3 runs at 120/30 s limits, with other jobs running), against the 61-79 s the comment in the PR gives for a desktop CPU; so a ctest --timeout 120 cuts it short here, which is the case the PR describes. The 600 s ceiling holds with a margin of about 3.4x on this machine.
  • gta6rt link check: dumpbin /imports of gta6rt.exe built from the merged tree and from plain main: 718 imports each, 0 new, 0 removed (the exe is byte-identical; the PR only changes a test property).
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7258293761 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1424#issuecomment-7258293761). Originally posted by [enlight3d](https://github.com/enlight3d) on 2026-11-29T15:41:49Z. --- Independent run of #1424 (runtime/CMakeLists.txt, one ctest property). The test it touches is CPU-bound Python; the behaviour the PR changes is which timeout ctest applies, so the red is a behavioural one. No game, gta6rt not run. - PR head: e79834ec6a93a8b548cdc88295ade1096adcfeb8 (merge-base 364ab4eab) - main: c22a0a73228cde800aff15964334e4fe9b13c889 (PR merged into it locally with `git merge --no-ff`, clean; only `runtime/CMakeLists.txt` touched, +3 -1) - Machine: Windows 11 Pro 10.0.26300, RTX 3090 24 GB, NVIDIA 621.40, MSVC 14.44, Vulkan SDK 1.4.363.1; other builds were running on the same PC at the same time Commands: vcvars64, VS cmake + ninja, `cmake -S runtime -B runtime/build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLEONIDA_REQUIRE_VULKAN=ON`, `cmake --build runtime/build -j 8 --target vk_xdxr_build_test` (merged and main: plus `--target gta6rt`), then `ctest -R "^xdxr_build_check$" --output-on-failure -j 1 --timeout 120` (the setup test `xdxr_build` runs first as its fixture; `--timeout 120` is the value docs/testing.md suggests). - Red (behavioural; it is not a build failure): with the PR's CMakeLists change reverted (= main) and the same command: `xdxr_build_check ***Timeout 120.05 sec`, ctest exit 8. A first run at head with `--timeout 30` also passed, which already shows the property wins over the command-line value. - Green at head: same command: `xdxr_build_check Passed 161.32 sec`, 2/2 passed, exit 0. It runs well past the 120 s of `--timeout`, so the `TIMEOUT 600` on the test is what applies. - Green merged into main: same command: Passed 178.76 sec, 2/2 passed, exit 0. - Measured duration of the test on this PC: 161-179 s (3 runs at 120/30 s limits, with other jobs running), against the 61-79 s the comment in the PR gives for a desktop CPU; so a `ctest --timeout 120` cuts it short here, which is the case the PR describes. The 600 s ceiling holds with a margin of about 3.4x on this machine. - gta6rt link check: `dumpbin /imports` of gta6rt.exe built from the merged tree and from plain main: 718 imports each, 0 new, 0 removed (the exe is byte-identical; the PR only changes a test property).
MoonEyes commented 2026-11-29 15:45:35 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T15:45:35Z.


Merged. Tested by @zmasi on head e79834ec6 (CPU only (Windows 11, CMake/CTest)): Red: ctest json on main shows xdxr_build_check with no TIMEOUT; green: TIMEOUT 600, registration tests OK (no new test). Correction: no CI check run or commit status exists for this head, so CI did not validate it. My earlier sentence about red jobs was wrong. Thanks @Anonymous78e!

AI-assisted: yes

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7258343856 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1424#issuecomment-7258343856). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-29T15:45:35Z. --- Merged. Tested by @zmasi on head e79834ec6 (CPU only (Windows 11, CMake/CTest)): Red: ctest json on main shows xdxr_build_check with no TIMEOUT; green: TIMEOUT 600, registration tests OK (no new test). Correction: no CI check run or commit status exists for this head, so CI did not validate it. My earlier sentence about red jobs was wrong. Thanks @Anonymous78e! AI-assisted: yes
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!1424
No description provided.