Skip to content

CI: test yices2 against libpoly on pull requests - #119

Merged
ahmed-irfan merged 2 commits into
masterfrom
ci-yices2-downstream
Nov 20, 2026
Merged

ahmed-irfan merged 2 commits into
masterfrom
ci-yices2-downstream

Conversation

@ahmed-irfan

Copy link
Copy Markdown
Member

Adds a yices2 downstream workflow so libpoly PRs are checked against yices2, which depends on libpoly.

For each PR it:

  • builds and installs libpoly from the PR (Python bindings and libpoly tests off),
  • builds yices2 with --enable-mcsat (plus CUDD) against it, pinned to one yices2 commit (master by default; a manual run can pick another ref),
  • runs yices2's make check, make test and make check-api in debug and release mode, using the same settings as yices2's own CI.

If a job fails, a baseline job repeats the run with the PR's base commit and writes into the step summary whether yices2 also fails there (probably not this PR's fault) or passes (this PR likely broke yices2).

Notes:

  • No secrets and contents: read only, so it also runs for PRs from forks.
  • Linux/gcc only for now. yices2's own CI covers macOS, clang and --enable-thread-safety.
  • I'd leave it as a non-required check until it has proven stable.
  • Not yet run on GitHub: this PR's own checks are its first real run. If the yices2 or CUDD build turns out flaky with -j, drop it.

🤖 Generated with Claude Code

On pull requests, build and install libpoly from the PR, build yices2
(master, pinned to one commit) with --enable-mcsat against it and run
yices2's check, test and check-api targets in debug and release mode.
If that fails, a baseline job repeats the run with the PR's base commit
and reports in the step summary whether the PR likely caused the failure.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@Ovascos

Ovascos commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

Good idea, but for this test it suffices to check yices with the devel build (optimized build with assertions).
Also make sure that libpoly is built with assertions enabled.

Address review: test yices2 only in devel mode (optimised, assertions
on) and build libpoly with -O2 but without -DNDEBUG so its assertions
are active. Drop the debug/release matrix.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@ahmed-irfan

Copy link
Copy Markdown
Member Author

Thanks, done: yices2 is now built and tested only in devel mode (single job, no matrix), and libpoly is built with -O2 and without -DNDEBUG so its assertions are enabled. I checked the generated compile flags locally. The baseline job uses the same settings. I gave devel the same time limit and excluded regression test that yices2's own CI uses for debug, since it also has assertions on; tell me if you'd rather not.

@ahmed-irfan
ahmed-irfan merged commit dc56867 into master Nov 20, 2026
19 checks passed
@ahmed-irfan
ahmed-irfan deleted the ci-yices2-downstream branch November 20, 2026 20:45
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.

2 participants