runtime: xdxr_build_check gets its own ctest TIMEOUT (CTEST-XDXR-CHECK-TIMEOUT) #1424
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1424"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 ctestTIMEOUT, so a run withctest --timeout 120(the valuedocs/testing.mduses 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-testTIMEOUTtakes precedence over--timeout, so the test now carriesTIMEOUT 600, as other heavy tests do (d3d12_queue_handover400,d3d12_multithread300). One line inruntime/CMakeLists.txtplus a comment; no test logic changes.Tested
Windows 11 Pro 26H2, MSVC 19.44 (VS 2022, RelWithDebInfo), CMake 3.31.6, on
main507029d1e:ctest --show-only=json-v1 -R ^xdxr_build:xdxr_build_checknow listsTIMEOUT 600(it listed none before).With a deliberately short
--timeout 30, to show the precedence on a fast host:xdxr_buildxdxr_build_checkmainctest -R "^xdxr_build(_check)?$" --timeout 120: 2/2 passed (61.1 s). In a fullctest -j 8run 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
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)🤖 Generated with Claude Code
https://claude.ai/code/session_014sDZDAAcsauTL6d8ie67Qo
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 comparedCTestTestfile.cmake—origin/main'sxdxr_build_checkhas noTIMEOUT, the PR's hasTIMEOUT 600, and the hunk applies cleanly to currentorigin/main(TIMEOUT: 600.0inctest --show-only=json-v1).Built
vk_xdxr_build_testand ranctest --test-dir runtime/build -R '^xdxr_build(_check)?$' --timeout 120 -Von Mesa llvmpipe in the sandbox:origin/maintimed out (xdxr_buildpassed in 5.15 s,xdxr_build_checkhit***Timeout 120.10 secwith computed timeout 120), whilepr1424ran with computed timeout 600 and passed in 119.38 s (all cases match, 30/30 cases;xdxr_build5.57 s).A synthetic CTest 3.31.6 probe also confirms per-test
TIMEOUToverridesctest --timeout. The commit's 61–79 s / 212 s timings are host-specific, but the--timeout 120cutoff fromdocs/testing.mdreproduces directly. No findings.AI-assisted review.
Recommendation: Merge
Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T23:01:16Z.
Native Windows 11 Verification (
e79834ec6a) — PASSDiff-audited
runtime/CMakeLists.txt(+3/-1) and verified Red -> Green merged ontoorigin/main(adfb3821a2) on Windows 11 (10.0.26200, CMake + CTest + Vulkan SDK1.4.363.1+ Python3.12.10).Results
origin/mainadfb3821a2): Configuredcmake -S runtime -B runtime/buildand inspectedctest --test-dir runtime/build -C RelWithDebInfo --show-only=json-v1 -R "^xdxr_build_check$". Onorigin/main,xdxr_build_check's properties are{'DEPENDS': ['xdxr_build'], 'FIXTURES_REQUIRED': ['xdxr_build_cases'], 'SKIP_RETURN_CODE': 77, ...}with noTIMEOUTproperty, allowingctest --timeout 120(docs/testing.md) to cut off the 1000-ray Python BVH traversal on slower hosts.PR #1424merged ontoorigin/main):cmake -S runtime -B runtime/buildand re-queriedctest --show-only=json-v1 -R "^xdxr_build_check$":xdxr_build_checknow carries'TIMEOUT': 600.0alongsideFIXTURES_REQUIRED: ['xdxr_build_cases']andSKIP_RETURN_CODE: 77.python -I tests/test_ctest_registration.py:Ran 7 tests in 0.319s — OK(rc=0).scripts/check_no_game_data.py,tests/test_ci_registration.py(18/18), andtests/test_text_write_line_endings.py(3/3) all pass (rc=0).AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-29T02:17:09Z.
Tested
e79834ec6merged (no commit) withmain53b77df14. 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.pyis clean.xdxr_build_checkpasses in 92.6 s, under actest --timeout 120but with little margin. The 212 s measured on a slower host would be cut, so the test's ownTIMEOUT 600is what lets it finish there.gta6rt.exelinks withoutws2_32.libwith nothing new overmain.No blocker from my side.
AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-29T14:18:42Z.
Ready for testing: merges cleanly with
main3535eb5c4. Not inmainyet:git cherryfinds 1 commit(s) not there, and 0 of the 3 lines it adds are already present. No duplicate found: its claimCTEST-XDXR-CHECK-TIMEOUTappears in no other open pull request and in nomaincommit.AI-assisted (Claude Code).
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.
e79834ec6a(merge-base364ab4eab)c22a0a7322(PR merged into it locally withgit merge --no-ff, clean; onlyruntime/CMakeLists.txttouched, +3 -1)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), thenctest -R "^xdxr_build_check$" --output-on-failure -j 1 --timeout 120(the setup testxdxr_buildruns first as its fixture;--timeout 120is the value docs/testing.md suggests).xdxr_build_check ***Timeout 120.05 sec, ctest exit 8. A first run at head with--timeout 30also passed, which already shows the property wins over the command-line value.xdxr_build_check Passed 161.32 sec, 2/2 passed, exit 0. It runs well past the 120 s of--timeout, so theTIMEOUT 600on the test is what applies.ctest --timeout 120cuts 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.dumpbin /importsof 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).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