Skip to content

ci: retry gh release list in watch-openapi (transient 401) - #397

Closed
TKIPisalegacycipher wants to merge 1 commit into
betafrom
ci/watch-openapi-retry-beta
Closed

ci: retry gh release list in watch-openapi (transient 401)#397
TKIPisalegacycipher wants to merge 1 commit into
betafrom
ci/watch-openapi-retry-beta

Conversation

@TKIPisalegacycipher

Copy link
Copy Markdown
Collaborator

Wrap the gh release list --repo meraki/openapi lookup in a 5-attempt backoff.

Why

Run 27286337590 failed: check-beta got 401 Unauthorized on its first gh call while check-ga and check-dev passed with the identical command and token. Each job mints its own GITHUB_TOKEN and hits api.github.com concurrently 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 list call in the check jobs. Errors out only after all attempts fail.

🤖 Generated with Claude Code

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>
@TKIPisalegacycipher

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

@TKIPisalegacycipher
TKIPisalegacycipher deleted the ci/watch-openapi-retry-beta branch June 10, 2026 19:07
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