Tests: pso_async first-use test submits a job that builds nothing #3493
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3493"
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?
Imported from ivall/xcl. Originally posted by Pipodi on 2026-11-30T02:54:07Z.
graphics_first_use_carries_the_exact_serialized_recipe_identitysubmits a lazy pipeline whose job returns the fake pointer0x4332, then releases the stand-in at once. When a build-ahead worker has already taken the job,releasedmarks the build an orphan andcompleteReleases the fake pointer (pso_async.rs3019-3020). That aborts the whole lib test process with windows-core's misaligned-pointer panic (0xc0000409, STATUS_STACK_BUFFER_OVERRUN) on axcl-pso-ahead-Nthread. On main53e85fb1it aborted 2 of 24 runs of thehle::d3d12xsubset (both onxcl-pso-aheadworkers) and 1 of 2 workspace runs.The job now returns 0, so a worker has nothing to Release (
release(0)is a no-op). The test checks only the recipe identity and never uses the pipeline value. Test-only: no runtime code changes.Related, not duplicated here: #3474 fixes
standin::concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline(which fails on main and in CI), and #3472 fixes the other fake-COM abort, in thelist_xrecording-memory tests.What is in it
crates/xcl/src/hle/d3d12x/pso_async.rs: the test's job returns 0 instead of0x4332(+2 −1).Tested
20de2414on mainf3bb6649.cargo build --workspace -j 16 && cargo test --workspace --no-fail-fast -j 16 -- --test-threads=4: 2859 passed, 1 failed, 51 ignored; 25SKIPPEDlines. The 1 failure is main'sgpu_direct_image_get_resinfo_d16(fixed by #3513); the earlierstandinfailure is gone on this base.0xc0000409abort in any run of this branch.Regression run
main:
This PR's head:
Not tested
AI use
Imported from ivall/xcl. Originally posted by ettehn on 2026-11-30T06:19:11Z.
I reproduced the orphaned completion on demand in Windows Release. I merged
137179f5intod52ff48cand added a local test-only probe. It leaves the lazy job unscheduled (key 0), takes it frompending.build.job, callsreleased(standin), and asserts that the build is orphaned and unfinished. It then runs the actualrun_buildon a joined test thread. Each probe ran in a fresh process.0x4332reached that checkpoint and aborted 3/3 with0xc0000005(access violation in this Release build).0completed and passed 3/3 with the same ordering and first-use recipe assertions.The single-line change is sufficient for the observed test abort. This was a focused Release test on Windows 11 25H2 (26200.9974), rustc 1.97.1 MSVC. The ordering probe itself is CPU-only.
OpenAI Codex (GPT-6.2 Sol) assisted with source review and Windows verification.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:12:28Z.
Review (head
20de2414, diff read, not a merge-check:PR descriptionfails without thetest-onlylabel, so not run here):test-onlylabel the description asks for hasn't been applied, soPR descriptionkeeps failing for lack of xcl-smoke blocks.Fine: the test still checks first-use behaviour.
manifest_recipeandon_useare set byon_first_use_graphics(pso_async.rs~4604) regardless of the job's result, the fake0x4332only ever reachedrelease()on the orphan path, andrelease(0)does nothing, so nothing is weakened.AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T10:04:24Z.
Triage (#1607) – head
20de241No open or merged PR makes the same change; #3474 and #3472 fix other fake-COM test aborts, not this test.
Checked in the diff: with the job returning 0, an orphaned build-ahead goes through
pso_async::complete->release(0), which is a no-op, and the test only assertsmanifest_recipe/on_use, so it no longer depends on the fake pointer. No problems found in the diff.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T18:44:31Z.
merge-check
base:
6bfb5c5153head:
20de2414afmerge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2904 passed, 0 failed, 51 ignored; SKIPPED: 28 (20 no wave64, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 no heap windows, 1 cannot disable the driver cache, 3 others; the same set as on main); failing: none
review: read the whole diff (+2/-1, test only,
pso_async.rs~10160). The test's lazy build now returns 0 instead of the fake pipeline 0x4332. That removes the race behind the intermittent "misaligned pointer 0x4332" abort inxcl-pso-ahead-1: the build-ahead worker could build this lazy pipeline before the test released it, and then call Release on the fake pointer.manifest_recipeandon_useare set byon_first_use_graphics(~4604) whatever the build returns, andrelease(0)does nothing, so the test still checks the same first-use behaviour. No runtime code changes. The race is intermittent, so one clean run can't show it is gone; the reasoning above is what shows it.performance: none: a test-only change with no runtime code touched, so no smoke run.
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5
AI-written and posted by Foniass without a human check of each point.
Imported from ivall/xcl. Originally posted by throny on 2026-12-01T19:26:18Z.
merge-check claim
head:
20de2414afImported from ivall/xcl. Originally posted by throny on 2026-12-01T21:02:28Z.
merge-check
base:
f07e426dadhead:
20de2414af(same as the claim)merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2904 passed, 0 failed, 51 ignored; 25 SKIPPED lines (no wave64 / heap windows / driver-cache test on this adapter), no test binary ended abnormally
review: none after reading the whole diff (14 lines, one test only). The first-use test now submits a job returning 0 instead of 0x4332, so a worker that builds the job ahead cannot Release a fake pipeline pointer. No runtime code changes. Note: the test body asserts on recipe identity only, which the change does not alter; it is a flake fix for the test, not new coverage.
performance: none: test-only change, no runtime code.
verdict: safe to merge
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300; Claude Code, Claude Sonnet 5.5 ran the build and the suite and read the diff; Claude Opus 5.5 checked this report
Imported from ivall/xcl. Originally posted by throny on 2026-12-01T22:07:27Z.
Merged at the checked head after a combined trial of #3600, #3493, #3608 and #3607 on
mainf07e426d(RTX 4080 16 GB,cargo test --workspace --no-fail-fast -- --test-threads=4: 2909 passed, 0 failed, 51 ignored, 25 SKIPPED lines). Two merge checks each.AI use: Claude Code (Claude Opus 5.5).