Organisationsocaml-communityyojsond692c1 (master)(lint-doc)

(lint-doc)

Link Copied
Code Copied

Logs

2025-08-30 07:18.34: New job: test ocaml-community/yojson https://github.com/ocaml-community/yojson.git#refs/heads/master (d692c15dc630a1a1635719b5426299df6f02c5ef) (linux-x86_64:(lint-doc))
Base: ocaml/opam:debian-12-ocaml-4.08@sha256:1f8f583356b37c1cbcde061de13bfdb1a8963b80127e721c7ca17f4e884e669d
Opam project lint documentation


To reproduce locally:


git clone --recursive "https://github.com/ocaml-community/yojson.git" -b "master" && cd "yojson" && git reset --hard d692c15d
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-4.08@sha256:1f8f583356b37c1cbcde061de13bfdb1a8963b80127e721c7ca17f4e884e669d
# debian-12-4.08_opam-2.4
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
WORKDIR /src
RUN sudo ln -f /usr/bin/opam-2.2 /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 4c972ba0fc24bcf3f84a30d19f8d725f7ce382a4 || git fetch origin master) && git reset -q --hard 4c972ba0fc24bcf3f84a30d19f8d725f7ce382a4 && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 yojson.opam yojson-five.opam yojson-bench.opam ./
RUN opam pin add -yn yojson.dev './' && \
opam pin add -yn yojson-five.dev './' && \
opam pin add -yn yojson-bench.dev './'
RUN echo '(lang dune 3.0)' > './dune-project'
ENV DEPS="alcotest.1.9.0 astring.0.8.5 base-bigarray.base base-threads.base base-unix.base cmdliner.1.3.0 dune.3.20.1 fmt.0.11.0 gen.1.1 ocaml.4.08.1 ocaml-base-compiler.4.08.1 ocaml-compiler-libs.v0.12.4 ocaml-config.1 ocaml-syntax-shims.1.0.0 ocamlbuild.0.16.1 ocamlfind.1.9.8 ppx_derivers.1.2.1 ppxlib.0.36.0 re.1.11.0 sedlex.3.6 seq.base sexplib0.v0.16.0 stdlib-shims.0.3.0 topkg.1.1.0 uutf.1.0.4"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.2 --depext-only -y yojson.dev yojson-five.dev $DEPS
RUN opam install $DEPS
RUN opam install --yes dune 'odoc>=1.5.0'
COPY --chown=1000:1000 . /src/
RUN ODOC_WARN_ERROR=false opam exec -- dune build --only-packages=yojson,yojson-five @doc || (echo "dune build @doc failed"; exit 2)


END-OF-DOCKERFILE
docker build .
END-REPRO-BLOCK


2025-08-30 07:18.34: Using cache hint "ocaml-community/yojson-ocaml/opam:debian-12-ocaml-4.08@sha256:1f8f583356b37c1cbcde061de13bfdb1a8963b80127e721c7ca17f4e884e669d-debian-12-4.08_opam-2.4-b54a9291033f3f7f4b394d6b4a7b90d5"
2025-08-30 07:18.34: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.08@sha256:1f8f583356b37c1cbcde061de13bfdb1a8963b80127e721c7ca17f4e884e669d)
(comment debian-12-4.08_opam-2.4)
(user (uid 1000) (gid 1000))
(env CLICOLOR_FORCE 1)
(env OPAMCOLOR always)
(workdir /src)
(run (shell "sudo ln -f /usr/bin/opam-2.2 /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 4c972ba0fc24bcf3f84a30d19f8d725f7ce382a4 || git fetch origin master) && git reset -q --hard 4c972ba0fc24bcf3f84a30d19f8d725f7ce382a4 && git log --no-decorate -n1 --oneline && opam update -u"))
(copy (src yojson.opam yojson-five.opam yojson-bench.opam) (dst ./))
(run (network host)
(shell  "opam pin add -yn yojson.dev './' && \
\nopam pin add -yn yojson-five.dev './' && \
\nopam pin add -yn yojson-bench.dev './'"))
(run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
(env DEPS "alcotest.1.9.0 astring.0.8.5 base-bigarray.base base-threads.base base-unix.base cmdliner.1.3.0 dune.3.20.1 fmt.0.11.0 gen.1.1 ocaml.4.08.1 ocaml-base-compiler.4.08.1 ocaml-compiler-libs.v0.12.4 ocaml-config.1 ocaml-syntax-shims.1.0.0 ocamlbuild.0.16.1 ocamlfind.1.9.8 ppx_derivers.1.2.1 ppxlib.0.36.0 re.1.11.0 sedlex.3.6 seq.base sexplib0.v0.16.0 stdlib-shims.0.3.0 topkg.1.1.0 uutf.1.0.4")
(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.2 --depext-only -y yojson.dev yojson-five.dev $DEPS"))
(run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam install $DEPS"))
(run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam install --yes dune 'odoc>=1.5.0'"))
(copy (src .) (dst /src/))
(run (shell "ODOC_WARN_ERROR=false opam exec -- dune build --only-packages=yojson,yojson-five @doc || (echo \"dune build @doc failed\"; exit 2)"))
)


2025-08-30 07:18.34: Waiting for resource in pool OCluster
2025-08-30 07:19.18: Waiting for worker…
2025-08-30 07:21.24: Got resource from pool OCluster
Building on doris.caelum.ci.dev
All commits already cached
HEAD is now at d692c15 Merge pull request #200 from Leonidas-from-XIV/better-docs


(from ocaml/opam:debian-12-ocaml-4.08@sha256:1f8f583356b37c1cbcde061de13bfdb1a8963b80127e721c7ca17f4e884e669d)
2025-08-30 07:40.40 ---> using "b69d5f1106f8a1cfb35e904f37f2ccc38216aa61a22ee32dd7c324a91608cf44" from cache


/: (comment debian-12-4.08_opam-2.4)


/: (user (uid 1000) (gid 1000))


/: (env CLICOLOR_FORCE 1)


/: (env OPAMCOLOR always)


/: (workdir /src)


/src: (run (shell "sudo ln -f /usr/bin/opam-2.2 /usr/bin/opam"))
2025-08-30 07:40.40 ---> using "c936aeba563a7c9a7f33094f1a9ab8e87f8b25c948db9696d9c719436880d65d" 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
[NOTE] The 'jobs' option was reset, its value was 71 and its new value will vary according to the current number of cores on your machine. You can restore the fixed value using:
opam option jobs=71 --global
Format upgrade done.


<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-08-30 07:40.40 ---> using "5abdf7dd1084f4fcc6734b4b9e58bb2e0af0b62172d8af0531e316629ba85aa8" from cache


/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-142-generic
The OCaml toplevel, version 4.08.1
2.2.1
2025-08-30 07:40.40 ---> using "08730f93378bdd7645cf1656a0b280bf823c381614951546f12099d89bb9b6c9" from cache


/src: (workdir /src)


/src: (run (shell "sudo chown opam /src"))
2025-08-30 07:40.40 ---> using "77cba43d54d960c10f29f82e1e306616f32a0f32b67f4d92f894bda26b12ec62" from cache


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 4c972ba0fc24bcf3f84a30d19f8d725f7ce382a4 || git fetch origin master) && git reset -q --hard 4c972ba0fc24bcf3f84a30d19f8d725f7ce382a4 && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
* branch                  master     -> FETCH_HEAD
ee24528071..f2cd184cfc  master     -> origin/master
4c972ba0fc Merge pull request #28397 from maiste/release-dune-3.20.1


<><> 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.
# Run eval $(opam env) to update the current shell environment
2025-08-30 07:40.40 ---> using "a7b5762ce6100df55e23fcd37c68c6377ae8c34b5cd3da69fe6b9ccc0f81fcd2" from cache


/src: (copy (src yojson.opam yojson-five.opam yojson-bench.opam) (dst ./))
2025-08-30 07:40.40 ---> saved as "b1e838c927d8d2a26ce2ab3990323b9656c90875b504514082940ab11c4286d7"


/src: (run (network host)
(shell  "opam pin add -yn yojson.dev './' && \
\nopam pin add -yn yojson-five.dev './' && \
\nopam pin add -yn yojson-bench.dev './'"))
[yojson.dev] synchronised (file:///src)
yojson is now pinned to file:///src (version dev)
[yojson-five.dev] synchronised (file:///src)
yojson-five is now pinned to file:///src (version dev)
[yojson-bench.dev] synchronised (file:///src)
yojson-bench is now pinned to file:///src (version dev)
2025-08-30 07:40.44 ---> saved as "1256c6ed8326b4798c102faef194dbae051d62ff80e3aa3591c6116f1d92419c"


/src: (run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
2025-08-30 07:40.44 ---> saved as "0ad2b3fdd628e58ce703937ac33ae52175d2049556c0ed61eb43a53828f928de"


/src: (env DEPS "alcotest.1.9.0 astring.0.8.5 base-bigarray.base base-threads.base base-unix.base cmdliner.1.3.0 dune.3.20.1 fmt.0.11.0 gen.1.1 ocaml.4.08.1 ocaml-base-compiler.4.08.1 ocaml-compiler-libs.v0.12.4 ocaml-config.1 ocaml-syntax-shims.1.0.0 ocamlbuild.0.16.1 ocamlfind.1.9.8 ppx_derivers.1.2.1 ppxlib.0.36.0 re.1.11.0 sedlex.3.6 seq.base sexplib0.v0.16.0 stdlib-shims.0.3.0 topkg.1.1.0 uutf.1.0.4")


/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.2 --depext-only -y yojson.dev yojson-five.dev $DEPS"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian bookworm InRelease
- 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-security bookworm-security/main amd64 Packages [277 kB]
- Fetched 380 kB in 0s (1306 kB/s)
- Reading package lists...


<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[yojson.dev] synchronised (file:///src)
[yojson-five.dev] synchronised (file:///src)


[NOTE] Package ocaml-config is already installed (current version is 1).
[NOTE] Package ocaml-base-compiler is already installed (current version is 4.08.1).
[NOTE] Package ocaml is already installed (current version is 4.08.1).
[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-08-30 07:40.52 ---> saved as "7b88f77a256bf93208159db867191632d9fd942fa000ba3b010a66057a9e6dfb"


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam install $DEPS"))
[NOTE] Package ocaml-config is already installed (current version is 1).
[NOTE] Package ocaml-base-compiler is already installed (current version is 4.08.1).
[NOTE] Package ocaml is already installed (current version is 4.08.1).
[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 19 packages
- install alcotest            1.9.0
- install astring             0.8.5
- install cmdliner            1.3.0
- install dune                3.20.1
- install fmt                 0.11.0
- install gen                 1.1
- install ocaml-compiler-libs v0.12.4
- install ocaml-syntax-shims  1.0.0
- install ocamlbuild          0.16.1
- install ocamlfind           1.9.8
- install ppx_derivers        1.2.1
- install ppxlib              0.36.0
- install re                  1.11.0
- install sedlex              3.6
- install seq                 base
- install sexplib0            v0.16.0
- install stdlib-shims        0.3.0
- install topkg               1.1.0
- install uutf                1.0.4


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved astring.0.8.5  (cached)
-> retrieved cmdliner.1.3.0  (cached)
-> retrieved alcotest.1.9.0  (cached)
-> retrieved fmt.0.11.0  (cached)
-> retrieved gen.1.1  (cached)
-> retrieved ocaml-compiler-libs.v0.12.4  (cached)
-> retrieved ocaml-syntax-shims.1.0.0  (cached)
-> retrieved ocamlbuild.0.16.1  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved ppx_derivers.1.2.1  (cached)
-> retrieved re.1.11.0  (cached)
-> retrieved ppxlib.0.36.0  (cached)
-> retrieved seq.base  (cached)
-> installed seq.base
-> retrieved sedlex.3.6  (cached)
-> retrieved sexplib0.v0.16.0  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> retrieved uutf.1.0.4  (cached)
-> retrieved topkg.1.1.0  (cached)
-> retrieved dune.3.20.1  (cached)
-> installed cmdliner.1.3.0
-> installed ocamlbuild.0.16.1
-> installed ocamlfind.1.9.8
-> installed topkg.1.1.0
-> installed uutf.1.0.4
-> installed fmt.0.11.0
-> installed astring.0.8.5
-> installed dune.3.20.1
-> installed ppx_derivers.1.2.1
-> installed stdlib-shims.0.3.0
-> installed sexplib0.v0.16.0
-> installed ocaml-syntax-shims.1.0.0
-> installed gen.1.1
-> installed ocaml-compiler-libs.v0.12.4
-> installed re.1.11.0
-> installed alcotest.1.9.0
-> installed ppxlib.0.36.0
-> installed sedlex.3.6
Done.
# Run eval $(opam env) to update the current shell environment
2025-08-30 07:41.33 ---> saved as "fae0a025e982bd6a5558160d4c3ae683af22c619ee5754c740b990d0e99f8c3d"


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam install --yes dune 'odoc>=1.5.0'"))
[NOTE] Package dune is already installed (current version is 3.20.1).
The following actions will be performed:
=== install 8 packages
- install camlp-streams 5.0.1 [required by odoc-parser]
- install cppo          1.8.0 [required by odoc]
- install crunch        4.0.0 [required by odoc]
- install fpath         0.7.3 [required by odoc]
- install odoc          3.1.0
- install odoc-parser   3.1.0 [required by odoc]
- install ptime         1.2.0 [required by crunch]
- install tyxml         4.6.0 [required by odoc]


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved camlp-streams.5.0.1  (cached)
-> retrieved cppo.1.8.0  (cached)
-> retrieved crunch.4.0.0  (cached)
-> retrieved fpath.0.7.3  (cached)
-> retrieved ptime.1.2.0  (cached)
-> retrieved tyxml.4.6.0  (cached)
-> installed camlp-streams.5.0.1
-> retrieved odoc.3.1.0, odoc-parser.3.1.0  (cached)
-> installed cppo.1.8.0
-> installed fpath.0.7.3
-> installed ptime.1.2.0
-> installed crunch.4.0.0
-> installed odoc-parser.3.1.0
-> installed tyxml.4.6.0
-> installed odoc.3.1.0
Done.
# Run eval $(opam env) to update the current shell environment
2025-08-30 07:41.49 ---> saved as "5ebb320a308ef0a55a45473a83103640eb8e16f4c4248cf94dba49c29d3f8c26"


/src: (copy (src .) (dst /src/))
2025-08-30 07:41.49 ---> saved as "312774e02ef9daf6fc003d05d0405f0ef43dc09e5acaa26c2b13e40ef886f8ae"


/src: (run (shell "ODOC_WARN_ERROR=false opam exec -- dune build --only-packages=yojson,yojson-five @doc || (echo \"dune build @doc failed\"; exit 2)"))
(cd _build/default/_doc/_html && /home/opam/.opam/4.08/bin/odoc link -I ../_odoc/pkg/yojson -I ../../lib/.yojson.objs/byte -o ../_odocls/yojson/yojson.odocl ../../lib/.yojson.objs/byte/yojson.odoc)
File "lib/raw.mli", line 516, characters 6-70:
Warning: Failed to resolve reference unresolvedroot(Invalid_argument) Couldn't find "Invalid_argument"
File "lib/raw.mli", line 194, characters 24-43:
Warning: Failed to resolve reference unresolvedroot(Format).formatter Couldn't find "Format"
File "lib/safe.mli", line 536, characters 6-70:
Warning: Failed to resolve reference unresolvedroot(Invalid_argument) Couldn't find "Invalid_argument"
File "lib/safe.mli", line 214, characters 24-43:
Warning: Failed to resolve reference unresolvedroot(Format).formatter Couldn't find "Format"
File "lib/basic.mli", line 522, characters 6-70:
Warning: Failed to resolve reference unresolvedroot(Invalid_argument) Couldn't find "Invalid_argument"
File "lib/basic.mli", line 200, characters 24-43:
Warning: Failed to resolve reference unresolvedroot(Format).formatter Couldn't find "Format"
File "lib/t.mli", line 198, characters 24-43:
Warning: While resolving the expansion of include at File "lib/yojson.mli", line 15, character 0
Failed to resolve reference unresolvedroot(Format).formatter Couldn't find "Format"
2025-08-30 07:41.51 ---> saved as "038e5e636dfefa28b72bbf72a3e3e4f9aa632d662844261e26db3357b4fb2fe1"
Job succeeded
2025-08-30 07:41.51: Job succeeded