tests: xmem_startup_below_40, linear_buffer_backing_copy_warp and startup_resource_retire_hardware_debug0 each failed once on main CI #3428
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows#3428
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@Leyukaka on GitHub · 2026-11-29 01:24 UTC · original
Each of the three tests failed in one job of one main run and passed in every other completed job listed below. A search of issues and PRs for the three names finds only the merged PRs that added or touched the tests.
xmem_startup_below_40Run 46194701708,
0614f68c, job "Build and test on Windows" (141139673318).linear_buffer_backing_copy_warpSame run and job.
The other three
gate2qlines of that test run passed (copy xmem gate2q.heldwithconsumer waits +2,copy private gate2qwith+1,copy private gate2q.heldwith+2).startup_resource_retire_hardware_debug0Run 46194210510,
6747721c, job "Build and test on Windows at /O2" (141131633819).Results per job
xmem_startup_below_40linear_buffer_backing_copy_warpstartup_resource_retire_hardware_debug00614f68c0614f68c6747721cf2972840The other job of 46194210510 (Debug) and of 46174243424 (/O2) was cancelled. The main runs on
51472392(46204629558) and212d4b5f(46206952431) were cancelled, so no main run has completed since0614f68c.The other failures of these runs are not part of this issue:
shader_compile_lds_request_cli_checkis fixed by #3426,startup_compute_dispatch_output_warpis covered by #3396 andstartup_compute_half_buffer_uav_controlsby #3391.@Not-Saii on GitHub · 2026-11-29 02:03 UTC · original
I'll take this. It's three separate failures, so I'll treat each test on its own and open one PR per cause.
Plan.
main, in both the Debug and the /O2 build, run each test in a loop:ctest --preset dev --no-tests=error -R '^<test>$' --repeat until-fail:200. Under CPU load as well, since CI runners are slower than my machine. Runstartup_resource_retire_hardware_debug0on WARP, the adapter that failed in CI, and on the RTX 4090. I'll post the failure rate per test, configuration and adapter. If a test never fails in N runs, I'll say so and not claim a fix for it.xmem_startup_below_40: the boundary allocation that fails with error 8 after 4 blocker reservations;linear_buffer_backing_copy_warp:gate2q, where queue 2 completes while queue 1 is still gated;startup_resource_retire_hardware_debug0: 2 textures still retained at thein flight passedstage.Environment: Windows 11 build 26300, NVIDIA GeForce RTX 4090 (driver 32.0.16.1088), Windows SDK 10.0.26100, plus WARP.
AI-assisted.
@Not-Saii on GitHub · 2026-11-29 14:01 UTC · original
Results of the loops from my claim. Base
212d4b5f. Windows 11 build 26300; WARP; NVIDIA GeForce RTX 4090, driver 32.0.16.1088; Windows SDK 10.0.26100.dev(Debug) andrelease(/O2) presets.Each loop runs
ctest --preset <dev|release> --no-tests=error -R '^<test>$'a fixed number of times and counts failures. "load 24" adds 24 busy-loop processes on a 24-thread CPU. "2 cores" pins ctest, the test and 4 busy-loop processes to two logical CPUs. Each configuration also passed one--repeat until-fail:200run.xmem_startup_below_40linear_buffer_backing_copy_warpstartup_resource_retire_warp_debug0startup_resource_retire_hardware_debug0(RTX 4090)startup_resource_retire_hardware_debug0reproduces on WARP under CPU load, with the CI output. The cause is in the test: thein flight passedstage waits for only one of the four queues before draining. The fix and its evidence are in #3459.xmem_startup_below_40: unreproduced in 6000 runs. I don't claim a fix. What I measured:check_boundary()reserves the low range, the thread's stack lands at the base of the 4 MiB window (000000FFFFC00000). The test then fails with exactly the CI output, 200 of 200 times: overflow refused with error 8,boundary: size=0x400000 -> 0000000000000000 (error 8),check_failed: boundary_allocated. An unconstrainedVirtualAlloclands above 2^40 and doesn't interfere.linear_buffer_backing_copy_warp(copy xmem gate2q): unreproduced in 1200 runs. The CI line passes every predicate exceptconsumer waits +0.linear_buffer_backing.hcounts a consumer wait only when the internal refresh has not completed by the time each submission checks. Skipping the wait when the copy has already landed is correct. Measured with the unmodified test, 100 runs each: the non-heldgate2qlines report +1 when idle and mostly +2 under load (+1 ×3, +2 ×97).gate2q.heldalways reports +2. When the fixture lets queue 1's refresh copy land before the checks (throughx2w_d3d12_linear_buffer_test_pausepoint 2), the line becomes exactly the CI failure, with both queues reading B. So the non-heldafter.consumer_waits > before.consumer_waitsassumes timing that WARP doesn't guarantee, whilegate2q.heldand itsskip_consumer_waitcontrol already check the wait deterministically. I'm leaving that check as it is. If it fails again, this is the first place to look. I'm not opening a PR for it, so this issue stays open; no PR usesFixes #3426.AI-assisted.
@R0Y00 on GitHub · 2026-12-03 17:25 UTC · original
One matching result on RTX 4060 Laptop, Windows 11 build 26300, MSVC Debug during independent #3952 validation (
72b10c2d): linear_buffer_backing_copy_hardware, copy xmem gate2q, both B reads 1,024/1,024, consumer waits +0. The exact-head retry passed three times, and the parent test source passed five times against the same runtime. #3952 adds a separate reference mode and leaves the gate2q path in place. Keeping this with the already-recorded WARP signature for tracking.