tests: handle serialized queues in the slot 148 acceptance client #2381
No reviewers
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!2381
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2381/head"
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?
@MasterDomino on GitHub · 2026-11-25 14:29 UTC · original
MasterDomino:tests/slot148-acceptance-serialized-queues→main· +182 −32 · 3 files · 2 commits · merged 2026-11-25 14:48 UTCRefs #2210
What
The slot 148 acceptance client now detects adapters whose queues are serialized. On those it skips only the held-phase observer reads, says so in its output, and still runs every other check. It also always opens its gate and drains both queues before it returns.
startup_slot148_acceptance_serialized{,_nodebug}_{warp,hardware}force that path withX2W_TEST_FORCE_SERIALIZED_QUEUES=1, so it is tested on adapters whose queues do make progress.The change is test-only. Nothing in
src/changes.Why
Jess-Doit reported a failure on Windows 10 build 19045, in-box WARP 10.0.19041,
mainb7707495:startup_slot148_acceptance_nodebug_warpwaited the full 10 s and exited 18 in 4 of 4 runs.In the held phase, the observer queue reads A and B while the console queue waits on an unsignalled gate. If the adapter does not let the observer queue progress during that wait, the read cannot finish until the gate opens, so the client times out.
Measured here: I have no Windows 10 machine. I simulated serialized queues locally (method under Results): while a console gate is closed, every other desktop queue first waits on that gate before it executes. Under that simulation, the client from
mainexits 18 after about 10 s, which reproduces the report.Still a hypothesis: that Windows 10 WARP 10.0.19041 without the debug layer behaves this way.
Changes
preflight: the observer queue finished a read while the console queue waited on an unsignalled fencepreflight: the observer queue made no progress ...queues serialized: held-phase checks not applicable.fresh,allocatorandoverwrite. Each skipped step saysqueues serialized: held-phase observer read not applicable.reuse,foreignandarguments, which do not hold a queue;slot 148 acceptance passed with skips: held-phase observer reads in fresh, allocator and overwrite (queues serialized); every other check ran.the observer read did not finish within 10000 ms while the gate was closed.serializedvariants usePASS_REGULAR_EXPRESSION "slot 148 acceptance passed with skips: held-phase observer reads"; that line is printed only on exit 0.Results
Commit
8cfefa98onmainatff06794b, Release preset.ctest --preset release --no-tests=error -R '^startup_(slot148_acceptance|upload_arena|upload_lifetime|list_resubmit)' -Vgives 20 of 20 passed, 0 skipped:startup_slot148_acceptance_*(debug on)startup_slot148_acceptance_nodebug_*startup_slot148_acceptance_serialized_*(debug on)startup_slot148_acceptance_serialized_nodebug_*startup_list_resubmit_*(4 per adapter)startup_upload_arena_*,startup_upload_lifetime_*Every acceptance run reported 0 debug-layer errors and the device not removed.
Serialized-queue simulation (local harness, not in this PR). The harness builds the client unchanged and patches two things:
ID3D12CommandQueue::ExecuteCommandLists, so that any non-console queue first Waits on a recorded gate that is still closed.mainmainmainDXGI_ERROR_DEVICE_HUNG(0x887a0006)made no progress;queues serialized; passed with skips; 0 debug errorsNotes on the simulation:
mainwas not rerun on hardware, to avoid another GPU hang.python -B tests/docs_links_check.py,python -B tests/bidi_controls_check.pyandgit diff ff06794b HEAD --checkpass.Commands
Environment
1002:7550), driver 32.0.31044.16.X2W_D3D12_DEBUG=1, and off withX2W_D3D12_DEBUG=0.Skips
None in these runs. The
serializedvariants pass with the held-phase observer reads skipped by design, and their output lists those reads.Requested rerun (Windows 10, WARP 10.0.19041)
@Jess-Doit, could you rerun this on the Windows 10 machine?
Expected, if the serialized-queue hypothesis holds:
startup_slot148_acceptance_nodebug_warppasses. Its output contains:preflight: the observer queue made no progress while the console queue waited on an unsignalled fencequeues serialized: held-phase checks not applicable... queues serialized: held-phase observer read not applicablelinesslot 148 acceptance passed with skips: held-phase observer reads in fresh, allocator and overwrite (queues serialized); every other check ran.startup_slot148_acceptance_warp(debug on) and the hardware variants pass. Each probably reportspreflight: the observer queue finished a read ...and ends withslot 148 acceptance passed.serializedvariants pass with the skips listed.If the nodebug WARP test still fails, please post the preflight line and the last ten lines of output. If the preflight reports progress and the test then exits 18 with
the observer read did not finish within 10000 ms, the hypothesis is wrong for that WARP and the cause lies elsewhere.Not covered
unified_buffer_paths_*was not run.🤖 Generated with Claude Code
The held phase of startup_slot148_acceptance reads A and B from an observer queue while the console queue waits on an unsignalled gate. On adapters whose queues do not progress while another queue waits, that read cannot finish until the gate opens. The client then waited the full 10 s and exited 18. This was reported for in-box WARP on Windows 10 build 19045 with the debug layer off. - Preflight: before the steps, the console queue waits on an unsignalled fence while the observer reads the sentinel, with a 1 s limit. The fence is then signalled and both queues drained. - If the read did not finish, the client prints "queues serialized: held-phase checks not applicable" and skips only the three held-phase observer reads. - Every other check still runs. The final line then starts "slot 148 acceptance passed with skips". - An adapter that passes the preflight and stalls later still fails with exit 18. - Cleanup: every return opens the gate and drains the console queue. The client drains both queues before it exits. Each wait is bounded at 10 s, and objects whose work did not drain are kept, not released. - X2W_TEST_FORCE_SERIALIZED_QUEUES=1 (fixtures only) takes the serialized path on any adapter. It is registered as startup_slot148_acceptance_serialized{,_nodebug}_{warp,hardware}, whose pass regex names the skipped reads. Refs #2210 Co-Authored-By: Claude Opus 5.5 <[email protected]>@R0Y00 on GitHub · 2026-11-25 14:41 UTC · original
I verified the eight Release variants on WARP and RTX 4060 Laptop. I also tightened the observer preflight: a fence timeout may take the serialized path only if the observer subsequently drains and reads the correct sentinel. Setup, wait and readback errors remain failures. In a temporary control build, I put a real fence wait on the observer queue. It stayed pending, drained after release and took the serialized path. Injecting an observer error instead failed the check. Both controls used source-built inputs. The original Windows 10 report still needs a rerun on that OS.