Repository navigation
Conversation
ymichael
deleted the
bb/ci-flake-fix-account-pool-4096-session-lru-timeo-thr_ddaamdfhkd
branch
September 8, 2026 19:59
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 affinity-eviction integration test filled the production capacity by sending 4,095 sequential requests through the complete fake plugin host. Each request repeated parsing, account/quota selection, persistence, routing, and response consumption even though the eviction itself is an O(1)
Mapoperation. On the untouched Intel baseline the single test took 10.7–12.2 seconds without real network I/O, leaving little headroom under its original 20-second timeout. The current-main failure ran the packages shard with four concurrent Turbo package tasks on four vCPUs while Account Pool Vitest also parallelized its ten files; that systemic nested CPU oversubscription made the serial test intermittently exceed 20 seconds. The merged 60-second timeout only masked this structural cost.What changed
Thread an internal
maxAffinityBindingsconstruction option into the hub and apply the existing 4,096 production default once at that boundary. The end-to-end LRU test injects a capacity of four and keeps the same recency refresh, retention, next-oldest, and eviction assertions while removing 4,092 redundant HTTP requests. The custom 60-second timeout is removed, restoring the normal test timeout as the hang detector.There are no CLI, user configuration, SDK, server/daemon wire, migration, or protocol-version changes.
How you verified
pnpm exec turbo run test typecheck --filter=bb-plugin-account-pool --concurrency=2 --force: 10 files and 261 tests passed; typecheck passed.pnpm exec turbo run typecheck --filter=bb-plugin-account-pool --concurrency=2 --force: passed after rebasing onto current main.pnpm exec turbo run build --filter=@bb/server --concurrency=2 --force: passed before and after the rebase.git diff --check: passed.d9f2ac5a4390b8b8507da3cc32a3bae01fc3f868.