Skip to content

Retry bun install in build.sh to survive transient GitHub 5xx#26

Merged
luckeyfaraday merged 1 commit into
mainfrom
fix/build-bun-install-retry
Jun 15, 2026
Merged

Retry bun install in build.sh to survive transient GitHub 5xx#26
luckeyfaraday merged 1 commit into
mainfrom
fix/build-bun-install-retry

Conversation

@luckeyfaraday

Copy link
Copy Markdown
Owner

What

Wrap bun install in scripts/build.sh with a 3-attempt retry (linear backoff: 10s, 20s).

Why

The v0.4.0 release build failed on 4 of 6 platform legs with:

error: GET https://api.github.com/repos/anomalyco/ghostty-web/tarball/main - 504
error: ghostty-web@github:anomalyco/ghostty-web#main failed to resolve

bun install resolves git dependencies (like ghostty-web, pinned to #main) by fetching tarballs from the GitHub API, which intermittently returns 504. The code and lockfile were sound — the darwin legs and a local build of the same commit passed — but the transient blip still sank the tagged release and required a manual re-run of the failed jobs.

Behavior

  • Transient 5xx → retried up to 3 times, build proceeds.
  • Genuinely broken lockfile / unresolvable dep → still fails, after the final attempt.

bash -n clean.

🤖 Generated with Claude Code

bun install resolves git dependencies (e.g. ghostty-web pinned to #main)
by fetching tarballs from the GitHub API. That endpoint intermittently
returns 504, which failed four of six platform legs of the v0.4.0 release
build even though the code and lockfile were sound.

Wrap the install in a 3-attempt retry with linear backoff so a transient
blip no longer sinks a tagged release; a genuinely broken lockfile still
fails after the final attempt.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@luckeyfaraday luckeyfaraday merged commit 27e9df6 into main Jun 15, 2026
2 checks passed
@luckeyfaraday luckeyfaraday deleted the fix/build-bun-install-retry branch June 15, 2026 20:59
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