Skip to content

fix: scope call flow to changed files when snapshots exceed the analysis budget - #4039

Merged
backnotprop merged 5 commits into
backnotprop:mainfrom
qq2514568380:fix/call-flow-large-snapshot-scope
Nov 26, 2026
Merged

backnotprop merged 5 commits into
backnotprop:mainfrom
qq2514568380:fix/call-flow-large-snapshot-scope

Conversation

@qq2514568380

Copy link
Copy Markdown
Contributor

Fixes #4038.

Keep full-repository Call Flow analysis for snapshots that fit the existing 45-second worker budget. Above an estimated 2,250 candidate paths (15 ms per path with 25% headroom), pass only the changed paths to CallDiff, retaining both sides of renames and deletions. Report the reduced scope in the result message and diagnostics so readers know unchanged callers are excluded.

Added regression cases for small snapshots and large snapshots containing renames/deletions. Validation: TypeScript syntax parsing and git diff --check passed. Tests and builds were not run.

qq2514568380 and others added 5 commits November 25, 2026 01:21
…mpty scope, test the analysis path

The scope message went into the result's message and diagnostics, so the
panel showed it under the empty state's headline and in the collapsed
parser notices (and counted it as a warning). It now travels as notice,
in plain words. A scope that leaves no file to read returns an empty
result without starting the worker. The budget can be lowered for tests,
which now drive the real analysis path through a stand-in worker.
@backnotprop backnotprop added the ci:e2e Run the full browser suite (Inbox window e2e) on this PR label Nov 26, 2026
@backnotprop
backnotprop merged commit 42c436d into backnotprop:main Nov 26, 2026
58 checks passed
@backnotprop

Copy link
Copy Markdown
Owner

Merged. Thank you for this: scoping the call flow to the changed files when a repository is too large to analyse whole is exactly the right fallback, and the write-up made it easy to review. It goes out in the next release (0.29.5).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:e2e Run the full browser suite (Inbox window e2e) on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Call flow times out on every review in repositories above a few thousand files

2 participants