Skip to content

Drop query plan allowlist entries for queries that have been fixed - #7299

Merged
ymichael merged 2 commits into
mainfrom
bb/drop-fixed-query-plan-allowlist-entries
Nov 9, 2026
Merged

ymichael merged 2 commits into
mainfrom
bb/drop-fixed-query-plan-allowlist-entries

Conversation

@ymichael

@ymichael ymichael commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator

Root cause

The slow-query-plan guard (#7292) landed with seven knownSlow allowlist entries for queries that had fixes in flight. Those fixes have since merged: #7289 (getUnfinishedCommandItemData), #7288 (five type-index queries plus getTurnInterruption), and #7287 (listThreadEventSuffixBackgroundSettlementRows). While the entries stay in the allowlist, the guard would not catch a regression to the slow plan for any of those queries.

Change

Delete the seven entries and the now-unused knownSlow helper. The accepted entries, which carry measurements, are unchanged.

Verification

  • BB_QUERY_PLAN_REPORT=… pnpm exec turbo run test --filter=@bb/db --filter=@bb/server --force, then pnpm --filter @bb/db check:query-plan-allowlist <report>: "Query plan allowlist matches the report (46 findings)", meaning no finding is unallowed and no entry is stale.
  • That run hit two failures in builtin-plugins.test.ts hot-reload timing tests (40 s and 22 s under load). Re-running the file alone passed 27/27, and nothing in that file touches the allowlist.

AGENT GENERATED

🤖 Generated with Claude Code

@ymichael
ymichael merged commit 31e464e into main Nov 9, 2026
32 checks passed
@ymichael
ymichael deleted the bb/drop-fixed-query-plan-allowlist-entries branch November 9, 2026 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant