Tests: wait for late release before checking released pipelines are gone #2770
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2770
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@inf1425 on GitHub · 2026-11-26 11:38 UTC · original
inf1425:tests/late-release-waits→nvidia-dev· +12 −1 · 2 files · 1 commits · openSince
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
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.