ocurrent / ocaml-ci

A CI for OCaml projects

Home Page:https://ocaml.ci.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spurious CI failures

hannesm opened this issue · comments

First of all, thanks for providing a free CI service for some OCaml projects :)

Context

Some repositories are using OCaml-CI, and I observed spurious strange unrelated errors that I'd like to inform you about.

The errors appear in mirage/mirage#1417 mirage/awa-ssh#67

Output number 1 from https://ocaml.ci.dev/github/mirage/mirage/commit/c1a1f3c0e275121e9e1f7858eb8469bce9cd586f/variant/debian-11-4.10_opam-2.1

2023-06-19 12:22.38: New job: test mirage/mirage https://github.com/mirage/mirage.git#refs/pull/1417/head (c1a1f3c0e275121e9e1f7858eb8469bce9cd586f) (linux-x86_64:debian-11-4.10_opam-2.1)
Base: ocaml/opam@sha256:365448297e57d13a8211968e328ce0f33247dc24e1a814732e804df77154bf33
Opam project build
To reproduce locally:
git clone --recursive "https://github.com/mirage/mirage.git" && cd "mirage" && git fetch origin "refs/pull/1417/head" && git reset --hard c1a1f3c0
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam@sha256:365448297e57d13a8211968e328ce0f33247dc24e1a814732e804df77154bf33
# debian-11-4.10_opam-2.1
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
WORKDIR /src
RUN sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam
RUN opam init --reinit -ni
WORKDIR /src
RUN sudo chown opam /src
RUN cd ~/opam-repository && (git cat-file -e d62ae43a864a59218cb6a4db6bac3e1935213ff9 || git fetch origin master) && git reset -q --hard d62ae43a864a59218cb6a4db6bac3e1935213ff9 && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 mirage.opam mirage-runtime.opam functoria.opam functoria-runtime.opam ./
RUN opam pin add -yn mirage.dev './' && \
    opam pin add -yn mirage-runtime.dev './' && \
    opam pin add -yn functoria.dev './' && \
    opam pin add -yn functoria-runtime.dev './'
ENV DEPS="angstrom.0.15.0 base-bigarray.base base-threads.base base-unix.base bechamel.dev bechamel-js.dev bechamel-notty.dev bechamel-perf.dev bigstringaf.0.9.1 conf-linux-libc-dev.0 cppo.1.6.9 csexp.1.5.2 cstruct.6.2.0 dune.3.8.1 dune-configurator.3.8.1 fmt.0.9.0 hex.1.5.0 json-data-encoding.1.0.0 jsonm.1.0.2 mperf.dev notty.0.2.3 ocaml.4.14.1 ocaml-base-compiler.4.14.1 ocaml-config.2 ocaml-options-vanilla.1 ocaml-syntax-shims.1.0.0 ocamlbuild.0.14.2 ocamlfind.1.9.6 result.1.5 rresult.0.7.0 stringext.1.6.0 topkg.1.0.7 uri.4.2.0 uutf.1.0.3"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.1 --depext-only -y mirage.dev mirage-runtime.dev functoria.dev functoria-runtime.dev $DEPS
RUN opam install $DEPS
COPY --chown=1000:1000 . /src
RUN opam exec -- dune build @install @check @runtest && rm -rf _build
END-OF-DOCKERFILE
docker build .
END-REPRO-BLOCK
2023-06-19 12:22.38: Using cache hint "mirage/mirage-ocaml/opam@sha256:365448297e57d13a8211968e328ce0f33247dc24e1a814732e804df77154bf33-debian-11-4.10_opam-2.1-f448458715cfa5cf13cb18fe9420b3f9"
2023-06-19 12:22.38: Using OBuilder spec:
((from ocaml/opam@sha256:365448297e57d13a8211968e328ce0f33247dc24e1a814732e804df77154bf33)
 (comment debian-11-4.10_opam-2.1)
 (user (uid 1000) (gid 1000))
 (env CLICOLOR_FORCE 1)
 (env OPAMCOLOR always)
 (workdir /src)
 (run (shell "sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam"))
 (run (shell "opam init --reinit -ni"))
 (workdir /src)
 (run (shell "sudo chown opam /src"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "cd ~/opam-repository && (git cat-file -e d62ae43a864a59218cb6a4db6bac3e1935213ff9 || git fetch origin master) && git reset -q --hard d62ae43a864a59218cb6a4db6bac3e1935213ff9 && git log --no-decorate -n1 --oneline && opam update -u"))
 (copy (src mirage.opam mirage-runtime.opam functoria.opam functoria-runtime.opam)
       (dst ./))
 (run (network host)
      (shell  "opam pin add -yn mirage.dev './' && \
             \nopam pin add -yn mirage-runtime.dev './' && \
             \nopam pin add -yn functoria.dev './' && \
             \nopam pin add -yn functoria-runtime.dev './'"))
 (env DEPS "angstrom.0.15.0 base-bigarray.base base-threads.base base-unix.base bechamel.dev bechamel-js.dev bechamel-notty.dev bechamel-perf.dev bigstringaf.0.9.1 conf-linux-libc-dev.0 cppo.1.6.9 csexp.1.5.2 cstruct.6.2.0 dune.3.8.1 dune-configurator.3.8.1 fmt.0.9.0 hex.1.5.0 json-data-encoding.1.0.0 jsonm.1.0.2 mperf.dev notty.0.2.3 ocaml.4.14.1 ocaml-base-compiler.4.14.1 ocaml-config.2 ocaml-options-vanilla.1 ocaml-syntax-shims.1.0.0 ocamlbuild.0.14.2 ocamlfind.1.9.6 result.1.5 rresult.0.7.0 stringext.1.6.0 topkg.1.0.7 uri.4.2.0 uutf.1.0.3")
 (env CI true)
 (env OCAMLCI true)
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "opam update --depexts && opam install --cli=2.1 --depext-only -y mirage.dev mirage-runtime.dev functoria.dev functoria-runtime.dev $DEPS"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "opam install $DEPS"))
 (copy (src .) (dst /src))
 (run (shell "opam exec -- dune build @install @check @runtest && rm -rf _build"))
)
2023-06-19 12:22.38: Waiting for resource in pool OCluster
2023-06-19 12:22.38: Waiting for worker…
2023-06-19 12:34.34: Got resource from pool OCluster
Building on phoebe.caelum.ci.dev
All commits already cached
HEAD is now at c1a1f3c0 ocamlformat
(from ocaml/opam@sha256:365448297e57d13a8211968e328ce0f33247dc24e1a814732e804df77154bf33)
2023-06-19 12:34.34 ---> using "7fa96fba3db15e9d73a9576165ad00e2068e8d68123ba19608939d796aacbe2d" from cache
/: (comment debian-11-4.10_opam-2.1)
/: (user (uid 1000) (gid 1000))
/: (env CLICOLOR_FORCE 1)
/: (env OPAMCOLOR always)
/: (workdir /src)
/src: (run (shell "sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam"))
2023-06-19 12:34.34 ---> using "16d0c39065389b67b43cc4ea94102f5db1414e9fcc72d4ca28a6fddad8605686" from cache
/src: (run (shell "opam init --reinit -ni"))
Configuring from /home/opam/.opamrc and then from built-in defaults.
Checking for available remotes: rsync and local, git.
  - you won't be able to use mercurial repositories unless you install the hg command on your system.
  - you won't be able to use darcs repositories unless you install the darcs command on your system.
This development version of opam requires an update to the layout of /home/opam/.opam from version 2.0 to version 2.1, which can't be reverted.
You may want to back it up before going further.
Continue? [Y/n] y
Format upgrade done.
<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
2023-06-19 12:34.34 ---> using "b48a9b61887f46eb43845d41796ee092fd11eee1140c43554838e066668bde75" from cache
/src: (workdir /src)
/src: (run (shell "sudo chown opam /src"))
2023-06-19 12:34.34 ---> using "137c106d8e29cf58349e110b5b75f8046bfc7c9cd0c7d447835d16f37f192f7c" from cache
/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
           (network host)
           (shell "cd ~/opam-repository && (git cat-file -e d62ae43a864a59218cb6a4db6bac3e1935213ff9 || git fetch origin master) && git reset -q --hard d62ae43a864a59218cb6a4db6bac3e1935213ff9 && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
 * branch                  master     -> FETCH_HEAD
   8e3f9bbe3f..9db290fb8a  master     -> origin/master
d62ae43a86 Constrain all odoc versions that would allow OCaml 5.1
<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
The following actions will be performed:
  - recompile ocaml-base-compiler 4.10.2* [upstream or system changes]
  - recompile ocaml-config        1       [uses ocaml-base-compiler]
  - recompile ocaml               4.10.2  [uses ocaml-base-compiler]
  - recompile opam-depext         1.2.1-1 [uses ocaml]
===== 4 to recompile =====
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved opam-depext.1.2.1-1  (cached)
-> retrieved ocaml-base-compiler.4.10.2  (cached)
-> removed   opam-depext.1.2.1-1
-> removed   ocaml.4.10.2
-> removed   ocaml-config.1
-> removed   ocaml-base-compiler.4.10.2
-> installed ocaml-base-compiler.4.10.2
-> installed ocaml-config.1
-> installed ocaml.4.10.2
-> installed opam-depext.1.2.1-1
Done.
<><> opam-depext.1.2.1-1 installed successfully <><><><><><><><><><><><><><><><>
=> opam-depext is unnecessary when used with opam >= 2.1. Please use opam install directly instead
# Run eval $(opam env) to update the current shell environment
2023-06-19 12:34.34 ---> using "73587e5bdb7a97a4f28cef9c0d46d7163ee8a940821a6ff1f758650fda79afda" from cache
/src: (copy (src mirage.opam mirage-runtime.opam functoria.opam functoria-runtime.opam)
            (dst ./))
2023-06-19 12:34.34 ---> using "5c327e2319e28dc2faf28ba4c37fc2e56aae00478411a8869414d7c23b16af81" from cache
/src: (run (network host)
           (shell  "opam pin add -yn mirage.dev './' && \
                  \nopam pin add -yn mirage-runtime.dev './' && \
                  \nopam pin add -yn functoria.dev './' && \
                  \nopam pin add -yn functoria-runtime.dev './'"))
[mirage.dev] synchronised (file:///src)
mirage is now pinned to file:///src (version dev)
[mirage-runtime.dev] synchronised (file:///src)
mirage-runtime is now pinned to file:///src (version dev)
[functoria.dev] synchronised (file:///src)
functoria is now pinned to file:///src (version dev)
[functoria-runtime.dev] synchronised (file:///src)
functoria-runtime is now pinned to file:///src (version dev)
2023-06-19 12:34.34 ---> using "1c4e69aaf17f4d74d192b8b9ad08ea0d360c70e58f0d5af35958f297341bb2ec" from cache
/src: (env DEPS "angstrom.0.15.0 base-bigarray.base base-threads.base base-unix.base bechamel.dev bechamel-js.dev bechamel-notty.dev bechamel-perf.dev bigstringaf.0.9.1 conf-linux-libc-dev.0 cppo.1.6.9 csexp.1.5.2 cstruct.6.2.0 dune.3.8.1 dune-configurator.3.8.1 fmt.0.9.0 hex.1.5.0 json-data-encoding.1.0.0 jsonm.1.0.2 mperf.dev notty.0.2.3 ocaml.4.14.1 ocaml-base-compiler.4.14.1 ocaml-config.2 ocaml-options-vanilla.1 ocaml-syntax-shims.1.0.0 ocamlbuild.0.14.2 ocamlfind.1.9.6 result.1.5 rresult.0.7.0 stringext.1.6.0 topkg.1.0.7 uri.4.2.0 uutf.1.0.3")
/src: (env CI true)
/src: (env OCAMLCI true)
/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
           (network host)
           (shell "opam update --depexts && opam install --cli=2.1 --depext-only -y mirage.dev mirage-runtime.dev functoria.dev functoria-runtime.dev $DEPS"))
+ /usr/bin/sudo "apt-get" "update"
- Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
- Get:2 http://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]
- Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
- Get:4 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages [244 kB]
- Get:5 http://deb.debian.org/debian bullseye-updates/main amd64 Packages.diff/Index [18.5 kB]
- Get:6 http://deb.debian.org/debian bullseye-updates/main amd64 Packages T-2023-05-24-2006.01-F-2023-05-24-2006.01.pdiff [362 B]
- Get:6 http://deb.debian.org/debian bullseye-updates/main amd64 Packages T-2023-05-24-2006.01-F-2023-05-24-2006.01.pdiff [362 B]
- Fetched 472 kB in 1s (941 kB/s)
- Reading package lists...
-
[ERROR] Package bechamel has no version dev.
[ERROR] Package bechamel-js has no version dev.
[ERROR] Package bechamel-notty has no version dev.
[ERROR] Package bechamel-perf has no version dev.
[ERROR] Package mperf has no version dev.
"/bin/bash" "-c" "opam update --depexts && opam install --cli=2.1 --depext-only -y mirage.dev mirage-runtime.dev functoria.dev functoria-runtime.dev $DEPS" failed with exit status 5
2023-06-19 12:34.43: Job failed: Failed: Build failed

No idea how "bechamel" came into that DEPS, esp. in version dev.

Output number 2 from https://ocaml.ci.dev/github/mirage/awa-ssh/commit/f82537aef9cc1cbd7eac564da65e7f7e53e1f5d0/variant/alpine-3.17-4.14_opam-2.1

2023-06-19 11:34.04: New job: test mirage/awa-ssh https://github.com/mirage/awa-ssh.git\#refs/pull/67/head (f82537aef9cc1cbd7eac564da65e7f7e53e1f5d0) (linux-x86_64:alpine-3.17-4.14_opam-2.1)
Base: ocaml/opam@sha256:027f9862a1e4d42024f78fd0ea9478c003fe75d4da18fe18da8847f7f6448efc
Opam project build
To reproduce locally:
git clone --recursive "https://github.com/mirage/awa-ssh.git" && cd "awa-ssh" && git fetch origin "refs/pull/67/head" && git reset --hard f82537ae
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam@sha256:027f9862a1e4d42024f78fd0ea9478c003fe75d4da18fe18da8847f7f6448efc
# alpine-3.17-4.14_opam-2.1
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
WORKDIR /src
RUN sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam
RUN opam init --reinit -ni
WORKDIR /src
RUN sudo chown opam /src
RUN cd ~/opam-repository && (git cat-file -e d62ae43a864a59218cb6a4db6bac3e1935213ff9 || git fetch origin master) && git reset -q --hard d62ae43a864a59218cb6a4db6bac3e1935213ff9 && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 awa.opam awa-mirage.opam ./
RUN opam pin add -yn awa.dev './' && \
    opam pin add -yn awa-mirage.dev './'
ENV DEPS="alcotest.dev alcotest-async.dev alcotest-js.dev alcotest-lwt.dev alcotest-mirage.dev astring.0.8.5 async.v0.15.0 async_kernel.v0.15.0 async_rpc_kernel.v0.15.0 async_unix.v0.15.0 base.v0.15.0 base-bigarray.base base-bytes.base base-threads.base base-unix.base base_bigstring.v0.15.0 base_quickcheck.v0.15.0 bin_prot.v0.15.0 biniou.1.2.0 cmdliner.1.1.0 conf-which.1 core.v0.15.0 core_kernel.v0.15.0 core_unix.v0.15.0 cppo.1.6.1 dune.3.0.2 dune-configurator.2.3.0 dune-private-libs.2.3.0 duration.0.1.0 easy-format.1.0.1 expect_test_helpers_core.v0.15.0 fieldslib.v0.15.0 fmt.0.8.7 int_repr.v0.15.0 jane-street-headers.v0.15.0 jbuilder.1.0+beta20.1 js_of_ocaml-compiler.3.11.0 jst-config.v0.15.0 logs.0.6.3 lwt.5.4.0 menhir.20200123 menhirLib.20200123 menhirSdk.20200123 mirage-clock.2.0.0 mirage-device.1.0.0 mmap.1.1.0 num.1.0 ocaml.4.13.1 ocaml-base-compiler.4.13.1 ocaml-compiler-libs.v0.11.0 ocaml-config.2 ocaml-options-vanilla.1 ocaml-syntax-shims.1.0.0 ocaml_intrinsics.v0.15.0 ocamlbuild.0.14.0 ocamlfind.1.9.1 ocplib-endian.1.0 parsexp.v0.15.0 ppx_assert.v0.15.0 ppx_base.v0.15.0 ppx_bench.v0.15.0 ppx_bin_prot.v0.15.0 ppx_cold.v0.15.0 ppx_compare.v0.15.0 ppx_custom_printf.v0.15.0 ppx_derivers.1.0 ppx_disable_unused_warnings.v0.15.0 ppx_enumerate.v0.15.0 ppx_expect.v0.15.0 ppx_fields_conv.v0.15.0 ppx_fixed_literal.v0.15.0 ppx_hash.v0.15.0 ppx_here.v0.15.0 ppx_ignore_instrumentation.v0.15.0 ppx_inline_test.v0.15.0 ppx_jane.v0.15.0 ppx_let.v0.15.0 ppx_log.v0.15.0 ppx_module_timer.v0.15.0 ppx_optcomp.v0.15.0 ppx_optional.v0.15.0 ppx_pipebang.v0.15.0 ppx_sexp_conv.v0.15.0 ppx_sexp_message.v0.15.0 ppx_sexp_value.v0.15.0 ppx_stable.v0.15.0 ppx_string.v0.15.0 ppx_typerep_conv.v0.15.0 ppx_variants_conv.v0.15.0 ppxlib.0.23.0 protocol_version_header.v0.15.0 re.1.8.0 result.1.5 seq.0.2.2 sexp_pretty.v0.15.0 sexplib.v0.15.0 sexplib0.v0.15.0 spawn.v0.15.0 splittable_random.v0.15.0 stdio.v0.15.0 stdlib-shims.0.1.0 textutils.v0.15.0 textutils_kernel.v0.15.0 time_now.v0.15.0 timezone.v0.15.0 topkg.1.0.3 typerep.v0.15.0 uchar.0.0.2 uutf.1.0.2 variantslib.v0.15.0 yojson.1.5.0"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.1 --depext-only -y awa.dev awa-mirage.dev $DEPS
RUN opam install $DEPS
COPY --chown=1000:1000 . /src
RUN opam exec -- dune build @install @check @runtest && rm -rf _build
END-OF-DOCKERFILE
docker build .
END-REPRO-BLOCK
2023-06-19 11:34.04: Using cache hint "mirage/awa-ssh-ocaml/opam@sha256:027f9862a1e4d42024f78fd0ea9478c003fe75d4da18fe18da8847f7f6448efc-alpine-3.17-4.14_opam-2.1-8a6f09748cb7ee649923b180adf9f491"
2023-06-19 11:34.04: Using OBuilder spec:
((from ocaml/opam@sha256:027f9862a1e4d42024f78fd0ea9478c003fe75d4da18fe18da8847f7f6448efc)
 (comment alpine-3.17-4.14_opam-2.1)
 (user (uid 1000) (gid 1000))
 (env CLICOLOR_FORCE 1)
 (env OPAMCOLOR always)
 (workdir /src)
 (run (shell "sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam"))
 (run (shell "opam init --reinit -ni"))
 (workdir /src)
 (run (shell "sudo chown opam /src"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "cd ~/opam-repository && (git cat-file -e d62ae43a864a59218cb6a4db6bac3e1935213ff9 || git fetch origin master) && git reset -q --hard d62ae43a864a59218cb6a4db6bac3e1935213ff9 && git log --no-decorate -n1 --oneline && opam update -u"))
 (copy (src awa.opam awa-mirage.opam) (dst ./))
 (run (network host)
      (shell  "opam pin add -yn awa.dev './' && \
             \nopam pin add -yn awa-mirage.dev './'"))
 (env DEPS "alcotest.dev alcotest-async.dev alcotest-js.dev alcotest-lwt.dev alcotest-mirage.dev astring.0.8.5 async.v0.15.0 async_kernel.v0.15.0 async_rpc_kernel.v0.15.0 async_unix.v0.15.0 base.v0.15.0 base-bigarray.base base-bytes.base base-threads.base base-unix.base base_bigstring.v0.15.0 base_quickcheck.v0.15.0 bin_prot.v0.15.0 biniou.1.2.0 cmdliner.1.1.0 conf-which.1 core.v0.15.0 core_kernel.v0.15.0 core_unix.v0.15.0 cppo.1.6.1 dune.3.0.2 dune-configurator.2.3.0 dune-private-libs.2.3.0 duration.0.1.0 easy-format.1.0.1 expect_test_helpers_core.v0.15.0 fieldslib.v0.15.0 fmt.0.8.7 int_repr.v0.15.0 jane-street-headers.v0.15.0 jbuilder.1.0+beta20.1 js_of_ocaml-compiler.3.11.0 jst-config.v0.15.0 logs.0.6.3 lwt.5.4.0 menhir.20200123 menhirLib.20200123 menhirSdk.20200123 mirage-clock.2.0.0 mirage-device.1.0.0 mmap.1.1.0 num.1.0 ocaml.4.13.1 ocaml-base-compiler.4.13.1 ocaml-compiler-libs.v0.11.0 ocaml-config.2 ocaml-options-vanilla.1 ocaml-syntax-shims.1.0.0 ocaml_intrinsics.v0.15.0 ocamlbuild.0.14.0 ocamlfind.1.9.1 ocplib-endian.1.0 parsexp.v0.15.0 ppx_assert.v0.15.0 ppx_base.v0.15.0 ppx_bench.v0.15.0 ppx_bin_prot.v0.15.0 ppx_cold.v0.15.0 ppx_compare.v0.15.0 ppx_custom_printf.v0.15.0 ppx_derivers.1.0 ppx_disable_unused_warnings.v0.15.0 ppx_enumerate.v0.15.0 ppx_expect.v0.15.0 ppx_fields_conv.v0.15.0 ppx_fixed_literal.v0.15.0 ppx_hash.v0.15.0 ppx_here.v0.15.0 ppx_ignore_instrumentation.v0.15.0 ppx_inline_test.v0.15.0 ppx_jane.v0.15.0 ppx_let.v0.15.0 ppx_log.v0.15.0 ppx_module_timer.v0.15.0 ppx_optcomp.v0.15.0 ppx_optional.v0.15.0 ppx_pipebang.v0.15.0 ppx_sexp_conv.v0.15.0 ppx_sexp_message.v0.15.0 ppx_sexp_value.v0.15.0 ppx_stable.v0.15.0 ppx_string.v0.15.0 ppx_typerep_conv.v0.15.0 ppx_variants_conv.v0.15.0 ppxlib.0.23.0 protocol_version_header.v0.15.0 re.1.8.0 result.1.5 seq.0.2.2 sexp_pretty.v0.15.0 sexplib.v0.15.0 sexplib0.v0.15.0 spawn.v0.15.0 splittable_random.v0.15.0 stdio.v0.15.0 stdlib-shims.0.1.0 textutils.v0.15.0 textutils_kernel.v0.15.0 time_now.v0.15.0 timezone.v0.15.0 topkg.1.0.3 typerep.v0.15.0 uchar.0.0.2 uutf.1.0.2 variantslib.v0.15.0 yojson.1.5.0")
 (env CI true)
 (env OCAMLCI true)
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "opam update --depexts && opam install --cli=2.1 --depext-only -y awa.dev awa-mirage.dev $DEPS"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "opam install $DEPS"))
 (copy (src .) (dst /src))
 (run (shell "opam exec -- dune build @install @check @runtest && rm -rf _build"))
)
2023-06-19 11:34.04: Waiting for resource in pool OCluster
2023-06-19 11:54.01: Waiting for worker…
2023-06-19 12:05.36: Got resource from pool OCluster
Building on pima.caelum.ci.dev
All commits already cached
HEAD is now at f82537a fix kex
(from ocaml/opam@sha256:027f9862a1e4d42024f78fd0ea9478c003fe75d4da18fe18da8847f7f6448efc)
Unable to find image 'ocaml/opam@sha256:027f9862a1e4d42024f78fd0ea9478c003fe75d4da18fe18da8847f7f6448efc' locally
docker.io/ocaml/opam@sha256:027f9862a1e4d42024f78fd0ea9478c003fe75d4da18fe18da8847f7f6448efc: Pulling from ocaml/opam
8b59001d9696: Pulling fs layer
8b59001d9696: Verifying Checksum
8b59001d9696: Download complete
8b59001d9696: Pull complete
Digest: sha256:027f9862a1e4d42024f78fd0ea9478c003fe75d4da18fe18da8847f7f6448efc
Status: Downloaded newer image for ocaml/opam@sha256:027f9862a1e4d42024f78fd0ea9478c003fe75d4da18fe18da8847f7f6448efc
2023-06-19 12:05.37 ---> using "78886add7f2e11e512b2a7a3c6fe519b9671754ac2641172b15276a13920a9cc" from cache
/: (comment alpine-3.17-4.14_opam-2.1)
/: (user (uid 1000) (gid 1000))
/: (env CLICOLOR_FORCE 1)
/: (env OPAMCOLOR always)
/: (workdir /src)
/src: (run (shell "sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam"))
2023-06-19 12:05.37 ---> using "0754d0b308c2f145fd9f1ba0fcf24d2287bdd708c428fe3bb1345a2613cee90e" from cache
/src: (run (shell "opam init --reinit -ni"))
Configuring from /home/opam/.opamrc and then from built-in defaults.
Checking for available remotes: rsync and local, git.
  - you won't be able to use mercurial repositories unless you install the hg command on your system.
  - you won't be able to use darcs repositories unless you install the darcs command on your system.
This version of opam requires an update to the layout of /home/opam/.opam from version 2.0 to version 2.1, which can't be reverted.
You may want to back it up before going further.
Continue? [Y/n] y
Format upgrade done.
<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
2023-06-19 12:05.37 ---> using "3f924998be27c72537701f354bba8e171d9220bc7cda880bfb67df596be70572" from cache
/src: (workdir /src)
/src: (run (shell "sudo chown opam /src"))
2023-06-19 12:05.37 ---> using "ba850f9854390fe92d05d50372d962472535fb73389b85186703295f96c9f240" from cache
/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
           (network host)
           (shell "cd ~/opam-repository && (git cat-file -e d62ae43a864a59218cb6a4db6bac3e1935213ff9 || git fetch origin master) && git reset -q --hard d62ae43a864a59218cb6a4db6bac3e1935213ff9 && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
 * branch                  master     -> FETCH_HEAD
   f5e6304357..9db290fb8a  master     -> origin/master
d62ae43a86 Constrain all odoc versions that would allow OCaml 5.1
<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
Everything as up-to-date as possible (run with --verbose to show unavailable upgrades).
However, you may "opam upgrade" these packages explicitly, which will ask permission to downgrade or uninstall the conflicting packages.
Nothing to do.
# Run eval $(opam env) to update the current shell environment
2023-06-19 12:07.40 ---> saved as "48fd9912efd20f5984a63c582c60ce65411fc5bb22413da07c5976f3ba6e41a6"
/src: (copy (src awa.opam awa-mirage.opam) (dst ./))
2023-06-19 12:08.05 ---> saved as "d336e94fb7d5046470b3514edf75fc6181b9db99c7d62fc04b90f37c957bb93d"
/src: (run (network host)
           (shell  "opam pin add -yn awa.dev './' && \
                  \nopam pin add -yn awa-mirage.dev './'"))
[awa.dev] synchronised (file:///src)
awa is now pinned to file:///src (version dev)
[awa-mirage.dev] synchronised (file:///src)
awa-mirage is now pinned to file:///src (version dev)
2023-06-19 12:08.24 ---> saved as "100b1194b6ad9ca2aa6371b0f06aa0edcc8f7682ee3d984cc339ac354af8c41e"
/src: (env DEPS "alcotest.dev alcotest-async.dev alcotest-js.dev alcotest-lwt.dev alcotest-mirage.dev astring.0.8.5 async.v0.15.0 async_kernel.v0.15.0 async_rpc_kernel.v0.15.0 async_unix.v0.15.0 base.v0.15.0 base-bigarray.base base-bytes.base base-threads.base base-unix.base base_bigstring.v0.15.0 base_quickcheck.v0.15.0 bin_prot.v0.15.0 biniou.1.2.0 cmdliner.1.1.0 conf-which.1 core.v0.15.0 core_kernel.v0.15.0 core_unix.v0.15.0 cppo.1.6.1 dune.3.0.2 dune-configurator.2.3.0 dune-private-libs.2.3.0 duration.0.1.0 easy-format.1.0.1 expect_test_helpers_core.v0.15.0 fieldslib.v0.15.0 fmt.0.8.7 int_repr.v0.15.0 jane-street-headers.v0.15.0 jbuilder.1.0+beta20.1 js_of_ocaml-compiler.3.11.0 jst-config.v0.15.0 logs.0.6.3 lwt.5.4.0 menhir.20200123 menhirLib.20200123 menhirSdk.20200123 mirage-clock.2.0.0 mirage-device.1.0.0 mmap.1.1.0 num.1.0 ocaml.4.13.1 ocaml-base-compiler.4.13.1 ocaml-compiler-libs.v0.11.0 ocaml-config.2 ocaml-options-vanilla.1 ocaml-syntax-shims.1.0.0 ocaml_intrinsics.v0.15.0 ocamlbuild.0.14.0 ocamlfind.1.9.1 ocplib-endian.1.0 parsexp.v0.15.0 ppx_assert.v0.15.0 ppx_base.v0.15.0 ppx_bench.v0.15.0 ppx_bin_prot.v0.15.0 ppx_cold.v0.15.0 ppx_compare.v0.15.0 ppx_custom_printf.v0.15.0 ppx_derivers.1.0 ppx_disable_unused_warnings.v0.15.0 ppx_enumerate.v0.15.0 ppx_expect.v0.15.0 ppx_fields_conv.v0.15.0 ppx_fixed_literal.v0.15.0 ppx_hash.v0.15.0 ppx_here.v0.15.0 ppx_ignore_instrumentation.v0.15.0 ppx_inline_test.v0.15.0 ppx_jane.v0.15.0 ppx_let.v0.15.0 ppx_log.v0.15.0 ppx_module_timer.v0.15.0 ppx_optcomp.v0.15.0 ppx_optional.v0.15.0 ppx_pipebang.v0.15.0 ppx_sexp_conv.v0.15.0 ppx_sexp_message.v0.15.0 ppx_sexp_value.v0.15.0 ppx_stable.v0.15.0 ppx_string.v0.15.0 ppx_typerep_conv.v0.15.0 ppx_variants_conv.v0.15.0 ppxlib.0.23.0 protocol_version_header.v0.15.0 re.1.8.0 result.1.5 seq.0.2.2 sexp_pretty.v0.15.0 sexplib.v0.15.0 sexplib0.v0.15.0 spawn.v0.15.0 splittable_random.v0.15.0 stdio.v0.15.0 stdlib-shims.0.1.0 textutils.v0.15.0 textutils_kernel.v0.15.0 time_now.v0.15.0 timezone.v0.15.0 topkg.1.0.3 typerep.v0.15.0 uchar.0.0.2 uutf.1.0.2 variantslib.v0.15.0 yojson.1.5.0")
/src: (env CI true)
/src: (env OCAMLCI true)
/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
           (network host)
           (shell "opam update --depexts && opam install --cli=2.1 --depext-only -y awa.dev awa-mirage.dev $DEPS"))
+ /usr/bin/sudo "apk" "update"
- fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
- v3.17.4-5-g567f26ca3d2 [https://dl-cdn.alpinelinux.org/alpine/v3.17/main]
- v3.17.4-2-g7fb040f4d3b [https://dl-cdn.alpinelinux.org/alpine/v3.17/community]
- v3.18.0-3685-gd5292a7b1ed [https://dl-cdn.alpinelinux.org/alpine/edge/main]
- v3.18.0-3686-ga1e435f831e [https://dl-cdn.alpinelinux.org/alpine/edge/community]
- v3.18.0-3685-gd5292a7b1ed [https://dl-cdn.alpinelinux.org/alpine/edge/testing]
- OK: 45513 distinct packages available
[ERROR] Package alcotest has no version dev.
[ERROR] Package alcotest-async has no version dev.
[ERROR] Package alcotest-js has no version dev.
[ERROR] Package alcotest-lwt has no version dev.
[ERROR] Package alcotest-mirage has no version dev.
"/bin/bash" "-c" "opam update --depexts && opam install --cli=2.1 --depext-only -y awa.dev awa-mirage.dev $DEPS" failed with exit status 5
2023-06-19 12:08.46: Job failed: Failed: Build failed

No idea how alcotest in version "dev" is now required.

Expected behaviour

See other CI runs for the same PR that succeed.

Thanks for your report, this is cause by my last commit on ocurrent/solver-service#61. I'm fixing it.

I was trying to improve, cancelling a job to be more reactive with wrong understanding about the function Lwt_switch.use on ocurrent/solver-service#61.

It is fixed for now on the last commit ocurrent/solver-service@388a7ae
Revert the commit that was causing the bug.

I haven't observed this issue anymore, thanks to @moyodiallo for the fix / revert.