Repository navigation
test(provider): routing beat tests wait for their beat before the bubble closes - #2918
Merged
Merged
Conversation
…the bubble closes TestSilentRouterCanRecoverOnTheNextRoutingCompletion failed three CI runs in a row on org/main with "deadlock: main bubble goroutine has exited but blocked goroutines remain": the beat was asleep in the lane store's lock backoff when the test returned, after losing the file lock to the completion the test had just made. synctest.Wait counts that sleep as idle. Every routing beat test now starts the beat through startRoutingBeat, whose end cancels the beat and waits for it to return. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
AbirAbbas
added a commit
that referenced
this pull request
Nov 25, 2026
…ack (#2903) The hosted organisation line: a team-mode org server deciding every request through one access model (verbs, roles, grants and policy in SQLite), hosted chats run by the sessionhost under a per-chat uid inside a Landlock fence with minted model bearers, sealed keys and a git helper, shared chats acting through verbs, bots owned by their creator, the Hosting and chats policy settings, and a self-hosting stack (deploy/org Docker Compose, published images behind a leak gate, a Railway path). Consolidates #2894 #2895 #2896 #2898 #2899 #2900 and the follow-ups #2904 #2905 #2907 #2908 #2910 #2911 #2912 #2913 #2915 #2916 #2918 #2927 #2936 #2944. Proven by the full suite, a keyless Compose smoke, a hostile wire client, sandbox escape probes, a real-model run and a production-style install from the published images. Co-Authored-By: Santosh kumar <[email protected]> Co-Authored-By: ZeroPoint95 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
TestSilentRouterCanRecoverOnTheNextRoutingCompletionfailed three CI runs in a row onorg/main(13beb82) withpanic: deadlock: main bubble goroutine has exited but blocked goroutines remain. The test passes every time on a laptop, and nothing ininternal/providerorinternal/lanechanged on this line.Cause. After the test's 30-minute fake sleep, the completion it makes and the beat's own reload wake at the same fake instant and race for the lane store's file lock. If the beat loses, it sleeps in the lock backoff.
synctest.Waitcounts that sleep as idle, so the assertions pass and the test returns while the beat goroutine is still asleep, and the bubble panics. The stack in the failing run shows that goroutine inlane.take(store.go:596) underledger.compact.Fix (test only). All seven routing beat tests start the beat through
startRoutingBeat. The function it returns cancels the beat and waits for it to return; waiting lets the bubble's clock carry a sleeping beat through its backoff to the cancelled context.Proof.
go vetandgofmtare clean.-count=20.internal/providerpackage passes at-count=1.-race), so this PR's CI run, andci-fullafter merge, are the evidence.Separately,
internal/providerat-count=2fails 4–5 other tests ondevtoo. Those tests rely on leftover state from earlier tests; that is not part of this change.🤖 Generated with Claude Code