Repository navigation
ci(warden): Raise per-run analysis concurrency to 10 - #237
Open
sentry-junior[bot] wants to merge 1 commit into
Open
sentry-junior[bot] wants to merge 1 commit into
sentry-junior[bot] wants to merge 1 commit into
Conversation
Long Warden runs are queue-bound: every skill shares one cap of 5 in-flight hunk analyses, so skills wait on each other rather than on the model. Co-Authored-By: David Cramer <[email protected]>
Jeffreyhung
approved these changes
Nov 30, 2026
Contributor
Author
|
Holding this for now: we're not bumping Warden concurrency yet. Closing so it doesn't merge by accident; reopen when we want it. |
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.
Each run sends every skill's hunks through one queue, capped by the action's
parallelinput (5). Long runs end up waiting on that queue rather than on the model. On the 38.9m getsentry/sentry run https://github.com/getsentry/sentry/actions/runs/46484681151, in-flight model calls never went above 5, and wrdn-code-execution spent about 25m of wall time on about 5m of its own work.[runner] concurrencyin the base config overrides the action input, so this applies to every repo without touching the workflow. It isn't part of the incremental fingerprint, so existing baselines stay valid.Expected effect
429 handling on the main agent loop (Pi runtime)
buildSettingsManagerinpackages/warden/src/sdk/runtimes/pi.tsenables Pi's agent-level retry. Pi'sAgentSessionusesisRetryableAssistantErrorto treat429,rate limit,too many requestsand 5xx as retryable. It retries the turn up to 3 times with exponential backoff starting at 2s (Pi defaults, capped at 60s).PI_SKILL_PROVIDER_MAX_RETRIES), so the agent-level loop is the only retry.analyze.tsfails the hunk withprovider_unavailableand records a circuit-breaker failure. It does not retry again. The failed hunk also blocks that skill's incremental baseline for the run.So a sustained 429 storm would show up as failed hunks rather than silent drops. From Nov 25 to 30, all 957,985
gen_ai.chatspans in thewardenSentry project had status ok. After merge, watchspan.op:gen_ai.chat !span.status:okandwarden.hunk.failedthere. If either rises, revert to 5.via @dcramer.
--
View Session [Sentry]