Repository navigation
CI: install z3 from its release on macOS - #5038
Merged
Merged
Conversation
…with brew Homebrew no longer ships bottles for macOS 14 or for Intel Macs, so brew install builds from source there. z3 5.3.1, released 2026-10-15, does not compile with the macos-14 runner's clang, which fails every PR's macos-14 jobs, and fail-fast cancels the rest. On macos-15-intel, building Python and its dependencies already took most of the 29-minute setup. Install z3 from the official release binaries, as cvc5 is, and drop the brew Python install: it was a workaround for Homebrew upgrading the runner's Python when installing other formulae, and nothing installed here uses Homebrew's Python any more.
rajath-mk
approved these changes
Oct 21, 2026
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No blocking issues were identified, both release assets exist, and existing macOS CI jobs exercise the changed setup.
No open issues 🎉
What changed in this PR
Updates macOS dependency setup to avoid Homebrew source-build failures and reduce CI setup time.
Changes:
- Installs architecture-specific Z3 5.3.1 release binaries.
- Removes the Homebrew Python installation workaround.
| File | Description |
|---|---|
| scripts/setup/macos/install_deps.sh | Downloads Z3 binaries, checks their version, and removes Homebrew Python setup. |
Review effort: Balanced
Merged
via the queue into
model-checking:main
with commit Oct 21, 2026
0be06f3
34 of 35 checks passed
v3risec
pushed a commit
to v3risec/kani
that referenced
this pull request
Nov 10, 2026
…#5039) Depends on model-checking#5038. Until that merges, this PR's diff also shows its commit; only the second commit (`Pin Z3 in kani-dependencies ...`) is new here. model-checking#5038 fixes CI by installing a pinned Z3 release on macOS instead of whatever Homebrew has. That stops new Z3 releases from breaking CI on their own, but nothing would ever move the pin forward. This makes the Z3 pin work like the CBMC one: - `Z3_VERSION` moves into `kani-dependencies`, next to `CBMC_VERSION` and `KISSAT_VERSION`, and `scripts/setup/macos/install_deps.sh` reads it from there. - A new weekly workflow, `z3-update.yml`, modelled on `cbmc-update.yml`, opens a PR that bumps `Z3_VERSION` when Z3 publishes a new (non-prerelease) release. If the release lacks the two macOS archives the setup script downloads (`arm64-osx-13.3` and `x64-osx-13.3`), it files an issue instead. One difference from the CBMC job: it doesn't run the regression suite itself. Only the macOS setup installs this Z3 (Ubuntu uses the distribution's package), so an Ubuntu run wouldn't test it; the bump PR's macOS CI jobs are the test. As with the other automatic update PRs, created with the workflow token, CI on those PRs needs a maintainer to trigger it. I dry-ran the workflow's shell step locally against Z3's real releases: with the pin at 5.3.1 it does nothing, and with the pin set back to 5.2.0 it bumps `kani-dependencies` to 5.3.1 and selects `create_pr`. The PR and issue steps themselves only run on `model-checking/kani`, so they get exercised on the first scheduled run (or a manual `workflow_dispatch`). --------- Signed-off-by: Felipe R. Monteiro <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every open PR currently fails CI on the macOS jobs (for example #5037). This fixes it; once it lands, the other PRs only need a rerun.
Why it broke. Homebrew stopped shipping bottles for macOS 14 (now "Tier 3") and for Intel Macs, so
brew installcompiles from source on both of our macOS runners. z3 5.3.1 came out on 2026-10-15, the day aftermain's last green run, and doesn't compile with the macos-14 runner's clang (no known conversion from 'symbol' to 'symbol_table<int>::key_data'insrc/ast/ast.cpp). That failsregression (macos-14),verify-std (macos-14)andBuildBundle-MacOs-aarch64; matrix fail-fast then cancels the Linux and Intel jobs, which show up red as well.The fix, in
scripts/setup/macos/install_deps.sh(everymacos-*setup directory links to it):z3-5.3.1-{arm64,x64}-osx-13.3.zip), the same way the script already installs cvc5. The binary only links system libraries, so copyingbin/z3is enough.brew install python@3. It was a workaround for Homebrew upgrading the runner's Python while installing other formulae (Symlink failures when installing azure-cli brew package installs dependency on Python 3.11 causes regression and build breaks. actions/runner-images#9471). Nothing installed here uses Homebrew's Python any more, and on macos-15-intel compiling it and its dependencies took most of the 29-minute setup on the last green run.What to check. This PR's own macOS jobs are the test. The one risk is a macOS step that needed a newer Python than the runner image ships; I didn't find one (the only
pipuse is in the Ubuntu benchcomp job). CBMC stays on Homebrew: diffblue's tap has 6.11.0 bottles for botharm64_sonomaand Intelsonoma.Not addressed here: GitHub retires the macOS Intel runners in 2027, so
macos-15-intelwill need replacing at some point.