Skip to content

Use non-deprecated qcheck combinators#2059

Merged
sim642 merged 1 commit into
masterfrom
qcheck-0.90
Jun 17, 2026
Merged

Use non-deprecated qcheck combinators#2059
sim642 merged 1 commit into
masterfrom
qcheck-0.90

Conversation

@sim642

@sim642 sim642 commented Jun 16, 2026

Copy link
Copy Markdown
Member

The unlocked CI jobs (and opam-repository CI) show a bunch of deprecation warnings for qcheck on newer versions.
This upgrades Goblint to those newer versions with non-deprecated combinator names.

@sim642 sim642 added this to the v2.9.0 milestone Jun 16, 2026
@sim642 sim642 added testing setup Dependencies, CI, releasing labels Jun 16, 2026
Copilot AI review requested due to automatic review settings June 16, 2026 12:51

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.

Pull request overview

This pull request updates Goblint’s QCheck usage to avoid deprecation warnings on newer QCheck releases by switching to the non-deprecated combinator names and bumping the minimum/locked QCheck versions accordingly.

Changes:

  • Replace deprecated QCheck.small_list with QCheck.list_small in domain arbitrary generators.
  • Replace deprecated QCheck.oneofl / QCheck.frequency with QCheck.oneof_list / QCheck.oneof_weighted.
  • Update opam metadata to require newer QCheck (qcheck-core >= 0.90) and lock to 0.91.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/domain/setDomain.ml Updates deprecated list/choice combinators used in arbitrary generators.
src/domain/hoareDomain.ml Updates deprecated list combinator used in arbitrary generator.
src/common/domains/printable.ml Replaces frequency with oneof_weighted for weighted generator choice.
src/cdomain/value/cdomains/int/intervalSetDomain.ml Updates deprecated list combinator used in generator construction.
src/cdomain/value/cdomains/int/enumsDomain.ml Replaces frequency with oneof_weighted in generator definition.
src/cdomain/value/cdomains/int/defExcDomain.ml Replaces frequency with oneof_weighted in generator definition.
goblint.opam.locked Locks qcheck-core / qcheck-ounit to 0.91.
goblint.opam Raises minimum required qcheck-core version to >= 0.90.
dune-project Raises minimum required qcheck-core version to >= 0.90 for generated opam metadata.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sim642 sim642 merged commit d689470 into master Jun 17, 2026
39 checks passed
@sim642 sim642 deleted the qcheck-0.90 branch June 17, 2026 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

setup Dependencies, CI, releasing testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants