Skip to content

ci: retry firmware uploads on transient 5xx - #13

Merged
widgetii merged 1 commit into
masterfrom
ci/publish-retry
May 5, 2026
Merged

ci: retry firmware uploads on transient 5xx#13
widgetii merged 1 commit into
masterfrom
ci/publish-retry

Conversation

@widgetii

@widgetii widgetii commented May 5, 2026

Copy link
Copy Markdown
Member

Summary

  • The first publish run after PR ci: publish u-boot artifacts to OpenIPC/firmware on master #12 merged failed because the GitHub Releases API returned a 502 "Unicorn!" page on the very first gh release upload call. A manual re-run worked. Add retry to make this self-heal.
  • Wrap gh release upload in a 5-attempt loop with linear backoff (10s, 20s, 30s, 40s — ~100s total before giving up). Real auth/scope failures still fail the job; they just take longer to surface.

Test plan

  • PR build (no publish) stays green.
  • After merge, normal master push uploads both assets on the first attempt as before.
  • Manual sanity: temporarily point the upload at a bogus release tag; confirm 5 attempts then fail.

GitHub's Releases API returned a 502 ("Unicorn!" page) on the first
publish run after PR #12 merged, requiring a manual re-run. Wrap
gh release upload in a 5-attempt loop with linear backoff (10s, 20s,
30s, 40s) so the next blip self-heals. Real auth/scope failures still
surface — they just take ~100s to give up.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@widgetii
widgetii merged commit cd8a18d into master May 5, 2026
3 checks passed
@widgetii
widgetii deleted the ci/publish-retry branch May 5, 2026 17:27
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.

2 participants