#53449: ci: don't fail the macOS build when Homebrew can't reach its API during cleanup
Merged
Created: Sep 3, 2026, 3:25:07 AM
Merged: Sep 3, 2026, 10:18:08 AM
4 comments
Target: main
Description of Change
The macOS free-space action uninstalls a handful of Homebrew packages to reclaim disk before the build. brew uninstall / brew autoremove still fetch formula metadata from formulae.brew.sh, so when a hosted runner had a DNS blip the cleanup step exited 1 and took the whole macOS build job with it (this is what failed main on 2026-08-29: curl: (6) Could not resolve host: formulae.brew.sh).
The rm -rf lines above do the real reclaiming; the brew portion is a few GB of nice-to-have. This makes the two brew commands best-effort so a network hiccup there can't fail a build. The step itself stays required.
Checklist
- I have built and tested this change
- I have filled out the PR description
- I have reviewed and verified the changes
Release Notes
Notes: none
Backports
Semver Impact
Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.
Semantic Versioning helps users understand the impact of updates:
- Major (X.y.z): Breaking changes that may require code modifications
- Minor (x.Y.z): New features that maintain backward compatibility
- Patch (x.y.Z): Bug fixes that don't change the API
- None: Changes that don't affect using facing parts of Electron