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

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

@⁠Anonymous78e on GitHub · 2026-11-24 23:52 UTC · original
Anonymous78e:ctest/xdxr-check-timeout → main · +3 −1 · 1 files · 1 commits · open

Claimed in the coordination issue as: CTEST-XDXR-CHECK-TIMEOUT (#14)

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

**@⁠Anonymous78e** on GitHub · 2026-11-24 23:52 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1424) `Anonymous78e:ctest/xdxr-check-timeout` → `main` · +3 −1 · 1 files · 1 commits · open Claimed in the coordination issue as: CTEST-XDXR-CHECK-TIMEOUT (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) ### 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://git.gtahub.st/github/ubiquitarianism--leonida/issues/14)). 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
xdxr_build_check had no TIMEOUT, so the `ctest --timeout 120` that
docs/testing.md suggests applied to it, and a slower host scores a Timeout
(212 s measured on a 4 GB Pascal card). A per-test TIMEOUT takes precedence
over --timeout, as for d3d12_queue_handover.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014sDZDAAcsauTL6d8ie67Qo
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:50:58 +00:00
Author
Owner

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

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

**@⁠PierreEbele** on GitHub · 2026-11-25 10:36 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1424#issuecomment-7159915594) 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
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/1424/head:github-bot/gh-1424'
git switch 'github-bot/gh-1424'

Merge

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