2025-06-08 10:36.45: New job: test ocaml-ppx/ppx_deriving_yojson https://github.com/ocaml-ppx/ppx_deriving_yojson.git#refs/heads/master (72c4548b484d0253cd168c245b69ae5e0bc78471) (linux-arm64:debian-12-4.14_arm64_opam-2.3)
Base: ocaml/opam:debian-12-ocaml-4.14@sha256:423bbb5d1c35aef0a9efed4ef5493f4b45d3e84b03d23fd11651012921d78c4a
Opam project build
To reproduce locally:
git clone --recursive "https://github.com/ocaml-ppx/ppx_deriving_yojson.git" -b "master" && cd "ppx_deriving_yojson" && git reset --hard 72c4548b
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-4.14@sha256:423bbb5d1c35aef0a9efed4ef5493f4b45d3e84b03d23fd11651012921d78c4a
# debian-12-4.14_arm64_opam-2.3
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
WORKDIR /src
RUN sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam
RUN opam init --reinit -ni
RUN uname -rs && opam exec -- ocaml -version && opam --version
WORKDIR /src
RUN sudo chown opam /src
RUN cd ~/opam-repository && (git cat-file -e 0e1a25ffde388b436cc1998777c138d69666193d || git fetch origin master) && git reset -q --hard 0e1a25ffde388b436cc1998777c138d69666193d && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 ppx_deriving_yojson.opam ./
RUN opam pin add -yn ppx_deriving_yojson.dev './'
RUN echo '(lang dune 3.0)' > './dune-project'
ENV DEPS="base-bigarray.base base-threads.base base-unix.base cppo.1.8.0 dune.3.19.0 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-compiler-libs.v0.12.4 ocaml-config.2 ocaml-options-vanilla.1 ocamlfind.1.9.8 ounit2.2.2.7 ppx_derivers.1.2.1 ppx_deriving.6.1.0 ppxlib.0.36.0 seq.base sexplib0.v0.17.0 stdlib-shims.0.3.0 yojson.3.0.0"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.3 --depext-only -y ppx_deriving_yojson.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
2025-06-08 10:36.45: Using cache hint "ocaml-ppx/ppx_deriving_yojson-ocaml/opam:debian-12-ocaml-4.14@sha256:423bbb5d1c35aef0a9efed4ef5493f4b45d3e84b03d23fd11651012921d78c4a-debian-12-4.14_arm64_opam-2.3-5c1df91317e790901cdd4830b80cebac"
2025-06-08 10:36.45: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.14@sha256:423bbb5d1c35aef0a9efed4ef5493f4b45d3e84b03d23fd11651012921d78c4a)
(comment debian-12-4.14_arm64_opam-2.3)
(user (uid 1000) (gid 1000))
(env CLICOLOR_FORCE 1)
(env OPAMCOLOR always)
(workdir /src)
(run (shell "sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam"))
(run (shell "opam init --reinit -ni"))
(run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
(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 0e1a25ffde388b436cc1998777c138d69666193d || git fetch origin master) && git reset -q --hard 0e1a25ffde388b436cc1998777c138d69666193d && git log --no-decorate -n1 --oneline && opam update -u"))
(copy (src ppx_deriving_yojson.opam) (dst ./))
(run (network host)
(shell "opam pin add -yn ppx_deriving_yojson.dev './'"))
(run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
(env DEPS "base-bigarray.base base-threads.base base-unix.base cppo.1.8.0 dune.3.19.0 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-compiler-libs.v0.12.4 ocaml-config.2 ocaml-options-vanilla.1 ocamlfind.1.9.8 ounit2.2.2.7 ppx_derivers.1.2.1 ppx_deriving.6.1.0 ppxlib.0.36.0 seq.base sexplib0.v0.17.0 stdlib-shims.0.3.0 yojson.3.0.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.3 --depext-only -y ppx_deriving_yojson.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"))
)
2025-06-08 10:36.45: Waiting for resource in pool OCluster
2025-06-08 10:36.46: Waiting for worker…
2025-06-08 10:36.46: Got resource from pool OCluster
Building on okypous.caelum.ci.dev
All commits already cached
HEAD is now at 72c4548 Update README.md (#167)
(from ocaml/opam:debian-12-ocaml-4.14@sha256:423bbb5d1c35aef0a9efed4ef5493f4b45d3e84b03d23fd11651012921d78c4a)
Unable to find image 'ocaml/opam:debian-12-ocaml-4.14@sha256:423bbb5d1c35aef0a9efed4ef5493f4b45d3e84b03d23fd11651012921d78c4a' locally
docker.io/ocaml/opam@sha256:423bbb5d1c35aef0a9efed4ef5493f4b45d3e84b03d23fd11651012921d78c4a: Pulling from ocaml/opam
eb19779868a3: Already exists
Digest: sha256:423bbb5d1c35aef0a9efed4ef5493f4b45d3e84b03d23fd11651012921d78c4a
Status: Downloaded newer image for ocaml/opam@sha256:423bbb5d1c35aef0a9efed4ef5493f4b45d3e84b03d23fd11651012921d78c4a
2025-06-08 10:36.47 ---> using "ae12be82efc07d222a4080b15cef96c5ad419c2d138478aa18222c246e06aa7e" from cache
/: (comment debian-12-4.14_arm64_opam-2.3)
/: (user (uid 1000) (gid 1000))
/: (env CLICOLOR_FORCE 1)
/: (env OPAMCOLOR always)
/: (workdir /src)
/src: (run (shell "sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam"))
2025-06-08 10:36.47 ---> using "9a0362a127c4243f9b0adb58de6f0339885df17025b6e8b8ed3b5ff5971d7b76" 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.2, 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] Initialised
2025-06-08 10:36.47 ---> using "0605cdc03c71c9c3d7cf3105e704483e2cf3beee942c752884fe70cffe4fed13" from cache
/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-138-generic
The OCaml toplevel, version 4.14.2
2.3.0
2025-06-08 10:36.47 ---> using "93b7494066b9b6b1bbb50c427ee9ee625f127cdcc2b3df804fbed77cd8d29a20" from cache
/src: (workdir /src)
/src: (run (shell "sudo chown opam /src"))
2025-06-08 10:36.47 ---> using "7a7a2dd5469408a0ee60f314529a82cdf9e5b2da82f419805d4f695cbcf14831" from cache
/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 0e1a25ffde388b436cc1998777c138d69666193d || git fetch origin master) && git reset -q --hard 0e1a25ffde388b436cc1998777c138d69666193d && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
* branch master -> FETCH_HEAD
0d013e603b..c037675bed master -> origin/master
0e1a25ffde Merge pull request #27956 from Leonidas-from-XIV/release-yojson-3.0.0
<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from git+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.
# To update the current shell environment, run: eval $(opam env)
2025-06-08 10:36.47 ---> using "ad67ec279c971a71897dd529efa7a9a4db736c0b04b0653719238dccc8cf3683" from cache
/src: (copy (src ppx_deriving_yojson.opam) (dst ./))
2025-06-08 10:36.47 ---> using "0a6b6a2e1269896bc36eb6309c32b8e09247295497199152c9d5bed24248a11a" from cache
/src: (run (network host)
(shell "opam pin add -yn ppx_deriving_yojson.dev './'"))
[ppx_deriving_yojson.dev] synchronised (file:///src)
ppx_deriving_yojson is now pinned to file:///src (version dev)
2025-06-08 10:36.47 ---> using "598773dc0e5f6376c9f063eb6adfbb3d7d73ac1ac46bbd8dfc1afc0291036dfb" from cache
/src: (run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
2025-06-08 10:36.47 ---> using "3bc07ed281933a56dbce3a8c828b3c015d29c729e5fc6f6b95e191b11bbe55f4" from cache
/src: (env DEPS "base-bigarray.base base-threads.base base-unix.base cppo.1.8.0 dune.3.19.0 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-compiler-libs.v0.12.4 ocaml-config.2 ocaml-options-vanilla.1 ocamlfind.1.9.8 ounit2.2.2.7 ppx_derivers.1.2.1 ppx_deriving.6.1.0 ppxlib.0.36.0 seq.base sexplib0.v0.17.0 stdlib-shims.0.3.0 yojson.3.0.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.3 --depext-only -y ppx_deriving_yojson.dev $DEPS"))
+ /usr/bin/sudo "apt-get" "update"
- Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
- Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
- Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
- Get:4 http://deb.debian.org/debian bookworm/main arm64 Packages [8693 kB]
- Get:5 http://deb.debian.org/debian-security bookworm-security/main arm64 Packages [261 kB]
- Fetched 9209 kB in 3s (3019 kB/s)
- Reading package lists...
-
<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[ppx_deriving_yojson.dev] synchronised (file:///src)
[NOTE] Package ocaml-options-vanilla is already installed (current version is 1).
[NOTE] Package ocaml-config is already installed (current version is 2).
[NOTE] Package ocaml-base-compiler is already installed (current version is 4.14.2).
[NOTE] Package ocaml is already installed (current version is 4.14.2).
[NOTE] Package base-unix is already installed (current version is base).
[NOTE] Package base-threads is already installed (current version is base).
[NOTE] Package base-bigarray is already installed (current version is base).
2025-06-08 10:36.47 ---> using "0a2c76e3a80a8cddc0a82ef2c04b5ab35af0a0d85d3801b075f9a366ad63f259" from cache
/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam install $DEPS"))
[NOTE] Package ocaml-options-vanilla is already installed (current version is 1).
[NOTE] Package ocaml-config is already installed (current version is 2).
[NOTE] Package ocaml-base-compiler is already installed (current version is 4.14.2).
[NOTE] Package ocaml is already installed (current version is 4.14.2).
[NOTE] Package base-unix is already installed (current version is base).
[NOTE] Package base-threads is already installed (current version is base).
[NOTE] Package base-bigarray is already installed (current version is base).
The following actions will be performed:
=== install 12 packages
- install cppo 1.8.0
- install dune 3.19.0
- install ocaml-compiler-libs v0.12.4
- install ocamlfind 1.9.8
- install ounit2 2.2.7
- install ppx_derivers 1.2.1
- install ppx_deriving 6.1.0
- install ppxlib 0.36.0
- install seq base
- install sexplib0 v0.17.0
- install stdlib-shims 0.3.0
- install yojson 3.0.0
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved ocaml-compiler-libs.v0.12.4 (cached)
-> retrieved cppo.1.8.0 (cached)
-> retrieved ocamlfind.1.9.8 (cached)
-> retrieved ounit2.2.2.7 (cached)
-> retrieved ppx_derivers.1.2.1 (cached)
-> retrieved ppx_deriving.6.1.0 (cached)
-> retrieved seq.base (cached)
-> installed seq.base
-> retrieved sexplib0.v0.17.0 (cached)
-> retrieved ppxlib.0.36.0 (cached)
-> retrieved stdlib-shims.0.3.0 (cached)
-> retrieved yojson.3.0.0 (cached)
-> retrieved dune.3.19.0 (cached)
-> installed ocamlfind.1.9.8
-> installed dune.3.19.0
-> installed stdlib-shims.0.3.0
-> installed ppx_derivers.1.2.1
-> installed sexplib0.v0.17.0
-> installed yojson.3.0.0
-> installed cppo.1.8.0
-> installed ocaml-compiler-libs.v0.12.4
-> installed ounit2.2.2.7
-> installed ppxlib.0.36.0
-> installed ppx_deriving.6.1.0
Done.
# To update the current shell environment, run: eval $(opam env)
2025-06-08 10:36.47 ---> using "3c8a01f66670029f3283d32f4b6274f6b5d24172d731a89e759a02d7862addc4" from cache
/src: (copy (src .) (dst /src))
2025-06-08 10:36.47 ---> using "79adfed0c3af22f7e29303376549f0b2751e9641b9b89b21b469fc374e3c81e5" from cache
/src: (run (shell "opam exec -- dune build @install @check @runtest && rm -rf _build"))
(cd _build/default && /home/opam/.opam/4.14/bin/ocamlc.opt -w @1..3@5..28@30..39@43@46..47@49..57@61..62-40 -strict-sequence -strict-formats -short-paths -keep-locs -w -9-39-27-34-37 -g -bin-annot -I src_test/.test_ppx_yojson.eobjs/byte -I /home/opam/.opam/4.14/lib/ounit2 -I /home/opam/.opam/4.14/lib/ounit2/advanced -I /home/opam/.opam/4.14/lib/ppx_deriving/runtime -I /home/opam/.opam/4.14/lib/seq -I /home/opam/.opam/4.14/lib/stdlib-shims -I /home/opam/.opam/4.14/lib/yojson -I src/.ppx_deriving_yojson_runtime.objs/byte -no-alias-deps -opaque -o src_test/.test_ppx_yojson.eobjs/byte/test_ppx_yojson.cmo -c -impl src_test/test_ppx_yojson.pp.ml)
File "src_test/test_ppx_yojson.ml", line 28, characters 34-38:
28 | assert_equal ~printer:show_json json (cleanup (to_json obj));
^^^^
Error: This expression has type Yojson.Safe.t
but an expression was expected of type json
The first variant type does not allow tag(s) `Tuple, `Variant
"/usr/bin/env" "bash" "-c" "opam exec -- dune build @install @check @runtest && rm -rf _build" failed with exit status 1
2025-06-08 10:36.51: Job failed: Failed: Build failed