Skip to content

Pin z3 4.15.4 on CI - #26

Open
evertonfraga wants to merge 1 commit into
mainfrom
ci/pin-z3
Open

evertonfraga wants to merge 1 commit into
mainfrom
ci/pin-z3

Conversation

@evertonfraga

Copy link
Copy Markdown
Contributor

Summary

CI now uses a pinned z3 4.15.4 instead of the z3 4.8.12 from Ubuntu 24.04's apt archive.

  • .github/workflows/ci.yml, "Install z3" step:

    • downloads z3-4.15.4-x64-glibc-2.39.zip from the Z3Prover release (glibc 2.39 is Ubuntu 24.04's);
    • checks its SHA-256 against the value pinned in the step;
    • adds its bin/ to PATH.

    Moving to another version means changing Z3_VERSION and Z3_SHA256 together.

  • The comment on runs-on no longer says the image provides z3.

  • docs/guide/src/installation.md and README.md name the version CI uses. Another version can decide some obligations differently, mostly unknown where 4.15.4 proves or refutes.

Why: the golden suite pins every obligation's verdict (#23), and 4.8.12 leaves obligations unknown that current versions decide. These include existentials with a witness and bounds on uninterpreted bitwise results. #25 first failed CI for that reason.

Testing

  • The SHA-256 check passes on the downloaded asset, and the workflow parses as YAML. The download, extraction and PATH steps run for the first time in this PR's CI.
  • On Fix soundness bugs found by the coherence audit #25's branch (68 fixtures, per-obligation goldens), CI=true bash test/run_tests.sh passes with z3 4.15.4, and also with 4.8.12, 5.1.0 (Homebrew's current stable) and 5.3.1 (latest release). So the pin can move forward without regenerating goldens, as of today.
  • This branch changes no code: main's suite is unchanged and runs under 4.15.4 in this PR's CI.

CI installed the image's apt z3, 4.8.12 (2021). It leaves obligations
unknown that later versions decide (an existential with a witness, bounds
on uninterpreted bitwise results), and the golden suite pins every
verdict, so a fixture written against a current z3 failed CI.

CI now downloads the z3 4.15.4 release for x64 glibc 2.39 (Ubuntu 24.04's
glibc), checks its SHA-256, and puts it on PATH. The installation guide
and README name the version CI uses.

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.

1 participant