Skip to content

CI: install z3 from its release on macOS - #5038

Merged
feliperodri merged 1 commit into
model-checking:mainfrom
feliperodri:macos-ci-z3
Oct 21, 2026
Merged

feliperodri merged 1 commit into
model-checking:mainfrom
feliperodri:macos-ci-z3

Conversation

@feliperodri

Copy link
Copy Markdown
Member

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 install compiles from source on both of our macOS runners. z3 5.3.1 came out on 2026-10-15, the day after main'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' in src/ast/ast.cpp). That fails regression (macos-14), verify-std (macos-14) and BuildBundle-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 (every macos-* setup directory links to it):

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 pip use is in the Ubuntu benchcomp job). CBMC stays on Homebrew: diffblue's tap has 6.11.0 bottles for both arm64_sonoma and Intel sonoma.

Not addressed here: GitHub retires the macOS Intel runners in 2027, so macos-15-intel will need replacing at some point.

…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.
@feliperodri
feliperodri requested review from a team as code owners October 21, 2026 19:49
@feliperodri feliperodri added the [I] CI / Infrastructure Work done to CI, tests and infrastructure. label Oct 21, 2026
@feliperodri
feliperodri requested a balanced review from Copilot October 21, 2026 19:55

@rajath-mk rajath-mk left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good as long as CI and local builds pass. thanks

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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

@feliperodri
feliperodri added this pull request to the merge queue Oct 21, 2026
Merged via the queue into model-checking:main with commit 0be06f3 Oct 21, 2026
34 of 35 checks passed
@feliperodri
feliperodri deleted the macos-ci-z3 branch October 21, 2026 21:17
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[I] CI / Infrastructure Work done to CI, tests and infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants