MarshallOfSound

#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

Release Notes

Notes: none

Backports

43-x-y
Merged
PR Number
#53462
Merged At
Sep 3, 2026, 12:03:31 PM
Released In
Not yet
Release Date
Not yet
44-x-y
Merged
PR Number
#53461
Merged At
Sep 3, 2026, 12:03:54 PM
Released In
Not yet
Release Date
Not yet
45-x-y
Merged
PR Number
#53463
Merged At
Sep 3, 2026, 12:03:28 PM
Released In
Not yet
Release Date
Not yet

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