Skip to content

Please stop running dune runtest in the CI #29166

@toots

Description

@toots

Hi!

I would like to kindly request the opam reporitory maintainers to stop running dune runtest in the CI.

The way I see it, this is creating an anti-pattern:

  • Tests are intended for the project's internal consumption to make sure that the maintainer can track progress, regression etc.
  • In many cases, running the tests intended to cover a large project will require specific software and hardware setup that only the maintainers should be in charge of understanding/clarifying.
  • The opam packaging CI should only be concerned about the shape of the built package, does it install the right files, builds etc and how a new package impacts the rest of the packaging ecosystem.
  • Running dune runtest in the opam CI creates maintenance burden on opam repository maintainers who then have to figure out if a test failure is legitimate or not even though they have no prior knowledge of the underlying package's logic.
  • ⚠️ On the package maintainer side, and this is perhaps the most important, this creates a big anti-pattern: there is now an vested interest in moving the packaging's test outside of the dune runtest framework to prevent their exposure during the opam package review process. However, the dune testing framework is not just a convention for running tests, it's also a convention for installing testing dependencies so, as much as possible, dune runtest and dune testing dependencies should stay hands-in-hands.

Thanks y'all for y'all hard work and consideration and happy new year! 🎉

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions