Skip to content

ci: retry the publish workflow's GitHub API calls - #277

Merged
RyanTheTide merged 1 commit into
mainfrom
ci/retry-gh-api
Nov 10, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
ci/retry-gh-api

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

A single HTTP 504 from the GitHub API, from gh api .../releases --paginate in the plan step, failed the whole signed publish. When that happened the merged packages didn't reach the testing repository. It happened three times on 11-10, at 10:12Z, 11:21Z and 14:55Z.

  • scripts/gh-retry runs a gh command and retries transient failures up to 5 times, with backoff of 5, 10, 20 and 40 s. Transient means HTTP 5xx or 429, timeouts, and reset or cancelled streams. Any other failure, for example a 404 for a release that doesn't exist, returns at once with gh's exit code, so release view existence checks keep their meaning. Only the successful attempt's stdout is passed on.
  • release create: if a transient failure left the release created, the next attempt uploads the files to it with release upload --clobber instead of failing on "already exists".
  • release download: a retry adds --clobber, so the files a failed attempt left behind don't stop it.
  • Every gh api and gh release call in .github/workflows/publish.yml goes through it. The request-builds job checks out scripts/ for it.
  • gh workflow run is not retried: a retry after a transient failure could dispatch the build twice.

Tests: tests/test_gh_retry.py uses a fake gh. It checks that a 504 is retried, a 404 isn't, the attempts give up after 5, release view of a missing release fails at once, a create that failed after creating uploads instead, and a retried download overwrites.

🤖 Generated with Claude Code

A single HTTP 504 from the GitHub API (gh api .../releases --paginate in
the plan step) failed the whole signed publish, so a night's merged
packages never reached the testing repository (three times on 11-10).

scripts/gh-retry runs a gh command and retries transient failures (HTTP
5xx and 429, timeouts, reset or cancelled streams) up to 5 times with
backoff (5, 10, 20, 40 s). Any other failure, such as a 404 for a
release that does not exist, returns at once with gh's exit code, so
the existence checks keep their meaning. A create that failed after the
release was made uploads the files to it instead; a retried download
overwrites what a failed attempt left. Every gh api and gh release call
in publish.yml goes through it; request-builds checks out scripts/ for it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@RyanTheTide
RyanTheTide merged commit 3a963f9 into main Nov 10, 2026
18 checks passed
@RyanTheTide
RyanTheTide deleted the ci/retry-gh-api branch November 10, 2026 15:42
techmore pushed a commit to techmore/fedora-aurora that referenced this pull request Nov 13, 2026
Pin mesa-aurora / aurora-wip 5ccdc3f8. G17P tests a per-sample
fragment's coverage once, which fixes GPU stalls when a sample-shading
client runs beside another client (mesa#294), and admits queues before
consuming submission payloads (mesa#293). The M5 draws GL tessellation
natively (mesa#292). Also VK_NV_cooperative_matrix2 on the M5,
VK_EXT_memory_priority and VK_EXT_pageable_device_local_memory, G17P
ray tracing improvements (recursion depth 31, pipeline caching, faster
opaque ray queries, overlapped acceleration structure builds), and M5
fixes (mesa#243, aurora-silicon#244, aurora-silicon#246, aurora-silicon#259, aurora-silicon#260, aurora-silicon#264-aurora-silicon#274, aurora-silicon#277-aurora-silicon#284, aurora-silicon#286,
aurora-silicon#288, aurora-silicon#289, aurora-silicon#291).

Signed-off-by: Diljit Singh <hey@djdev.me>
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