Repository navigation
Conversation
ymichael
force-pushed
the
bb/ci-flake-fix-provider-installation-aggregation-t-thr_nwzisfpq63
branch
from
September 8, 2026 23:23
8245819 to
14c16df
Compare
ymichael
deleted the
bb/ci-flake-fix-provider-installation-aggregation-t-thr_nwzisfpq63
branch
September 8, 2026 23:27
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.
Human comments
What was wrong
The provider-installation deadline regression combined three independent layers in one 5-second test body: a full server route harness, provider registry setup, and retryable host RPC timers. It scheduled every stalled wire attempt with fake
setTimeout, then advanced the entire harness clock by 150 seconds even though the aggregate policy only needs to model three concurrent provider requests across a 70-second budget. Under normal server-shard CPU contention, processing that avoidable timer/lifecycle work could consume the test's real 5-second ceiling. This recurred on current main atcb3aaf57ddf46ec9cd27e18fc4d99084fb75917e(run 34277635721, job 102235437825) and on unrelated PR #2920 (run 34277790348, job 102234989200). Retryable RPC attempt budgeting is already covered byonline-rpc.test.ts, so replaying both attempts for every provider here duplicated coverage while making the aggregation regression timing-sensitive.What changed
aggregateProviderInstallations: it preserves three-way concurrency and registry order, prepares each provider request, applies the remaining aggregate budget, omits providers after the deadline, and assembles the response.getProviderInstallationsresponsible for provider discovery, bridge resolution, host RPC dispatch, error classification, and logging. Its 70-second production deadline and 30-second command ceiling are unchanged.How you verified
pnpm exec turbo run test --filter=@bb/server -- test/public/public-provider-installations.test.tspassed: 1 file, 6 tests.pnpm exec turbo run typecheck build --filter=@bb/serverpassed both server tasks.online-rpc.test.ts(9 tests),plugin-update.test.ts(27),timeline-in-turn-window.test.ts(28), andtimeline-perf.test.ts(1); one unrelated macOS launch-agent test timed out while the Intel host's virtualization workload remained elevated.public-provider-installations.test.ts(6 tests). The full shards did not go green on this host: depending on worker count and concurrent virtualization load, unrelated install/plugin/timeline tests hit their existing 5-second ceilings (best run: 4 failed files, 18 failed and 2,310 passed tests). The server package itself used seven Vitest workers plus one coordinator on eight logical CPUs, so it did not oversubscribe the host by itself.pnpm exec prettier --check apps/server/src/services/system/provider-installations.ts apps/server/test/public/public-provider-installations.test.tsandgit diff --checkpassed.