Skip to content

ci(warden): Raise per-run analysis concurrency to 10 - #237

Open
sentry-junior[bot] wants to merge 1 commit into
mainfrom
chore/warden-concurrency
Open

sentry-junior[bot] wants to merge 1 commit into
mainfrom
chore/warden-concurrency

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Each run sends every skill's hunks through one queue, capped by the action's parallel input (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] concurrency in 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

  • Wall time: queue-bound runs should take roughly half as long. The run above has ~10.3k s of model time, which is ~34m at 5 slots and ~17m at 10. Short runs are unchanged.
  • Cost: per-hunk cost is unchanged. Some savings are likely from fewer runs being cancelled by a newer push: 18–20% of Warden runs on getsentry/junior and getsentry/sentry were cancelled from Nov 25 to 30, and that spend is lost and leaves no incremental baseline.

429 handling on the main agent loop (Pi runtime)

  • buildSettingsManager in packages/warden/src/sdk/runtimes/pi.ts enables Pi's agent-level retry. Pi's AgentSession uses isRetryableAssistantError to treat 429, rate limit, too many requests and 5xx as retryable. It retries the turn up to 3 times with exponential backoff starting at 2s (Pi defaults, capped at 60s).
  • Provider-level retries for skill sessions are 0 (PI_SKILL_PROVIDER_MAX_RETRIES), so the agent-level loop is the only retry.
  • Once those retries run out, analyze.ts fails the hunk with provider_unavailable and 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.chat spans in the warden Sentry project had status ok. After merge, watch span.op:gen_ai.chat !span.status:ok and warden.hunk.failed there. If either rises, revert to 5.

via @dcramer.

--

View Session [Sentry]

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]>
@sentry-junior
sentry-junior Bot requested a review from a team as a code owner November 30, 2026 21:03
@sentry-junior
sentry-junior Bot requested a review from dcramer November 30, 2026 21:03
@sentry-junior

sentry-junior Bot commented Nov 30, 2026

Copy link
Copy Markdown
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.

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