Organisationsocaml-communityyojsonce6e25 (master)(lint-doc)

(lint-doc)

Link Copied
Code Copied

Logs

2024-12-19 22:53.56: New job: test ocaml-community/yojson https://github.com/ocaml-community/yojson.git#refs/heads/master (ce6e2505c52153b36989e1e36abb6dae96a7e703) (linux-x86_64:(lint-doc))
Base: ocaml/opam:debian-12-ocaml-4.02@sha256:bed435992a6e3945bf818c3cbe3cc6eef44916b4dc0be56865cad6594324ad65
Opam project lint documentation


To reproduce locally:


git clone --recursive "https://github.com/ocaml-community/yojson.git" -b "master" && cd "yojson" && git reset --hard ce6e2505
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-4.02@sha256:bed435992a6e3945bf818c3cbe3cc6eef44916b4dc0be56865cad6594324ad65
# debian-12-4.02_opam-2.3
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 5c7ffb23c89c6943b51f8e215548b72a12e3abd1 || git fetch origin master) && git reset -q --hard 5c7ffb23c89c6943b51f8e215548b72a12e3abd1 && 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.0.8.5 astring.0.8.3 base-bigarray.base base-bytes.base base-ocamlbuild.base base-threads.base base-unix.base cmdliner.1.0.2 dune.3.17.1 fmt.0.8.5 host-arch-x86_64.1 host-system-other.1 ocaml.4.02.3 ocaml-base-compiler.4.02.3 ocaml-config.1 ocaml-secondary-compiler.4.14.2 ocamlbuild.0 ocamlfind.1.9.6 ocamlfind-secondary.1.9.6 result.1.4 seq.0.3.1 topkg.1.0.0 uchar.0.0.2 uuidm.0.9.6"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.2 --depext-only -y yojson.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 @doc || (echo "dune build @doc failed"; exit 2)


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


2024-12-19 22:53.56: Using cache hint "ocaml-community/yojson-ocaml/opam:debian-12-ocaml-4.02@sha256:bed435992a6e3945bf818c3cbe3cc6eef44916b4dc0be56865cad6594324ad65-debian-12-4.02_opam-2.3-4c6b1d302165e462e9e3e2bea52f59b9"
2024-12-19 22:53.56: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.02@sha256:bed435992a6e3945bf818c3cbe3cc6eef44916b4dc0be56865cad6594324ad65)
(comment debian-12-4.02_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.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 5c7ffb23c89c6943b51f8e215548b72a12e3abd1 || git fetch origin master) && git reset -q --hard 5c7ffb23c89c6943b51f8e215548b72a12e3abd1 && 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.0.8.5 astring.0.8.3 base-bigarray.base base-bytes.base base-ocamlbuild.base base-threads.base base-unix.base cmdliner.1.0.2 dune.3.17.1 fmt.0.8.5 host-arch-x86_64.1 host-system-other.1 ocaml.4.02.3 ocaml-base-compiler.4.02.3 ocaml-config.1 ocaml-secondary-compiler.4.14.2 ocamlbuild.0 ocamlfind.1.9.6 ocamlfind-secondary.1.9.6 result.1.4 seq.0.3.1 topkg.1.0.0 uchar.0.0.2 uuidm.0.9.6")
(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 $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 @doc || (echo \"dune build @doc failed\"; exit 2)"))
)


2024-12-19 22:53.56: Waiting for resource in pool OCluster
2024-12-20 19:17.35: Waiting for worker…
2024-12-20 19:19.49: Got resource from pool OCluster
Building on x86-bm-c5.sw.ocaml.org
All commits already cached
HEAD is now at ce6e250 Merge pull request #158 from Leonidas-from-XIV/remove-tuple-variant


(from ocaml/opam:debian-12-ocaml-4.02@sha256:bed435992a6e3945bf818c3cbe3cc6eef44916b4dc0be56865cad6594324ad65)
2024-12-20 19:20.18 ---> saved as "fcf810be7ae1815877dda82754ca7f330234e6404c36a6d5dc5ffd8d7743d768"


/: (comment debian-12-4.02_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.2 /usr/bin/opam"))
2024-12-20 19:20.19 ---> saved as "1271a789271ac6a5a93e6590481f7bf95d3f011e7ee8b4475d3b09a7f0816802"


/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 39 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=39 --global
Format upgrade done.


<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
2024-12-20 19:22.01 ---> saved as "0fad59c3dc946eeb4d47148be18df57f115d944842fc65ed74230308336ab929"


/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-126-generic
The OCaml toplevel, version 4.02.3
2.2.1
2024-12-20 19:22.01 ---> saved as "d974eb08121298f282b1580982cc8ea7c566aa5e5ecd43d41a98f5fd9826cd30"


/src: (workdir /src)


/src: (run (shell "sudo chown opam /src"))
2024-12-20 19:22.01 ---> saved as "8668cc0ac8a167cfcae83f3de226b9a3b6d55a0a94a00ac6d2ee0bdc722a5fdb"


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 5c7ffb23c89c6943b51f8e215548b72a12e3abd1 || git fetch origin master) && git reset -q --hard 5c7ffb23c89c6943b51f8e215548b72a12e3abd1 && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
* branch                  master     -> FETCH_HEAD
de786e28db..7990d7d220  master     -> origin/master
5c7ffb23c8 Merge pull request #27137 from maiste/release-dune-3.17.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
2024-12-20 19:23.22 ---> saved as "7fef417a9163b304c0ad32691b32839672e7e86a00de44049da16c6791e231fb"


/src: (copy (src yojson.opam yojson-five.opam yojson-bench.opam) (dst ./))
2024-12-20 19:23.22 ---> saved as "d98de0ab84485dbd83c8c82d758754d205609fb94d7ce881ea616dd4feec443a"


/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)
2024-12-20 19:23.29 ---> saved as "82f344d06c6d192d433662a9bc948a8b489a9474f5a539637c983d121d883888"


/src: (run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
2024-12-20 19:23.29 ---> saved as "2d0cca584d9e5dee85a31d0d009bfa308dd4130d9157c63f24b59c0aef2574f2"


/src: (env DEPS "alcotest.0.8.5 astring.0.8.3 base-bigarray.base base-bytes.base base-ocamlbuild.base base-threads.base base-unix.base cmdliner.1.0.2 dune.3.17.1 fmt.0.8.5 host-arch-x86_64.1 host-system-other.1 ocaml.4.02.3 ocaml-base-compiler.4.02.3 ocaml-config.1 ocaml-secondary-compiler.4.14.2 ocamlbuild.0 ocamlfind.1.9.6 ocamlfind-secondary.1.9.6 result.1.4 seq.0.3.1 topkg.1.0.0 uchar.0.0.2 uuidm.0.9.6")


/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 $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 [236 kB]
- Fetched 339 kB in 0s (1109 kB/s)
- Reading package lists...
- 


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


[NOTE] Package ocaml-secondary-compiler is already installed (current version is 4.14.2).
[NOTE] Package ocaml-config is already installed (current version is 1).
[NOTE] Package ocaml-base-compiler is already installed (current version is 4.02.3).
[NOTE] Package ocaml is already installed (current version is 4.02.3).
[NOTE] Package host-system-other is already installed (current version is 1).
[NOTE] Package host-arch-x86_64 is already installed (current version is 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-ocamlbuild is already installed (current version is base).
[NOTE] Package base-bigarray is already installed (current version is base).
2024-12-20 19:23.57 ---> saved as "47b7e3ad5db9b9e2b844d8e88cf3898d5ad06726b328f5d533679efc119af72a"


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam install $DEPS"))
[NOTE] Package ocaml-secondary-compiler is already installed (current version is 4.14.2).
[NOTE] Package ocaml-config is already installed (current version is 1).
[NOTE] Package ocaml-base-compiler is already installed (current version is 4.02.3).
[NOTE] Package ocaml is already installed (current version is 4.02.3).
[NOTE] Package host-system-other is already installed (current version is 1).
[NOTE] Package host-arch-x86_64 is already installed (current version is 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-ocamlbuild 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 14 packages
- install alcotest            0.8.5
- install astring             0.8.3
- install base-bytes          base
- install cmdliner            1.0.2
- install dune                3.17.1
- install fmt                 0.8.5
- install ocamlbuild          0
- install ocamlfind           1.9.6
- install ocamlfind-secondary 1.9.6
- install result              1.4
- install seq                 0.3.1
- install topkg               1.0.0
- install uchar               0.0.2
- install uuidm               0.9.6


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved cmdliner.1.0.2  (cached)
-> retrieved astring.0.8.3  (cached)
-> retrieved fmt.0.8.5  (cached)
-> installed ocamlbuild.0
-> retrieved ocamlfind.1.9.6, ocamlfind-secondary.1.9.6  (cached)
-> retrieved alcotest.0.8.5  (cached)
-> retrieved result.1.4  (cached)
-> retrieved seq.0.3.1  (cached)
-> retrieved uchar.0.0.2  (cached)
-> retrieved uuidm.0.9.6  (cached)
-> retrieved topkg.1.0.0  (cached)
-> installed uchar.0.0.2
-> retrieved dune.3.17.1  (cached)
-> installed ocamlfind.1.9.6
-> installed base-bytes.base
-> installed ocamlfind-secondary.1.9.6
-> installed dune.3.17.1
-> installed seq.0.3.1
-> installed result.1.4
-> installed topkg.1.0.0
-> installed astring.0.8.3
-> installed cmdliner.1.0.2
-> installed uuidm.0.9.6
-> installed fmt.0.8.5
-> installed alcotest.0.8.5
Done.
# Run eval $(opam env) to update the current shell environment
2024-12-20 19:25.33 ---> saved as "828b77aa6a8b268cb6c4a711c5c77525f7cf796bf0bb3376d4a40756e2f59221"


/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.17.1).
The following actions will be performed:
=== install 9 packages
- install camlp-streams 5.0.1  [required by odoc-parser]
- install cppo          1.8.0  [required by odoc]
- install crunch        1.4.1  [required by odoc]
- install fpath         0.7.2  [required by odoc]
- install odoc          2.4.1
- install odoc-parser   2.4.1  [required by odoc]
- install re            1.10.3 [required by tyxml]
- install tyxml         4.5.0  [required by odoc]
- install uutf          1.0.2  [required by tyxml]


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved camlp-streams.5.0.1  (cached)
-> retrieved cppo.1.8.0  (cached)
-> retrieved crunch.1.4.1  (cached)
-> retrieved fpath.0.7.2  (cached)
-> retrieved re.1.10.3  (cached)
-> retrieved tyxml.4.5.0  (cached)
-> installed camlp-streams.5.0.1
-> retrieved uutf.1.0.2  (cached)
-> retrieved odoc.2.4.1, odoc-parser.2.4.1  (cached)
-> installed fpath.0.7.2
-> installed re.1.10.3
-> installed uutf.1.0.2
-> installed cppo.1.8.0
-> installed odoc-parser.2.4.1
-> installed crunch.1.4.1
-> installed tyxml.4.5.0
-> installed odoc.2.4.1
Done.
# Run eval $(opam env) to update the current shell environment
2024-12-20 19:26.16 ---> saved as "45e2ba30f24d5669dbcee631c6a7f6a36875df2153c320e4a77c785a3deb68e1"


/src: (copy (src .) (dst /src/))
2024-12-20 19:26.16 ---> saved as "caf07c05ba06f30bfa073b6d04923b4a29230145041f2ceabe31f712a60a9cca"


/src: (run (shell "ODOC_WARN_ERROR=false opam exec -- dune build --only-packages=yojson @doc || (echo \"dune build @doc failed\"; exit 2)"))
(cd _build/default/_doc/_html && /home/opam/.opam/4.02/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 197, characters 24-43:
Warning: Failed to resolve reference unresolvedroot(Format).formatter Couldn't find "Format"
File "lib/safe.mli", line 541, characters 6-70:
Warning: Failed to resolve reference unresolvedroot(Invalid_argument) Couldn't find "Invalid_argument"
File "lib/safe.mli", line 222, characters 24-43:
Warning: Failed to resolve reference unresolvedroot(Format).formatter Couldn't find "Format"
File "lib/basic.mli", line 521, characters 6-70:
Warning: Failed to resolve reference unresolvedroot(Invalid_argument) Couldn't find "Invalid_argument"
File "lib/basic.mli", line 202, characters 24-43:
Warning: Failed to resolve reference unresolvedroot(Format).formatter Couldn't find "Format"
File "lib/t.mli", line 199, 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"
2024-12-20 19:26.17 ---> saved as "fc023a8486b04fd858e651ab519bf962579b57d7dda9ff03433076b382341eec"
Job succeeded
2024-12-20 19:26.17: Job succeeded