Tests: wait for late release before checking released pipelines are gone #2760
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2770"
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 inf1425 on 2026-11-26T11:38:26Z.
Since
eb49926b, the pipelines XCL owns are handed tolate_releaseand released once every queue is past them, no longer in the title'sRelease. These are the real pipeline behind a title's stand-in and the compute pass of a two-pass pipeline. Their bookkeeping is cleared when that deferred release runs, so two GPU tests that assert right after the drop fail on a GPU. CI has no GPU, so they never ran there. Both tests now wait up to 5 s for the deferred release before asserting. Royalflamejlh reported both failures and this cause in #42 (comment), where both tests passed withXCL_LATE_RELEASE=0. This PR makes the tests pass with late release on.What is in it
crates/xcl/tests/gpu_compute_e2e.rs:async_compute_pso_registers_real_pso_and_not_standinwaits untilreal::is_translated_compute(real_raw)is false, then asserts as before.crates/xcl/tests/gpu_two_pass_cache_e2e.rs: the child case waits untilreal::two_pass_count()is back tobefore, then asserts as before.Tested
cargo test --workspace --no-fail-fast -- --test-threads=4at this PR's head: 1747 passed, 3 failed, 48 ignored. The 3 failures are not touched here: the 2texture_uploadoverflow tests (#2771) andd3d12_mesh_stream::console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly(#2632). Without this PR: 1745 passed, 5 failed.XCL_HEAP_WINDOWS=1.XCL_LATE_RELEASE=0both pass.late_release::hold_pipelinechanged locally to return without releasing, both tests fail with their original messages after the 5 s wait. That change is not part of this PR.Regression run
crates/xcl/tests/change.Not tested
AI use
Imported from ivall/xcl. Originally posted by afpruivo on 2026-11-26T12:04:34Z.
Tested on an RTX 3090: both tests fail on
nvidia-devaf2cecc4and pass at this PR's head7a7e161d.Setup: RTX 3090 24 GB, driver 621.40, Windows 11 26300, release build, DXC 1.8.2502.11.
Command, on each tree:
cargo test --release --no-fail-fast -p xcl --test gpu_compute_e2e --test gpu_two_pass_cache_e2e -- --test-threads=1gpu_compute_e2egpu_two_pass_cache_e2eaf2cecc4async_compute_pso_registers_real_pso_and_not_standinat:535:649, reported by the parent at:574af2cecc4,XCL_LATE_RELEASE=07a7e161d(this PR)SKIPPEDingpu_compute_e2eonaf2cecc4and on this PR's head:heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows.XCL_LATE_RELEASE=0both pass on the unchanged tree, which fits the cause given in the description.Not tested: the whole suite at this head; other GPUs; repeated runs, to see how much time the 5 s wait leaves to spare.
AI use: Claude Code (Claude Opus 5.5) ran the commands on my machine and drafted this. Checked by me before posting.
Imported from ivall/xcl. Originally posted by MarcosMDev on 2026-11-26T12:25:31Z.
Test report:
7a7e161against its baseaf2ceccon a desktop RTX 4060 (Windows): both tests fail 10 of 10 on the base and pass 10 of 10 here; full suite, no new failure. No title was run.Debug, late release on (the default), each tree in its own worktree and target folder,
cargo build --workspace --lockedfirst. Each test run 10 times in a row:af2cecc7a7e161gpu_compute_e2easync_compute_pso_registers_real_pso_and_not_standingpu_two_pass_cache_e2etwo_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobsFull suite,
cargo test --workspace --locked --no-fail-fast -- --test-threads=4:texture_uploadoverflow tests (#2771) andconsole_ms_in_as_slot_and_ms_with_as_are_refused_cleanly, as the description says.RTX 4060 8 GB (driver 621.01), Ryzen 7 5700X, 24 GB, Windows 11 26200, rustc 1.100.0, DXC 1.9.2609.5.
Not tested: a release build, how long the wait takes against its 5 s limit, AMD, any title.
AI use: Claude Code (Claude Opus 5.5) ran the tests and drafted this; I read it before posting.
Imported from ivall/xcl. Originally posted by Prime1997 on 2026-11-26T13:19:11Z.
Review: COMMENTED
Good targeted test result; retain this PR. Clean exact head
7a7e161d907c91e32fbf727201806171f5580c51: 2 passed, 0 failed, 0 ignored, 0 reported skips. No production or fixture edits were made.async_compute_pso_registers_real_pso_and_not_standin: passed; backend log explicitly identifies NVIDIA GeForce RTX 3060 Ti, 8024 MiB. This checks real asynchronous PSO registration and late cleanup; its body does not dispatch the compiled shader.two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs: passed. The unchanged fixture launches eight sequential children and checks pixels, cache counts, corrupt-blob recovery and lifetime behavior. Successful child logs are suppressed, so this result cannot independently name each child's adapter. Requested debug mode does not establish InfoQueue coverage when that interface is unavailable.The first attempt selected Windows SDK DXC 1.5 and failed
DxcCreateInstancewith0x80004002, before a translated PSO was produced. Pinning a private copy of DXC 1.9.2609.5 resolved that environment failure; it is not attributed to this PR.Build each target with
cargo test --locked --offline -p xcl --test <target> --no-run --message-format=json --target-dir <isolated-target>, targetsgpu_compute_e2eandgpu_two_pass_cache_e2erespectively. Run each exact test name in a fresh process:<test-exe> <exact-name> --exact --test-threads=1 --nocapture. Windows 11 Pro 26200, i5-10400, 32 GiB, Rust 1.100.0 MSVC debug. Private target paths are placeholders. Test processes had a 90-second process-tree deadline, isolated caches/data, one DXC worker, one pipeline worker,XCL_ASYNC_PSO=1 XCL_LATE_RELEASE=1 XCL_UMA_WINDOWS=4 XCL_UMA_MB=16 XCL_COHERENT_MB=16 XCL_HEAP_WINDOWS=0, and the pinned private compiler.Compiler SHA-256: dxcompiler
0689e2fee0a1c9df8662a59680469f24e2a3ad7ce6bbbcc9284f7a83172bfc59; dxil64be2368211d257a038a7d4ea6bb3e24c878eb8d588c7b8414fccf759b69c2ac.Latest refs checked: main
b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7, nvidia-devaf2cecc40886a8682ecf3267f5328c6dc4b66ad7. The native results above are on the exact PR head, not a main integration. Source-only merge-tree against latest main reports clean; that does not validate a rebased build. Full-suite, gameplay, performance and general driver compatibility are not established.AI use: Codex (GPT-6) inspected the fixtures, ran the bounded checks and audited the raw results. Optional temporary Discord for coordinating contributor work, testing and comparing results.
Imported from ivall/xcl. Originally posted by DarkPanda69 on 2026-11-26T13:36:08Z.
AMD run (listed as untested), plus a second NVIDIA card: on
nvidia-devboth tests fail on an RX 9070 XT and an RTX 3060, and with this PR both pass on both.Base
nvidia-devaf2cecc, then head7a7e161applied, debug, Windows 11 Pro 26200, card chosen withXCL_ADAPTER,cargo test -p xcl --test <target> -- --nocapture --test-threads=1:gpu_compute_e2e,nvidia-devasync_compute_pso_registers_real_pso_and_not_standin)gpu_compute_e2e, this PRgpu_two_pass_cache_e2e,nvidia-devtwo_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs)gpu_two_pass_cache_e2e, this PRgpu_compute_e2ealso shows 1 SKIPPED (heap_window_out_of_memory_falls_back_to_the_switch_form, no heap windows) on both cards, with and without the PR.Not tested: Intel, a release build, a title.
AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
Imported from ivall/xcl. Originally posted by rgroenewoudt on 2026-11-26T16:33:07Z.
Tested on AMD Radeon RX 9070 (RDNA4) at this PR's head
7a7e161: both tests fail without the change and pass with it.Tested
cargo test -p xcl --test gpu_compute_e2e --test gpu_two_pass_cache_e2e -- --test-threads=4, 3 runs each:nvidia-devbaseaf2cecc:async_compute_pso_registers_real_pso_and_not_standinfailed 3/3 (gpu_compute_e2e.rs:535)cargo test --workspace --no-fail-fast -- --test-threads=4at the head: 1745 passed, 5 failed, 48 ignored. The 5 failures are not touched here:fuzz_validate_and_gpu_1/_3(#2115, AMD), the 2texture_uploadtests (#2771) andconsole_ms_in_as_slot_and_ms_with_as_are_refused_cleanly(#2632), the same set as in the description apart from #2115.two_pass_binds_set_the_shared_view_heapandheap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows)Not tested
gpu_two_pass_cache_e2eon the base: cargo stopped aftergpu_compute_e2efailed, so I only have the head result for itXCL_HEAP_WINDOWS=1AI use
Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-27T23:26:09Z.
merge-check
base: d1be8103644791b7a65f068954324e93d4b1b565 (
nvidia-devwhen tested)head: 7a7e161d907c91e32fbf727201806171f5580c51
merge: clean (
git merge --no-commit --no-ffin a detached base worktree)build:
cargo build --workspace --locked-> oktests:
cargo test --workspace --locked --no-fail-fast -- --test-threads=4-> merge result 1,825 passed, 6 failed, 48 ignored, 26 skip notices. The exact base, measured with the same command and RTX 3080 Ti in my preceding merge check, had 1,823 passed, 9 failed, 48 ignored, 26 skip notices.async_compute_pso_registers_real_pso_and_not_standinand the child oftwo_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobsnow pass. The remaining six failing instances are the same as on the base: one shader-cache test, two texture-upload tests, the mesh/AS test, and two runs ofsplit_compute_prefers_the_offline_whole_pipeline.review: none after reading the complete two-file diff and checking that each wait is bounded at five seconds, observes the cleanup state that the original assertion checked, and retains the assertion on timeout. The two-pass case runs in its own child process.
performance: no production path changes; the new polling runs only in these two tests and sleeps for 2 ms between checks. Timing was not benchmarked.
verdict: not yet: the required
Build and testcheck onnvidia-devremains red from its inherited CI failure. This PR removed the two GPU cleanup failures on this adapter without adding a new suite failure.hardware / tool and model: Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti 12 GB / driver 621.35, rustc 1.99.1 MSVC. Codex (GPT-6.2 Sol) reviewed the diff and ran the build and full suite.
Imported from ivall/xcl. Originally posted by throny on 2026-11-28T00:30:34Z.
merge-check claim
head:
7a7e161d90