Skip to content

TEST-586: extend the queue-wait timeout control deadline - #2963

Closed
slint6614-dev wants to merge 1 commit into
ItsNotRexed:mainfrom
slint6614-dev:codex/test-586-timeout-control
Closed

slint6614-dev wants to merge 1 commit into
ItsNotRexed:mainfrom
slint6614-dev:codex/test-586-timeout-control

Conversation

@slint6614-dev

@slint6614-dev slint6614-dev commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Claimed as TEST-586 in the coordination issue.

What and why

Raise the CTest watchdog for d3d12_queue_wait_timeout from 10 to 20 seconds, matching d3d12_queue_wait. The control test also needs to initialize the Vulkan device; under parallel CTest load, startup can use enough of the 10-second limit for CTest to kill the process before its expected failure is reported. WILL_FAIL does not turn a CTest timeout into a pass.

Validation

  • Confirmed the updated CMake entry uses the same 20-second timeout as the companion test.
  • No tests run; no GPU/driver validation performed.

AI-assisted (Codex).

@JRamos1993

Copy link
Copy Markdown
Contributor

Tested aea683d on an RTX 5090 (driver 616.92), Windows 11, MSVC 19.44, Vulkan SDK 1.4.363, RelWithDebInfo:

  • Full ctest: 130/130.
  • Warnings: none new in the files this PR changes.

AI-assisted (Claude Code).

@zzEmmazz

Copy link
Copy Markdown
Contributor

Tested aea683d8, applied alone on main 16282101: pass.
Windows 11 (26200), MSVC 14.50 (VS 2026), Ninja RelWithDebInfo. Two GPUs: Ryzen 7 9700X iGPU (RDNA2, AMD 32.0.21042.62) and RTX 3070 (NVIDIA 610.74), picked with LEONIDA_VK_DEVICE.

  • After configuring, CTestTestfile.cmake has TIMEOUT "20" for d3d12_queue_wait_timeout ("10" on main); WILL_FAIL and SKIP_RETURN_CODE 77 are unchanged.
  • ctest -R "^d3d12_queue_wait" --repeat until-fail:5: d3d12_queue_wait_timeout passed 5/5 on the Radeon (0.47-0.80 s) and 5/5 on the RTX 3070 (0.80-1.95 s); d3d12_queue_wait 5/5 on both. Main gives 5/5 on both as well (0.40-0.62 s and 0.99-1.05 s).
  • python -I tests/test_ctest_registration.py: 4 tests OK.
  • Against d3d12_queue_wait_timeout: the same 20 s budget as its positive test (TEST-586) #2970 (b576b7d9), the other pull request for TEST-586: the two generated CTestTestfile.cmake files are the same apart from source line numbers (266 lines, 0 differ). The property change is identical; d3d12_queue_wait_timeout: the same 20 s budget as its positive test (TEST-586) #2970 also adds a two-line comment above the test.

Not checked: the timeout this fixes. The control took at most 2 s here and I did not run it under a loaded parallel ctest, so the ***Timeout on main was not reproduced.

@iurysf

iurysf commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Tested aea683d8 on RTX 4070 (NVIDIA 621.01), Windows 11 (10.0.26300), MSVC 14.44, Windows SDK 10.0.26100, RelWithDebInfo: pass.

I checked the effect of the timeout, not only that the suite passes. Same binary, only the CTest TIMEOUT of d3d12_queue_wait_timeout switched between main's 10 and this PR's 20 (the generated CTestTestfile.cmake differs only in that value), alternating the two each round:

  • ctest -j 32 -R "d3d12_|vk_" (55 tests), 3 rounds: main: ***Timeout in 2 of 3 (9.33 s and 10.50 s; passed in 7.07 s in the third). PR: passed 3 of 3 (8.14, 13.64 and 10.15 s, so one run was above the old limit).
  • ctest -j 8, full suite, 4 rounds: the test passed on both (1.3 to 2.7 s), so it does not show up at -j 8 on this machine. Serial full ctest on the PR: 121 passed, 0 failed, 8 skipped, gameinput disabled.
  • Most of the time is the Vulkan device start-up, which grows with load. Starting 32 copies of the test at once still takes up to about 24 s, so 20 s is a margin, not a guarantee.

Not run: other GPUs, validation layers, Linux/Wine. Under -j 32 I also saw vk_fence_dispatcher_sync fail once (PR run; passes alone 5/5) and loader fail once at -j 8 on main (disk write latency over its 25 ms check): both unrelated to this change.

Tested with AI assistance (Claude); no game data.

@kotorvr

kotorvr commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Tested aea683d on NVIDIA GeForce RTX 4090, 621.14, Windows 11 (26200): pass. I could not reproduce the 10 s kill on main, so this confirms the registration and that nothing regresses, not the fix itself.

MSVC 19.44 (VS 2022), Ninja, RelWithDebInfo, scripts\build_runtime.ps1; the branch is one commit on main 1628210, built the same way for comparison. The machine was under other CPU load during the runs.

  • ctest --show-only=json-v1 -R "^d3d12_queue_wait": d3d12_queue_wait_timeout has TIMEOUT 10, WILL_FAIL on main and TIMEOUT 20, WILL_FAIL on this branch; d3d12_queue_wait is 20 on both.
  • ctest -C RelWithDebInfo -R "^d3d12" -j 12, three runs each:
53 d3d12* tests d3d12_queue_wait d3d12_queue_wait_timeout
main 1628210 53/53 in all three 4.62 s, 2.94 s, 3.29 s Passed 3.42 s, 2.43 s, 2.48 s
aea683d 53/53 in all three 2.87 s, 3.15 s, 3.15 s Passed 2.54 s, 2.12 s, 1.70 s

Both halves run on this GPU (an independent queue is available). The control never got near 10 s here, even with the device shared 12 ways.

#2970 makes the same one-line change (plus a comment); I ran the same check there. No game files. AI-assisted check (Claude Code).

@slint6614-dev

Copy link
Copy Markdown
Contributor Author

Closing in favour of #2970 by @whoalin1, who claimed TEST-586 before me and makes the same one-line change (plus an explanatory comment). Sorry for the overlap.

The test reports posted here on aea683d8 apply to #2970 too, since the generated CTestTestfile.cmake is the same apart from line numbers (as @zzEmmazz checked): @JRamos1993 (RTX 5090, full ctest 130/130), @zzEmmazz (RDNA2 iGPU + RTX 3070, --repeat until-fail:5), @iurysf (RTX 4070: ***Timeout in 2 of 3 -j 32 rounds with 10 s, none with 20 s) and @kotorvr (RTX 4090, no regression). Thanks to all four for testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants