Organisationsocaml-communityyojsonce6e25 ()(lint-doc)

(lint-doc)

Logs

Show full logs
2025-03-19 18:26.41: 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.03@sha256:0e5bc00472634eb688085128508771c2e73292812ed22ea3b19cd1f976968e96
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.03@sha256:0e5bc00472634eb688085128508771c2e73292812ed22ea3b19cd1f976968e96
# debian-12-4.03_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 cb8df6db0195538a02cc2b2eb20e468f22c475a7 || git fetch origin master) && git reset -q --hard cb8df6db0195538a02cc2b2eb20e468f22c475a7 && 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.1.0 astring.0.8.3 base-bigarray.base base-bytes.base base-threads.base base-unix.base cmdliner.1.0.4 dune.3.17.2 fmt.0.8.6 ocaml.4.03.0 ocaml-base-compiler.4.03.0 ocaml-config.1 ocaml-secondary-compiler.4.14.2 ocamlbuild.0.14.3 ocamlfind.1.9.6 ocamlfind-secondary.1.9.6 re.1.11.0 seq.0.3.1 stdlib-shims.0.3.0 topkg.1.0.4 uuidm.0.9.7"
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

2025-03-19 18:26.41: Using cache hint "ocaml-community/yojson-ocaml/opam:debian-12-ocaml-4.03@sha256:0e5bc00472634eb688085128508771c2e73292812ed22ea3b19cd1f976968e96-debian-12-4.03_opam-2.3-346fa99768e5eed7d7a9c506d62d9b7c"
2025-03-19 18:26.41: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.03@sha256:0e5bc00472634eb688085128508771c2e73292812ed22ea3b19cd1f976968e96)
 (comment debian-12-4.03_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 cb8df6db0195538a02cc2b2eb20e468f22c475a7 || git fetch origin master) && git reset -q --hard cb8df6db0195538a02cc2b2eb20e468f22c475a7 && 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.1.0 astring.0.8.3 base-bigarray.base base-bytes.base base-threads.base base-unix.base cmdliner.1.0.4 dune.3.17.2 fmt.0.8.6 ocaml.4.03.0 ocaml-base-compiler.4.03.0 ocaml-config.1 ocaml-secondary-compiler.4.14.2 ocamlbuild.0.14.3 ocamlfind.1.9.6 ocamlfind-secondary.1.9.6 re.1.11.0 seq.0.3.1 stdlib-shims.0.3.0 topkg.1.0.4 uuidm.0.9.7")
 (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)"))
)

2025-03-19 18:26.41: Waiting for resource in pool OCluster
2025-03-19 19:26.43: Waiting for worker…
2025-03-19 19:29.38: Got resource from pool OCluster
Building on doris.caelum.ci.dev
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.03@sha256:0e5bc00472634eb688085128508771c2e73292812ed22ea3b19cd1f976968e96)
2025-03-19 19:29.38 ---> using "27097804500e2acd260d3de230bbeea3beab564a591203a43059b024d6477665" from cache

/: (comment debian-12-4.03_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"))
2025-03-19 19:29.38 ---> using "c71483c9fe5c432c2538f63bcd56904f748b4ac49a168865fbeda0e1dfc995e2" 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 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 ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ERROR] Could not update repository "opam-repository-archive": "/usr/bin/git fetch -q" exited with code 128 "fatal: unable to access 'https://github.com/ocaml/opam-repository-archive/': Could not resolve host: github.com"
[default] synchronised from file:///home/opam/opam-repository
2025-03-19 19:29.38 ---> using "595485e64e126cddd3278fc2522b6fcb44240d6ec9a55ded4b3a6d81e54f92a1" from cache

/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-134-generic
The OCaml toplevel, version 4.03.0
2.2.1
2025-03-19 19:29.38 ---> using "fa66398c46d274c099723e1f6c0251d6324c4965b27ab395e250c44091e4e94d" from cache

/src: (workdir /src)

/src: (run (shell "sudo chown opam /src"))
2025-03-19 19:29.38 ---> using "8bf184454bf2168457c05b7e4bfdbb3062e3d2bea8a03349ee7719213ee5b2bb" from cache

/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
           (network host)
           (shell "cd ~/opam-repository && (git cat-file -e cb8df6db0195538a02cc2b2eb20e468f22c475a7 || git fetch origin master) && git reset -q --hard cb8df6db0195538a02cc2b2eb20e468f22c475a7 && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
 * branch                  master     -> FETCH_HEAD
   a8ed476033..6ccbe63dbf  master     -> origin/master
cb8df6db01 Merge pull request #27631 from dbuenzli/incompatible-cmdliner2

<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[opam-repository-archive] synchronised from git+https://github.com/ocaml/opam-repository-archive
[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
2025-03-19 19:30.22 ---> saved as "5b9279134565c00bc544e94d5b069804042945b5af44ec62ce8d51a5679b9291"

/src: (copy (src yojson.opam yojson-five.opam yojson-bench.opam) (dst ./))
2025-03-19 19:30.22 ---> saved as "ea24afbcb63705e751a6ddebe519013ed6a7eaf780dbcba3d25f2bbd92f6673e"

/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-03-19 19:30.27 ---> saved as "222dcfa6308efc6173c8967bef910f6be8bd470e6f49d3cf12d4fcb0dee02dc1"

/src: (run (network host)
           (shell "echo '(lang dune 3.0)' > './dune-project'"))
2025-03-19 19:30.27 ---> saved as "d5a4b62c92bf0f1cd0a3398535231960928769a2d90a64e5a73790cf23dc30bf"

/src: (env DEPS "alcotest.1.1.0 astring.0.8.3 base-bigarray.base base-bytes.base base-threads.base base-unix.base cmdliner.1.0.4 dune.3.17.2 fmt.0.8.6 ocaml.4.03.0 ocaml-base-compiler.4.03.0 ocaml-config.1 ocaml-secondary-compiler.4.14.2 ocamlbuild.0.14.3 ocamlfind.1.9.6 ocamlfind-secondary.1.9.6 re.1.11.0 seq.0.3.1 stdlib-shims.0.3.0 topkg.1.0.4 uuidm.0.9.7")

/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 [249 kB]
- Fetched 353 kB in 0s (797 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.03.0).
[NOTE] Package ocaml is already installed (current version is 4.03.0).
[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-03-19 19:30.42 ---> saved as "1c8c661a13fbff2343bae79be24c35fa7c2f26527158d26df8468ca784506beb"

/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.03.0).
[NOTE] Package ocaml is already installed (current version is 4.03.0).
[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 14 packages
  - install alcotest            1.1.0
  - install astring             0.8.3
  - install base-bytes          base
  - install cmdliner            1.0.4
  - install dune                3.17.2
  - install fmt                 0.8.6
  - install ocamlbuild          0.14.3
  - install ocamlfind           1.9.6
  - install ocamlfind-secondary 1.9.6
  - install re                  1.11.0
  - install seq                 0.3.1
  - install stdlib-shims        0.3.0
  - install topkg               1.0.4
  - install uuidm               0.9.7

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved astring.0.8.3  (cached)
-> retrieved cmdliner.1.0.4  (cached)
-> retrieved fmt.0.8.6  (cached)
-> retrieved ocamlbuild.0.14.3  (cached)
-> retrieved alcotest.1.1.0  (cached)
-> retrieved ocamlfind.1.9.6, ocamlfind-secondary.1.9.6  (cached)
-> retrieved dune.3.17.2  (cached)
-> retrieved re.1.11.0  (cached)
-> retrieved seq.0.3.1  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> retrieved uuidm.0.9.7  (cached)
-> retrieved topkg.1.0.4  (cached)
-> installed cmdliner.1.0.4
-> installed ocamlbuild.0.14.3
-> installed ocamlfind.1.9.6
-> installed base-bytes.base
-> installed ocamlfind-secondary.1.9.6
-> installed topkg.1.0.4
-> installed uuidm.0.9.7
-> installed astring.0.8.3
-> installed dune.3.17.2
-> installed seq.0.3.1
-> installed stdlib-shims.0.3.0
-> installed re.1.11.0
-> installed fmt.0.8.6
-> installed alcotest.1.1.0
Done.
# Run eval $(opam env) to update the current shell environment
2025-03-19 19:31.26 ---> saved as "a70b28bc5b5c8a7de3cccea238f2f31e0a0b3977c23426f6d606097f708f7437"

/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.2).
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.3 [required by odoc]
  - install odoc          2.4.1
  - install odoc-parser   2.4.1 [required by odoc]
  - install result        1.5   [required by odoc]
  - install tyxml         4.5.0 [required by odoc]
  - install uutf          1.0.3 [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.3  (cached)
-> retrieved result.1.5  (cached)
-> retrieved uutf.1.0.3  (cached)
-> installed camlp-streams.5.0.1
-> retrieved tyxml.4.5.0  (cached)
-> retrieved odoc.2.4.1, odoc-parser.2.4.1  (cached)
-> installed cppo.1.8.0
-> installed fpath.0.7.3
-> installed result.1.5
-> installed uutf.1.0.3
-> 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
2025-03-19 19:31.49 ---> saved as "f3eb3ecedc4215d122b56fd372d5f49c715d05e57bb4f7a02a0ed829398a3c92"

/src: (copy (src .) (dst /src/))
2025-03-19 19:31.49 ---> saved as "c618e2dcbbac98296406aa867d1f8007413a487320b95aa2f8ba94f93db29625"

/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.03/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"
2025-03-19 19:31.50 ---> saved as "a407d5fde9d2dacbc8d4d4371b7013d8f8f845c3d870d6863b5c0023baf0023d"
Job succeeded
2025-03-19 19:31.50: Job succeeded