Tests: account for deferred stand-in pipeline release #3484

Closed
bmjask wants to merge 1 commit from upstream-pr/3484 into main
bmjask commented 2026-11-30 00:20:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-11-30T00:20:18Z.


The concurrent stand-in regression test merged in #2369 assumes that releasing the final shell synchronously releases the winning driver pipeline. Production intentionally routes that pipeline through late_release, so the test races deferred cleanup and fails on current main and in unrelated PR CI.

This test-only follow-up captures the deferred release deterministically, verifies the winner remains held until that point, and then releases the captured reference before checking final counts.

What is in it

  • standin.rs test only: initialize the existing LET_GO capture before releasing both shells.
  • Verify the winner is deferred, the loser is already released, and the root signature count is exact.
  • Release the captured winner and verify all final reference counts.

Tested

  • Hardware: NVIDIA GeForce RTX 4090, Windows, debug and release.
  • Failing first on current main: concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline failed with one winner reference left.
  • Fixed test repeated 25 times: 25 passed, 0 failed.
  • .\scripts\test.ps1: 2,793 passed, 0 failed, 49 ignored. GPU skips: 8 no-wave64 aggregate plus 15 reported feature/instruction skips.

Regression run
Base:

xcl-smoke v1
commit: 5b0d5fa3d65d9aa61567f8603154d818a9307846
gpu: NVIDIA GeForce RTX 4090
title: retail-fixture
seconds: 60
exit: 0x0
frames shown: 1516 (PresentX 1516)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16888 MB

Head:

xcl-smoke v1
commit: 1f517a05efdb76b13744ffc1b7a48be3270029b4
gpu: NVIDIA GeForce RTX 4090
title: retail-fixture
seconds: 60
exit: 0x0
frames shown: 1544 (PresentX 1544)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 15473 MB

Not tested

  • AMD hardware.
  • Production behavior is unchanged; only the test harness changed.

AI use
Codex with GPT-5 diagnosed the current-main CI failure, corrected the test harness, and ran the reported verification.

<!-- greyfinch-sync:ivall/xcl:issue:5556746347 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3484). Originally posted by [bmjask](https://github.com/bmjask) on 2026-11-30T00:20:18Z. --- The concurrent stand-in regression test merged in #2369 assumes that releasing the final shell synchronously releases the winning driver pipeline. Production intentionally routes that pipeline through `late_release`, so the test races deferred cleanup and fails on current main and in unrelated PR CI. This test-only follow-up captures the deferred release deterministically, verifies the winner remains held until that point, and then releases the captured reference before checking final counts. **What is in it** - `standin.rs` test only: initialize the existing `LET_GO` capture before releasing both shells. - Verify the winner is deferred, the loser is already released, and the root signature count is exact. - Release the captured winner and verify all final reference counts. **Tested** - Hardware: NVIDIA GeForce RTX 4090, Windows, debug and release. - Failing first on current main: `concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline` failed with one winner reference left. - Fixed test repeated 25 times: 25 passed, 0 failed. - `.\scripts\test.ps1`: 2,793 passed, 0 failed, 49 ignored. GPU skips: 8 no-wave64 aggregate plus 15 reported feature/instruction skips. **Regression run** Base: ```text xcl-smoke v1 commit: 5b0d5fa3d65d9aa61567f8603154d818a9307846 gpu: NVIDIA GeForce RTX 4090 title: retail-fixture seconds: 60 exit: 0x0 frames shown: 1516 (PresentX 1516) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16888 MB ``` Head: ```text xcl-smoke v1 commit: 1f517a05efdb76b13744ffc1b7a48be3270029b4 gpu: NVIDIA GeForce RTX 4090 title: retail-fixture seconds: 60 exit: 0x0 frames shown: 1544 (PresentX 1544) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 15473 MB ``` **Not tested** - AMD hardware. - Production behavior is unchanged; only the test harness changed. **AI use** Codex with GPT-5 diagnosed the current-main CI failure, corrected the test harness, and ran the reported verification.
Foniass commented 2026-12-01 03:06:41 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T03:06:41Z.


Review (head 1f517a05, diff read, not a merge-check; it conflicts with main, so not built or run):

  • Superseded by main. 54544682 ("Tests: the stand-in race test keeps the let-go pipeline on its thread", on main since 2026-11-30) fixes the same test the same way in the same lines of standin.rs: take LET_GO, check it holds the winner, release it, clear LET_GO. That is why this PR conflicts. Its only extra is a middle check (1, 0, 1) before the winner is released, which is correct but adds little.
  • The commit and PR text say the test raced the deferred release; it failed on every run (no race), as 54544682 says.

Recommendation: close as superseded by 54544682.

AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7299335129 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3484#issuecomment-7299335129). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T03:06:41Z. --- Review (head 1f517a05, diff read, not a merge-check; it conflicts with main, so not built or run): - **Superseded by main.** 54544682 ("Tests: the stand-in race test keeps the let-go pipeline on its thread", on main since 2026-11-30) fixes the same test the same way in the same lines of `standin.rs`: take `LET_GO`, check it holds the winner, release it, clear `LET_GO`. That is why this PR conflicts. Its only extra is a middle check `(1, 0, 1)` before the winner is released, which is correct but adds little. - The commit and PR text say the test raced the deferred release; it failed on every run (no race), as 54544682 says. Recommendation: close as superseded by 54544682. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
throny commented 2026-12-01 13:01:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-12-01T13:01:35Z.


Closing as superseded: this change is already on main (54544682). 54544682 changes the same test the same way (let_go_taken before, assert the winner is let go, unref it, clear LET_GO); PR adds one extra refs assert after the release

Two independent checks found this: Foniass's close list on #1607 and ours against current main. If something here is still missing on main, say so and reopen it, or ask and I will.

AI use: Claude Code (Claude Opus 5.5); the per-PR comparison was done by Claude Sonnet 5.5 sub-agents.

<!-- greyfinch-sync:ivall/xcl:comment:7311994448 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3484#issuecomment-7311994448). Originally posted by [throny](https://github.com/throny) on 2026-12-01T13:01:35Z. --- Closing as superseded: this change is already on `main` (54544682). 54544682 changes the same test the same way (let_go_taken before, assert the winner is let go, unref it, clear LET_GO); PR adds one extra refs assert after the release Two independent checks found this: Foniass's close list on #1607 and ours against current `main`. If something here is still missing on `main`, say so and reopen it, or ask and I will. AI use: Claude Code (Claude Opus 5.5); the per-PR comparison was done by Claude Sonnet 5.5 sub-agents.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!3484
No description provided.