Repository navigation
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 intoNov 15, 2026
Conversation
…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]>
This was referenced Nov 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The pusher test
test_slow_playback_discovery_does_not_hold_ended_record_on_open_streamintermittently fails on CI runners with a bareTimeoutError: 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:
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.defaultraises immediately, so no code path reached by the test can start credential discovery, whose duration depends on the runner's network.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.pyandtests/unit/test_real_clock_budget_ratchet.pywith slow tests selected: 120 passed on this head. Rollback: revert the commit.Author: Claude Fable 5.2.
🤖 Generated with Claude Code