ci: retry gh release list in watch-openapi (transient 401) - #397
Closed
TKIPisalegacycipher wants to merge 1 commit into
Closed
ci: retry gh release list in watch-openapi (transient 401)#397TKIPisalegacycipher wants to merge 1 commit into
TKIPisalegacycipher wants to merge 1 commit into
Conversation
The check-* jobs each mint their own GITHUB_TOKEN and hit api.github.com concurrently at job start. Occasionally one token 401s on first use (check-beta in run 27286337590), failing the whole run while sibling jobs pass with the same command. Wrap the lookup in a 5-attempt backoff so a transient auth blip no longer fails the run. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Collaborator
Author
|
Closing: watch-openapi only ever runs from the default branch (main); beta's copy never executes. The retry only matters in #396. beta's file is also diverged (old .last-openapi-* structure, no check-dev), so patching it adds nothing. |
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.
Wrap the
gh release list --repo meraki/openapilookup in a 5-attempt backoff.Why
Run 27286337590 failed:
check-betagot401 Unauthorizedon its firstghcall whilecheck-gaandcheck-devpassed with the identical command and token. Each job mints its ownGITHUB_TOKENand hitsapi.github.comconcurrently at startup; occasionally one token 401s on first use. A transient auth blip should not fail the whole scheduled run.Change
Retry loop (5 attempts, linear backoff) around each
gh release listcall in the check jobs. Errors out only after all attempts fail.🤖 Generated with Claude Code