ocaml-ci icon indicating copy to clipboard operation
ocaml-ci copied to clipboard

Test the opam file as well

Open kit-ty-kate opened this issue 4 years ago • 5 comments

The content of the opam file is never tested by ocaml-ci. Several users have had the issue in the past where dune build works fine but dune build -p <pkg> does not (e.g. merlin's testsuite)

kit-ty-kate avatar Feb 25 '21 12:02 kit-ty-kate

Does this need to be done on every platform? It doubles the build work - wouldn’t it be better as a next pipeline stage after the other builds have succeeded (for example, just on Ubuntu)?

dra27 avatar Feb 25 '21 13:02 dra27

This will also fail if not all the packages are available on that particular switch. I think we need something more on the lines of the discussion in #297 where an explicit subset of packages can be passed through from the solver to the platform.

avsm avatar Feb 25 '21 20:02 avsm

This will likely also cause problems for vendored dependencies (that will be removed before the final release to opam-repository).

Is this a big problem? I'd expect any problems here would be picked up at release time by dune-release and would be easily fixed then.

talex5 avatar Mar 01 '21 09:03 talex5

Is this something that we still want? If no, shouldn't we close this PR?

maiste avatar Jan 10 '23 14:01 maiste

Is this a big problem? I'd expect any problems here would be picked up at release time by dune-release and would be easily fixed then.

If we wanted this functionality to continuously check the "releasability" of packages, then it should be a limited linting step that applies to a single linux distro (Ubuntu) and runs after the other builds have succeeded. Potentially only running on the default branch rather than all git refs.

tmcgilchrist avatar Feb 03 '23 00:02 tmcgilchrist

Closing due to the age of this PR and the various concerns raised. If we move forward with this, it would be along the lines of https://github.com/ocurrent/ocaml-ci/pull/314#issuecomment-785890604 .

shonfeder avatar Jul 09 '24 20:07 shonfeder