Repository navigation
Keep provider startup fallback timer alive - #4864
Merged
Merged
Conversation
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.
🚨 SLOP COP 🚨 ·
new-issue-autopilotHuman comments
What was wrong
Provider-registration waits use a 30-second fallback timer that does not keep Node alive. Before the server opens its listener, recovery can await that timer with no other referenced handles, allowing a successful process exit before startup completes. The same behavior affects provider-specific registration waits.
Investigation: https://get-bb.github.io/reports/issues/4862.html
What changed
Keep the existing provider-registration fallback timer referenced until readiness or timeout completes. Existing timer cleanup remains unchanged. Add a real child-process regression covering both global and provider-specific waits. No dependency, protocol, schema, persisted-data, permission, packaging, or CLI changes.
Changed-line count: 37 total text lines across 2 files (36 additions, 1 deletion), measured with
git diff --numstat origin/main.How you verified
09ff18a73bd0a8037f43c6ed86c28eb02228089c.pnpm exec turbo run test --filter=@bb/server -- test/providers/provider-registry-liveness.test.ts test/providers/provider-registry.test.ts test/services/periodic-sweeps.test.tspasses all 26 tests.pnpm exec turbo run typecheck --filter=@bb/serverpasses.git diff --checkand binary/changed-line checks pass.Fixes #4862