Skip to content

test(pusher): make the open-stream seal test independent of the runner and report where it parks - #25386

Merged
Git-on-my-level merged 1 commit into
BasedHardware:mainfrom
Git-on-my-level:lane/q12-outbox-test
Nov 15, 2026
Merged

Git-on-my-level merged 1 commit into
BasedHardware:mainfrom
Git-on-my-level:lane/q12-outbox-test

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

The pusher test test_slow_playback_discovery_does_not_hold_ended_record_on_open_stream intermittently fails on CI runners with a bare TimeoutError: the handler is still running five seconds after the test releases it (seen on the [finalization] and [staged_v3] cases; it blocked #25374). Test-only.

Failure-Class: none

What is known and what is not

The failure never reproduced locally: 6 of 6 passes with and without this change while the machine ran 54 busy processes (three per core). So the cause is not proven. Two real-world dependencies in the test are removed, and the test now reports where the handler is parked if it happens again:

  • The durable queue loop's production interval (PRIVATE_CLOUD_SYNC_PROCESS_INTERVAL, 1 second) is set to 1 ms for this test, as other tests in the file already do, so shutdown does not need wall-clock seconds.
  • google.auth.default raises immediately, so no code path reached by the test can start credential discovery, whose duration depends on the runner's network.
  • On timeout the test fails with the chain of awaits the handler task is suspended on (function and line, outermost first) and cancels it, instead of raising a bare TimeoutError.

The five-second wait is unchanged; no guard, allowlist or budget is touched. The assertions are unchanged: the recording is sealed and its producer token cleared while playback discovery is still blocked.

Verification

tests/unit/test_audio_durable_outbox.py and tests/unit/test_real_clock_budget_ratchet.py with slow tests selected: 120 passed on this head. Rollback: revert the commit.

Author: Claude Fable 5.2.

🤖 Generated with Claude Code

View guided diff

…nd name where it parks

The handler's shutdown intermittently outlasted the test's five-second wait on CI runners
(seen on [finalization] and [staged_v3]); it never reproduced locally, including under 3x CPU
oversubscription. The test no longer depends on the production one-second queue interval or
on credential discovery, and a timeout now reports the chain of awaits the handler is parked
on instead of a bare TimeoutError. No production code changes; no budget raised.

Failure-Class: none

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant