Skip to content

ci: fix Intel Mac build by skipping Homebrew dependencies - #208

Open
youneedgreg wants to merge 1 commit into
google:copybara_pushfrom
youneedgreg:fix/intel-mac-ci
Open

youneedgreg wants to merge 1 commit into
google:copybara_pushfrom
youneedgreg:fix/intel-mac-ci

Conversation

@youneedgreg

Copy link
Copy Markdown

What changed and why

Fixes #198.

The macos-15-intel job fails in Install system dependencies (on Mac). The openssl@3 symlink error in the log is a side effect rather than the cause, so the --force and --overwrite options suggested in the issue wouldn't fix it.

Homebrew stopped providing bottles for Intel Macs, so brew install protobuf@21 ffmpeg compiles ffmpeg's dependency tree from source. In the failing run that step ran for about 57 minutes, then crashed with NameError: uninitialized constant CurlDownloadStrategy::Timeout.

  • ci: skip Homebrew dependencies on Intel Mac runner: the Mac install step now runs on ARM64 only. The later CI steps don't need either tool on Intel: the generated _pb2 modules are checked in, and mediapy only calls ffmpeg when encoding video, which the test suite passes without on this runner.
  • docs: format README with mdformat: the README edit in 92fa312 made mdformat README.md docs --check fail on every job, so no PR based on the current branch can pass. This is formatting only, with no wording changes.

Local Intel Mac setup still needs its own solution, since docs/setup/mac.md still recommends brew install ffmpeg. I've left that out of this PR.

How it was tested

I ran the workflow on my fork from these commits, plus a temporary commit that added a push trigger and fail-fast: false: run 41497072585.

Job Result Tests
macos-15-intel, 3.11 pass (6.5 min) 878 passed, 38 skipped
macos-latest, 3.11 pass 878 passed, 38 skipped
ubuntu-latest, 3.11 pass 879 passed, 37 skipped
ubuntu-latest, 3.10.15 pass 879 passed, 37 skipped

The Intel job has the same counts as macos-latest, which still installs ffmpeg, so skipping it doesn't change which tests run on Mac.

Related

ubuntu-latest, 3.10.15 failed at Set up Python upstream (#206, with a fix in #207) but passed in my fork runs, so that failure may depend on which runner image a job gets. If it fails here, fail-fast will cancel the other jobs, so this PR may need #207 to show green.

@s2t2

s2t2 commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator

ok thanks @youneedgreg for the fix. we will get this in after #207.

@s2t2 s2t2 mentioned this pull request Nov 6, 2026
2 tasks done
@s2t2

s2t2 commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator

I see the Mac Intel build now gets cancelled instead of running. Please advise.
https://github.com/google/sbsim/actions/runs/41498865499/job/128093690738?pr=208

@s2t2

s2t2 commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator

Also, I just updated / fixed the README formatting, so please rebase when you get a chance

@youneedgreg

Copy link
Copy Markdown
Author

Thanks @s2t2! The Intel Mac job wasn't cancelled by this change. The ubuntu-latest, 3.10.15 job failed first, because that Python version isn't available on the new Ubuntu runner image anymore, and the matrix's default fail-fast then cancelled every other job, including macos-15-intel. You fixed the version in d20ab07, so I've rebased onto the latest copybara_push, which also picks up your README fix. My duplicate README formatting commit dropped out in the rebase, so this PR is now just the one build.yaml change. Could you approve the workflow run? The Intel Mac job should now skip the Homebrew step and run the tests.

@s2t2

s2t2 commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Thanks, looks like we are seeing this issue now:

=> ffmpeg
ffmpeg-full includes additional tools and libraries that are not included in the regular ffmpeg formula.

If there is a way to solve, let's pursue that. Otherwise if we are not using ffmpeg for the build process, maybe we just comment out ffmpeg installation and make a comment in the workflow file and in issue #198

This branch has not been deployed

No deployments
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.

Failing Mac Build

2 participants