Skip to content

Don't bump Homebrew from the release; the formula is autobumped - #401

Merged
tylervick merged 1 commit into
mainfrom
drop-homebrew-autojob
Aug 7, 2026
Merged

tylervick merged 1 commit into
mainfrom
drop-homebrew-autojob

Conversation

@tylervick

@tylervick tylervick commented Aug 7, 2026

Copy link
Copy Markdown
Member

The homebrew job added in #400 would have failed on every release. Removing it.

What happened

With HOMEBREW_BUMP_ACCESS_TOKEN regenerated, the bump got past authentication and reached brew bump-formula-pr, which refused it:

Whoops, the xctesthtmlreport formula has its version update
pull requests automatically opened by BrewTestBot every ~3 hours!

xctesthtmlreport is on Homebrew's autobump list. brew bump-formula-pr deliberately rejects manual bumps for autobumped formulae.

This was already true

PR Title Author
Homebrew/homebrew-core#211135 xctesthtmlreport 2.5.1 BrewTestBot
Homebrew/homebrew-core#238348 xctesthtmlreport: update 2.5.1 bottle BrewTestBot

The 2.5.1 formula PR was opened by BrewTestBot ~2.5 hours after the 2.5.1 release, and the Brew Bump workflow has zero runs in its entire history. The formula has been updating on its own the whole time; the workflow never did anything.

3.0.0 will reach Homebrew the same way, without intervention.

Change

  • Remove the homebrew job from release.yml, and the workflow_call plumbing that existed only to serve it.
  • Keep homebrew-bump.yml as a manual workflow_dispatch escape hatch, for the case where the formula later leaves the autobump list (gains no_autobump! or a skipped livecheck). It is deliberately not wired into the release, since it would fail there.
  • The script-injection hardening from Call the Homebrew bump from the release instead of an event trigger #400 is retained.

Why it wasn't caught sooner

The expired token masked it: brew failed at authentication before it ever evaluated whether the formula was autobumped. Checking who authors the formula PRs in homebrew-core would have revealed it immediately, and should have been the first thing checked.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated Homebrew publishing workflows to support manual execution only.
    • Removed automatic Homebrew updates from the release process.
    • Added documentation clarifying Homebrew autobump behavior and manual workflow usage.

xctesthtmlreport is on Homebrew's autobump list. BrewTestBot opens a
version-bump PR against homebrew-core on its own roughly every 3 hours
after a release, and brew bump-formula-pr refuses a manual bump for
autobumped formulae:

  Whoops, the xctesthtmlreport formula has its version update pull
  requests automatically opened by BrewTestBot every ~3 hours!

Every formula PR since 2.5.1 was opened by BrewTestBot, and the Brew Bump
workflow has zero runs in its history — the formula has been updating
without it the whole time.

So the homebrew job added in #400 would have failed on every release,
turning the release workflow red for a step that is not needed. Removed.

The workflow itself is kept as a manual escape hatch for the case where
the formula leaves the autobump list, but is no longer wired into the
release. Its workflow_call plumbing goes with the caller.

This only surfaced once HOMEBREW_BUMP_ACCESS_TOKEN was valid: with an
expired token brew failed at authentication before ever reaching the
autobump check.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 0f7db6c0-d22f-4931-a0a3-44fbbae51ccd

📥 Commits

Reviewing files that changed from the base of the PR and between bfd7026 and fcd9836.

📒 Files selected for processing (2)
  • .github/workflows/homebrew-bump.yml
  • .github/workflows/release.yml
💤 Files with no reviewable changes (1)
  • .github/workflows/release.yml

📝 Walkthrough

Walkthrough

The Homebrew bump workflow is now manual-only. Its reusable trigger was removed, and the release workflow no longer invokes it. Documentation describes BrewTestBot autobumping and the manual escape hatch.

Changes

Homebrew release workflow decoupling

Layer / File(s) Summary
Make Homebrew bump manual-only
.github/workflows/homebrew-bump.yml
The reusable workflow_call trigger and required version input were removed. The workflow documents manual use and retains its tag validation logic.
Remove release integration
.github/workflows/release.yml
The homebrew job was removed from the release workflow, including its release gating and workflow invocation.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes removing the Homebrew bump from the release workflow because Homebrew autobumps the formula.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch drop-homebrew-autojob

Comment @coderabbitai help to get the list of available commands.

@tylervick
tylervick merged commit 377e730 into main Aug 7, 2026
6 checks passed
@tylervick
tylervick deleted the drop-homebrew-autojob branch August 7, 2026 23: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