Skip to content

Wait 30 s for the depth resolve fence, not 5 s, so parallel GPU tests… - #2916

Merged
ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
2-CD:test514-depth-resolve-flake
Nov 22, 2026
Merged

ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
2-CD:test514-depth-resolve-flake

Conversation

@2-CD

@2-CD 2-CD commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

TEST-514 (part 2) — the d3d12_depth_resolve -j 6 flake. Claimed in the coordination issue as: claiming: TEST-514 (part 2).

What and why

What the test shares with parallel tests: device-wide GPU state, not a fixed file or port. The test and runtime/test/vk_test_device.h touch no fixed paths or ports, and each test process owns its own VkDevice - the only thing -j 6 shares is the physical GPU's queue throughput.

Evidence:

  • The reported flake appears only on PR builds that add extra GPU-heavy tests, never on plain main - contention, not a code-path change.
  • The test's only time-bounded shared resource is the 5000 ms fence wait in resolve_and_read (runtime/test/d3d12_depth_resolve_test.cpp:155). The whole test takes ~5 s on a mid-range GPU, so on the reporter's RTX 3060 under 6-way load a fence signal can exceed 5 s. Sibling GPU tests already wait 15-60 s (multithread 15 s, buffer_uav/m3/m4 20 s, rgb96 60 s); 5000 ms was the outlier.
  • On faster hardware (RTX 3070 Ti + RTX 5080 + Ryzen 9 9950X3D iGPU) the flake does not reproduce even under double/triple-suite contention - but that contention does reproduce sibling flakes (d3d12_multithread ~100 s timeout vs ~10 s baseline, d3d12_draw fence race), confirming the contention mechanism.

Fix: raise the fence wait to 30000 ms, with a comment. Test-only change; no runtime code touched.

Tested

Windows 11, MSVC RelWithDebInfo/Ninja, on RTX 3070 Ti, RTX 5080 and the 9950X3D iGPU: --repeat until-fail:5 clean on this test; full ctest -C RelWithDebInfo -j 6 clean with this change (the four window-showing present/swapchain tests excluded from the repeat loops). AI-assisted (opencode); synthetic fixtures only, no game files.

Checklist

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

@tupacfan04

Copy link
Copy Markdown
Contributor

Code read of bd2194f6. The change itself is fine: 30 s matches the 15–60 s waits the sibling tests use, and a real hang still fails, just later. The PR description still has the template placeholders, though: the "Claimed in the coordination issue as" line and the "What and why" sections are empty HTML comments. The coordinator matches PRs to claims from that line, so filling in TEST-514 and a sentence on the parallel-ctest flake would help it get picked up.

AI-assisted review (Claude Code).

@zzEmmazz

Copy link
Copy Markdown
Contributor

Tested bd2194f6, applied alone on main 77444fa0: 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.

  • d3d12_depth_resolve_test: exit 0 on both GPUs.
  • 12 and then 24 copies of it at once on the RTX 3070: 12 of 12 and 24 of 24 exit 0 (the 24 took 25.6 s together).

What I can't confirm is the flake itself. With the 5 s wait, on 49475796, the same card gave 116 of 116 in four ctest -j 6 runs, and 72 of 72 with 12 and 24 copies at once (two rounds each). So this is a no-regression check on an Ampere card, not a reproduction of the RTX 3060 failure.

@FaKL-Code

Copy link
Copy Markdown
Contributor

Tested bd2194f (merged onto main 77444fa) on NVIDIA GeForce RTX 4060 Ti, driver 610.88 (32.0.16.1088), Windows 11 26200, MSVC 14.51.36231 (VS 2026), Vulkan SDK 1.4.363.0: pass

AI-assisted (Claude).

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