2025-06-02 22:25.31: New job: test ocaml-ppx/ppx_deriving_yojson https://github.com/ocaml-ppx/ppx_deriving_yojson.git#refs/heads/master (89f6c1deb9e2daa4370e70bae11ba76b9ca19e98) (linux-x86_64:ubuntu-24.10-4.14_opam-2.3)
Base: ocaml/opam:ubuntu-24.10-ocaml-4.14@sha256:bda0b8f2ebcbe30ade287195cc6a7024c8701a2c2417fee04dc649d5c4d3efe6
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 89f6c1de
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:ubuntu-24.10-ocaml-4.14@sha256:bda0b8f2ebcbe30ade287195cc6a7024c8701a2c2417fee04dc649d5c4d3efe6
# ubuntu-24.10-4.14_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-02 22:25.31: Using cache hint "ocaml-ppx/ppx_deriving_yojson-ocaml/opam:ubuntu-24.10-ocaml-4.14@sha256:bda0b8f2ebcbe30ade287195cc6a7024c8701a2c2417fee04dc649d5c4d3efe6-ubuntu-24.10-4.14_opam-2.3-5c1df91317e790901cdd4830b80cebac"
2025-06-02 22:25.31: Using OBuilder spec:
((from ocaml/opam:ubuntu-24.10-ocaml-4.14@sha256:bda0b8f2ebcbe30ade287195cc6a7024c8701a2c2417fee04dc649d5c4d3efe6)
(comment ubuntu-24.10-4.14_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-02 22:25.31: Waiting for resource in pool OCluster
2025-06-02 22:31.11: Waiting for worker…
2025-06-02 22:33.35: Got resource from pool OCluster
Building on x86-bm-c8.sw.ocaml.org
All commits already cached
HEAD is now at 89f6c1d Release 3.10.0
(from ocaml/opam:ubuntu-24.10-ocaml-4.14@sha256:bda0b8f2ebcbe30ade287195cc6a7024c8701a2c2417fee04dc649d5c4d3efe6)
Unable to find image 'ocaml/opam:ubuntu-24.10-ocaml-4.14@sha256:bda0b8f2ebcbe30ade287195cc6a7024c8701a2c2417fee04dc649d5c4d3efe6' locally
docker.io/ocaml/opam@sha256:bda0b8f2ebcbe30ade287195cc6a7024c8701a2c2417fee04dc649d5c4d3efe6: Pulling from ocaml/opam
8fe829873a07: Pulling fs layer
eb3d9c95ed86: Pulling fs layer
8ef8df73ad6e: Pulling fs layer
19e4848261ff: Pulling fs layer
8fe829873a07: Waiting
6f5036f02e5d: Pulling fs layer
8ef8df73ad6e: Waiting
eb3d9c95ed86: Verifying Checksum
eb3d9c95ed86: Download complete
8fe829873a07: Verifying Checksum
8fe829873a07: Download complete
8ef8df73ad6e: Verifying Checksum
8ef8df73ad6e: Download complete
19e4848261ff: Verifying Checksum
19e4848261ff: Download complete
6f5036f02e5d: Verifying Checksum
6f5036f02e5d: Download complete
8fe829873a07: Pull complete
eb3d9c95ed86: Pull complete
8ef8df73ad6e: Pull complete
19e4848261ff: Pull complete
6f5036f02e5d: Pull complete
Digest: sha256:bda0b8f2ebcbe30ade287195cc6a7024c8701a2c2417fee04dc649d5c4d3efe6
Status: Downloaded newer image for ocaml/opam@sha256:bda0b8f2ebcbe30ade287195cc6a7024c8701a2c2417fee04dc649d5c4d3efe6
2025-06-02 22:33.35 ---> using "72717d05a71db332f638e3471fb1ead49edd1237d9ab814a71a0b4841a4b80f5" from cache
/: (comment ubuntu-24.10-4.14_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-02 22:33.35 ---> using "f0454adb33f2aae4338a25ecf7a48533f5e7c830afef32dd051639de6164e235" 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-02 22:33.35 ---> using "21a983263f7b9aba64b446b5d431ebb214cd8b37a9d50467e5a9b290379fb09e" from cache
/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-134-generic
The OCaml toplevel, version 4.14.2
2.3.0
2025-06-02 22:33.35 ---> using "d791034d1f7062f9e9ca994e7769ad1103bcbea8ad4b09b0d69fb5556a95e2b9" from cache
/src: (workdir /src)
/src: (run (shell "sudo chown opam /src"))
2025-06-02 22:33.35 ---> using "39d23ffca5d0fc189fb629ae3ac4c26553c311d35195f5eee6e7e3ad477d3c70" 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-02 22:33.35 ---> using "f4fd20bd437a7502e4c8dccdbc7c8f166cd7a976c9849be975176e183f2c0528" from cache
/src: (copy (src ppx_deriving_yojson.opam) (dst ./))
2025-06-02 22:33.35 ---> using "2a8a26eb7e3e7f23ae4e4be3d8b35a420e40d208c6df7753edfe28a5569edc39" 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-02 22:33.35 ---> using "7c009645c029c1247816f44dcbccc7313d5a18cbaf575bb2a21fd18a4c5a6006" from cache
/src: (run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
2025-06-02 22:33.35 ---> using "f62546d8c8580b08568ab3f605b31ca8c183821ac06de31761b224acbe8a74b6" 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"
- Hit:1 http://archive.ubuntu.com/ubuntu oracular InRelease
- Get:2 http://archive.ubuntu.com/ubuntu oracular-updates InRelease [126 kB]
- Get:3 http://security.ubuntu.com/ubuntu oracular-security InRelease [126 kB]
- Get:4 http://archive.ubuntu.com/ubuntu oracular-backports InRelease [126 kB]
- Get:5 http://archive.ubuntu.com/ubuntu oracular-updates/universe amd64 Packages [337 kB]
- Get:6 http://archive.ubuntu.com/ubuntu oracular-updates/restricted amd64 Packages [321 kB]
- Get:7 http://security.ubuntu.com/ubuntu oracular-security/main amd64 Packages [409 kB]
- Get:8 http://archive.ubuntu.com/ubuntu oracular-updates/main amd64 Packages [548 kB]
- Get:9 http://security.ubuntu.com/ubuntu oracular-security/universe amd64 Packages [258 kB]
- Get:10 http://security.ubuntu.com/ubuntu oracular-security/restricted amd64 Packages [315 kB]
- Fetched 2567 kB in 1s (1958 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-02 22:33.35 ---> using "9fa1394a3346fa9580f87036da3d9ce8e4f9c437ad3c369c67da2ae30520ae6d" 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 cppo.1.8.0 (cached)
-> retrieved ocaml-compiler-libs.v0.12.4 (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 stdlib-shims.0.3.0 (cached)
-> retrieved yojson.3.0.0 (cached)
-> retrieved ppxlib.0.36.0 (cached)
-> retrieved dune.3.19.0 (cached)
-> installed ocamlfind.1.9.8
-> installed dune.3.19.0
-> installed ppx_derivers.1.2.1
-> installed stdlib-shims.0.3.0
-> installed sexplib0.v0.17.0
-> installed ocaml-compiler-libs.v0.12.4
-> installed ounit2.2.2.7
-> installed yojson.3.0.0
-> installed cppo.1.8.0
-> installed ppxlib.0.36.0
-> installed ppx_deriving.6.1.0
Done.
# To update the current shell environment, run: eval $(opam env)
2025-06-02 22:34.09 ---> saved as "4412d351b4842ad365c7f156e64a82202ad237abb4c94fe5ce3d2eb93f5ec6ab"
/src: (copy (src .) (dst /src))
2025-06-02 22:34.10 ---> saved as "ad177fb9bb032236ec2ca13ba77df090309da970a8cfa660fd9b3a205a2cc73c"
/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-02 22:34.14: Job failed: Failed: Build failed