Skip to content

ci(homebrew): wait for release assets before bumping the formula - #49

Merged
timrabl merged 1 commit into
mainfrom
ci/homebrew-wait-for-assets
Jul 21, 2026
Merged

ci(homebrew): wait for release assets before bumping the formula#49
timrabl merged 1 commit into
mainfrom
ci/homebrew-wait-for-assets

Conversation

@timrabl

@timrabl timrabl commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Fixes a race the v0.2.0 release exposed.

What happened

Now that release-plz uses a PAT (#43), a release fires its downstream workflows automatically — confirmed working on v0.2.0: release-binaries.yml auto-ran and built all five artifacts. But homebrew.yml also fires on release: published, at the same time, and the formula bump needs the tarballs that release-binaries.yml is still building:

Update the formula: no assets to download
##[error]Process completed with exit code 1

So the Homebrew bump had to be triggered by hand for v0.2.0 (done — the tap is on 0.2.0).

Fix

A step that polls the release for all three tarballs (up to ~15 minutes, matching the ~5-minute multi-runner build) before computing checksums. Decoupled from release-binaries.yml's timing rather than chained to it, so either can be re-run independently.

With this, the next release needs no manual Homebrew trigger — the full pipeline (crates.io → binaries/.deb → tap) runs end to end on its own.

The v0.2.0 release exposed a race: homebrew.yml and release-binaries.yml
both fire on 'release: published' (now that release-plz uses a PAT and
releases trigger workflows), but the formula bump needs the tarballs that
release-binaries produces. Homebrew ran first and failed with 'no assets
to download'; the bump then had to be triggered by hand.

Adds a step that polls the release for all three tarballs (up to ~15
minutes, matching the ~5-minute multi-runner build) before computing
checksums. Decoupled from release-binaries' timing rather than chained to
it.
@timrabl
timrabl merged commit 517d522 into main Jul 21, 2026
5 checks passed
@timrabl
timrabl deleted the ci/homebrew-wait-for-assets branch July 21, 2026 17:48
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