Skip to content

Stop empty grep/glob scope breakdowns at the request's deadline - #1005

Queued
aft-alfonso[bot] wants to merge 2 commits into
mainfrom
land/grep-empty-diagnosis-cost
Queued

aft-alfonso[bot] wants to merge 2 commits into
mainfrom
land/grep-empty-diagnosis-cost

Conversation

@aft-alfonso

@aft-alfonso aft-alfonso Bot commented Oct 26, 2026

Copy link
Copy Markdown

The breakdown AFT shows when a grep or glob scope holds no files (how many were ignored, filtered, examined) walked with its own 10 s budget, while the filesystem helper that runs it gives up after about 5 s. On very large checkouts the walk kept running on the probe thread after the reply had already said the breakdown could not be determined. In the 21:03Z perf sweep that thread took 18% of the live daemon's running samples.

Both probes now take the caller's deadline (with a return margin), so an oversized scope stops when the caller stops waiting. Counts are unchanged whenever the walk completes, and no reply text changes.

Test: empty_scope_probes_stop_at_an_expired_call_budget (fails without the fix: under a zero budget the walk ran to completion).

ualtinok and others added 2 commits October 26, 2026 22:34
Co-authored-by: alfonso-aft <289616620+alfonso-aft@users.noreply.github.com>
(cherry picked from commit 323d40b638ca150721d32bc910092fc174460902)
…ptor

Co-authored-by: alfonso-aft <289616620+alfonso-aft@users.noreply.github.com>
@ualtinok
ualtinok added this pull request to the merge queue Oct 26, 2026
Any commits made after this event will not be merged.
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