tests: startup_compute_gather_l is flaky, about one run in three #3696
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#3696
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?
@KelboLive on GitHub · 2026-12-01 02:50 UTC · original
tests:
startup_compute_gather_lis flaky, about one run in threeSummary
startup_compute_gather_lfails intermittently with a one-word readback mismatch. It is not a regression, andit does not bisect — which I found out the hard way, see below.
Measurement
At
12a0e309f, three consecutive runs of the warp variant:So roughly one in three, on a test that takes six seconds — enough to fail a hardware sweep and enough to
waste a bisect.
Why this is not a regression
It passed in the
bee9c64hardware sweep (990/990). That, plus the intermittent rate, means it cannot beattributed by bisecting on single runs — but I tried:
409f127822103d6529436242d567bb79add62d5ab308f2d5ab308f(two re-runs)That last row is the point: the same commit failed and then passed twice. A bisect over a one-in-three failure
produces a confident wrong answer, and I nearly filed
2d5ab308f(#3621) as the cause.Suggested next step
Loop the warp variant on one commit to get the real rate, then look at the synchronisation between the
dispatch and the readback in
tests/startup_compute_gather_l_check.py—mismatches=0anddebug_errors=0in every passing block suggests the data is right when the copy lands, and wrong only in therare run where ordering or a stale cache decides it.
--jobsis not involved: the test compiles one program, and the parallel option belongs to the--refusalsmode of
compile_dxil.Related
The same sweep produced four
SV_Positionfailures (msg 660) which are a real regression, reported in #3695.This one is separate and should not be lumped in.
Refs #3695, #3509.
@legacy-code-archaeologist on GitHub · 2026-12-01 03:01 UTC · original
I reproduced this on
main1a9ccbc4with the in-box WARP (Windows 11 10.0.26100, driver 10.0.26100.9711).startup_compute_gather_l_warpfailed 8 of 8 runs here, always at the same place, and I think the quoted mismatch is not the failure.The quoted line is a negative control.
dispatch()runs six mutants after the positive cases. Each mutant has to produce a mismatch, and each one prints aword=0 … differs from CPU referenceline:dropped_gatherexpected=3f1020e2 actual=00000000wrong_componentexpected=3f1020e2 actual=3f1020e0forced_mip_zeroexpected=3f1020e2 actual=3f0041e2wrong_first_mipexpected=3f1020e6 actual=3f0041e6wrong_tap_orderexpected=3f1020e2 actual=3f1010e2ignored_max_lodexpected=3f1020e2 actual=3f201062actual=3f201062is theignored_max_lodcontrol, which is expected to differ and passes its assertion. All six appear in every run, passing or failing.The failure is the pixel half. After the controls,
dispatch_ps()asserts attests/startup_compute_gather_l_check.py:337, and the renderer output is:That is the PSO creation error from #3695, the shared
pixel_aot_vs.hlsloutput change. WARP has no debug layer here, so message 660 is not printed, but the HRESULT is the same. Becausedispatch_ps()runs last, the visible output ends with the mutant lines and the assertion's renderer text. A failing run therefore looks like a compute mismatch.So on this host it is deterministic and comes from #3695. I can't explain a one-in-three rate from this. If your passing runs were on a tree before #3625, or on a configuration where the pixel half returns 77, that would account for it. Running
ctest -R '^startup_compute_gather_l_warp$' --output-on-failureand reading past the mutant lines to theAssertionErrorshould show which half failed.AI-assisted.
@SimSalabimse on GitHub · 2026-12-01 08:46 UTC · original
I'll take #3696. The printed
word=0 expected=3f1020e2 actual=3f201062line is theignored_max_lodnegative control, anddispatch_ps()afterwards can fail with the #3695 pixel-pipeline HRESULT, so I'll make the test say which half failed. I won't touch the shared vertex shader (that's #3700). After that isolation is on the tree, I'll loop the warp variant on the test PC to measure any remaining rate, and if a compute/readback flake remains, I'll fix the dispatch-to-readback sync inrun_compute/submit_and_wait.AI-Assisted
@KelboLive on GitHub · 2026-12-01 09:17 UTC · original
One measurement that bears on the "is it #3695 leaking through
dispatch_ps()" question, since it does not fit a deterministic failure:At
12a0e309f(where the #3695 breakage is present), three consecutive runs ofstartup_compute_gather_l_warp:And the same commit-level test at
2d5ab308f, where I first saw it fail, then passed twice in a row on re-run:If the failure were only the #3695 pipeline HRESULT reaching
dispatch_ps(), I would expect it every run at those trees, since #3625 is present in both. So either the pixel half is conditional, or there is a second, genuinely intermittent component.That is also why I filed this as flaky rather than as a bisected regression: I had a bisect that pointed at
2d5ab308f(#3621) on one run per step, and then that commit passed twice, which invalidated it. If your isolation shows which half fails, it would be worth re-running the same commit several times to see whether the failing half is stable — the data above says single runs are not enough to decide.Not attached to this issue: I am not editing the fixture, it is yours.
@SimSalabimse on GitHub · 2026-12-01 09:49 UTC · original
Windows WARP follow-up from #3716 at
fc562ff3: startup_compute_gather_l_warp was looped 30 times, each as its own ctest process. There was no compute or readback flake in those 30 runs (compute residual 0); every failure was the #3695 pixel half (HRESULT 0x80070057, SV_Position register mismatch). The new labels name that pixel half instead of looking like a compute flake.AI-Assisted
@KelboLive on GitHub · 2026-12-01 10:17 UTC · original
Independent confirmation of the 30-run loop: at
1949fe015(the #3700 head, where the 660 cause is fixed),startup_compute_gather_l_warplooped ten times, each its own ctest process:That agrees with your measurement: with the pixel half fixed there is no compute or readback flake left in this test, so the intermittent failures I saw were #3695 reaching
dispatch_ps()after the compute half had already passed. My "flaky" label in this issue was the wrong conclusion — I had two failures and two passes on single runs and inferred a rate, when the thing that varied was the pixel half, not the compute one.So this closes with the two fixes rather than needing a compute-side change: the last useful piece is your labelling in #3716, which makes the next failure name its half.
Re-running the loop a few times on
mainafter #3700 merges would confirm the same at head, but there is nothing left to diagnose here.