SMOODEV-2717: retry transient 429/5xx in bootstrap token exchange - #129
Merged
Conversation
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GD91XYuyT6AFTpj5N6fYL9
brentrager
enabled auto-merge (squash)
July 24, 2026 00:08
🦋 Changeset detectedLatest commit: 56c429d The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
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.
Problem
On 2026-07-23 four monorepo Docker image builds died with
OAuth token exchange failed: HTTP 429 ReservedFunctionConcurrentInvocationLimitExceededduringpnpm build— the auth issuer runs under a reserved-concurrency cap after the 2026-07-21 self-recursion incident, and parallel builds' single-shot token exchanges throttled each other to death, leaving prod web ~20h stale.Solution
mintAccessTokenin the zero-dep bootstrap path now retries transient 429/5xx with exponential backoff + jitter (5 attempts, ~0.4→6.4s). Permanent 4xx (e.g. 401 invalid_client) still fail fast on the first attempt. Node built-ins only — bootstrap stays dependency-free.Verification
retries a transient 429 then succeeds,does not retry a permanent 401— plus the full existing bootstrap suite (27/27).Jira: SMOODEV-2717
🤖 Generated with Claude Code
https://claude.ai/code/session_01GD91XYuyT6AFTpj5N6fYL9