fix(ci): stop a failed iOS screenshot capture from blocking Homebrew updates
brew upgrade cmux has been stuck on 0.64.22 since 2026-08-03. Three releases shipped in that window and none of them reached Homebrew users.
| tag | published | build-sign-notarize | release assets | update-homebrew |
|---|---|---|---|---|
| v0.64.23 | 2026-09-14 | success | cmux-macos.dmg, appcast.xml | skipped |
| v0.64.24 | 2026-09-15 | success | cmux-macos.dmg, appcast.xml | skipped |
| v0.64.25 | 2026-09-17 | success | published | skipped |
The tap's Casks/cmux.rb still reads version "0.64.22", last committed 2026-08-03. Sparkle users received all three releases through appcast.xml; only Homebrew was stranded.
Cause
release.yml runs generate-ios-screenshots alongside the macOS build, and documents exactly why:
It is deliberately not a dependency of build-sign-notarize: the DMG consumes nothing from it, and a slow or flaky simulator capture (up to 300 minutes) must neither delay nor fail a macOS release (#12149). A failed capture still turns the run red, so it stays visible.
That trade was made on purpose. What it missed is that update-homebrew.yml gated on the run:
if: >-
github.event_name == 'workflow_dispatch' ||
github.event.workflow_run.conclusion == 'success'
A red run is exactly what the screenshot capture is expected to produce, so the deliberate redness silently switched off the cask update too. The capture has failed at Capture screenshots on every release run since. The documented intent — "must neither delay nor fail a macOS release" — was being violated one workflow downstream.
update-homebrew is the only workflow triggered by Release macOS app, so this is the whole blast radius.
Resulting behavior
The cask job already downloads the DMG from the published release and verifies its SHA256 against the file it fetched. The only thing it needs from the release run is that the job which produced and published that DMG succeeded. A new gate job reads that job's own conclusion and update-cask runs only when it reports success.
- A genuinely failed macOS build still leaves the cask untouched.
- A failed screenshot capture no longer blocks anything.
- The release run stays red, so the capture stays visible and gets fixed on its own terms. This pull request does not paper over it.
workflow_dispatchstill publishes unconditionally, since an operator asking for it is the assertion.
Needs actions: read to read the triggering run's jobs.
Validation
Two commits, per the repository's regression policy:
7a1bab1addstests/test_release_homebrew_gate.pyonly — 6 assertions fail against the current workflow.13f2441applies the fix — all pass.
The test also pins the brittle half of the arrangement: the gate matches the build job by its API name, which is the mapping key only while no name: overrides it, so the test asserts build-sign-notarize keeps that exact key and no name:. Renaming one without the other would silently stop every future cask update, which is the same class of failure as the original bug. It also asserts the signed build never gains a dependency on the screenshot capture.
shellcheck --shell=bash on the new gate script is clean. tests/test_ci_reusable_workflow_permissions.py and tests/test_ci_self_hosted_guard.sh pass.
Not verified by me: an end-to-end release. That needs a v* tag push, so the first real proof is the next release — or a workflow_dispatch of Update Homebrew Cask, which is also how the currently-missing update should be backfilled.
Separate follow-ups, deliberately not in this pull request
- The cask is still on 0.64.22 right now. Merging this does not backfill it; the next release will. Dispatching
Update Homebrew Caskwith version0.64.25publishes to users immediately, which is a release decision rather than a CI fix, so I have left it alone. Capture screenshotsis still broken and has been since at least 2026-09-14. It is a real failure and worth its own fix.
🤖 Generated with Claude Code
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.
Summary by cubic
Fixes Homebrew cask updates being blocked by failed iOS screenshot captures.
update-homebrew.yml gated the cask update on the entire release run's conclusion, but release.yml deliberately runs the screenshot capture independently of the macOS build, so a failure there must not stop a release — it only turns the run red. That redness silently disabled the cask update for v0.64.23, v0.64.24, and v0.64.25.
Bug Fixes
- Adds a
gatejob that reads thebuild-sign-notarizejob's own conclusion; the cask updates only when that job succeeded. - A genuinely failed macOS build still leaves the cask untouched, and manual dispatch still publishes unconditionally.
- Adds a regression test pinning the gate logic and the job-name mapping.