Repository navigation
Pin Z3 in kani-dependencies and bump it automatically - #5039
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.
Move the Z3 version the macOS setup installs into kani-dependencies, next to the CBMC and Kissat pins, and add a scheduled workflow that opens a PR bumping it when Z3 publishes a release, like cbmc-update.yml does for CBMC. The job only checks that the release has the two macOS archives the setup script downloads, and files an issue if it does not; the bump PR's macOS CI jobs are what test the new version.
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
3 open issues
The issue-existence check is brittle because it relies on grepping the JSON output for the string… · New Pinning an Action to@mainis a supply-chain risk because the referenced code can change without… · Newsource kani-dependenciesdepends on the current working directory and can fail if the script is… · New
What changed in this PR
Pins Z3 versioning in kani-dependencies and introduces an automated weekly workflow to bump the pin when new Z3 releases are published, reducing CI breakage from upstream changes.
Changes:
- Move
Z3_VERSIONintokani-dependenciesand have macOS setup source it. - Add a scheduled GitHub Actions workflow to open PRs for Z3 version bumps (or issues when required macOS assets are missing).
- Add basic validation that
Z3_VERSIONis set before downloading Z3 on macOS.
| File | Description |
|---|---|
| scripts/setup/macos/install_deps.sh | Reads Z3_VERSION from kani-dependencies and validates it before constructing download URLs. |
| kani-dependencies | Adds Z3_VERSION alongside other tool pins. |
| .github/workflows/z3-update.yml | New scheduled workflow that detects new Z3 releases and opens a PR (or issue) to update Z3_VERSION. |
Review effort: Lite
- Check for an existing Z3 upgrade issue with gh --jq length instead of grepping JSON. - Pin dacbd/create-issue-action to the commit of its v2.0.0 release instead of main. - Resolve kani-dependencies relative to install_deps.sh and source it with '.'. Signed-off-by: Felipe R. Monteiro <[email protected]>
rajath-mk
left a comment
There was a problem hiding this comment.
Dry-ran the "Compare Z3 versions" step with gh stubbed to real release data: it picks create_pr and bumps the pin to 5.3.3 (released Oct 29 with both 13.3 zips), switches to create_issue when those archives are missing, and does nothing when the failure issue already exists. install_deps.sh also resolves kani-dependencies from any working directory. Approving
bf9c58e

Depends on #5038. Until that merges, this PR's diff also shows its commit; only the second commit (
Pin Z3 in kani-dependencies ...) is new here.#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_VERSIONmoves intokani-dependencies, next toCBMC_VERSIONandKISSAT_VERSION, andscripts/setup/macos/install_deps.shreads it from there.z3-update.yml, modelled oncbmc-update.yml, opens a PR that bumpsZ3_VERSIONwhen Z3 publishes a new (non-prerelease) release. If the release lacks the two macOS archives the setup script downloads (arm64-osx-13.3andx64-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-dependenciesto 5.3.1 and selectscreate_pr. The PR and issue steps themselves only run onmodel-checking/kani, so they get exercised on the first scheduled run (or a manualworkflow_dispatch).