(for PR #28326)

2025-08-12 04:03.18: New job: build vcr.1.0.0~alpha0, using opam 2.3
                              from https://github.com/ocaml/opam-repository.git#refs/pull/28326/head (d58bd10ebb1b37f6389a3b08d16305ecc873703c)
                              on debian-testing-ocaml-5.3/amd64

To reproduce locally:

cd $(mktemp -d)
git clone --recursive "https://github.com/ocaml/opam-repository.git" && cd "opam-repository" && git fetch origin "refs/pull/28326/head" && git reset --hard d58bd10e
git fetch origin master
git merge --no-edit fb96181bf90338b7e9a1c6a0001541cab4756218
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-testing-ocaml-5.3@sha256:a8f8d237df6cda74820227eb8e310bf1bb1135857a976f86bcfc48f2428a610a
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam
RUN opam init --reinit -ni
RUN opam option solver=builtin-0install && opam config report
ENV OPAMDOWNLOADJOBS="1"
ENV OPAMERRLOGLEN="0"
ENV OPAMPRECISETRACKING="1"
ENV CI="true"
ENV OPAM_REPO_CI="true"
RUN rm -rf opam-repository/
COPY --chown=1000:1000 . opam-repository/
RUN opam repository set-url --strict default opam-repository/
RUN opam update --depexts || true
RUN opam pin add -k version -yn vcr.1.0.0~alpha0 1.0.0~alpha0
RUN opam reinstall vcr.1.0.0~alpha0; \
    res=$?; \
    test "$res" != 31 && exit "$res"; \
    export OPAMCLI=2.0; \
    build_dir=$(opam var prefix)/.opam-switch/build; \
    failed=$(ls "$build_dir"); \
    partial_fails=""; \
    for pkg in $failed; do \
    if opam show -f x-ci-accept-failures: "$pkg" | grep -qF "\"debian-testing\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'vcr.1.0.0~alpha0' && partial_fails="$partial_fails $pkg"; \
    done; \
    test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}"; \
    exit 1

END-OF-DOCKERFILE
docker build -f ../Dockerfile .

2025-08-12 04:03.18: Using cache hint "ocaml/opam:debian-testing-ocaml-5.3@sha256:a8f8d237df6cda74820227eb8e310bf1bb1135857a976f86bcfc48f2428a610a-vcr.1.0.0~alpha0-d58bd10ebb1b37f6389a3b08d16305ecc873703c"
2025-08-12 04:03.18: Using OBuilder spec:
((from ocaml/opam:debian-testing-ocaml-5.3@sha256:a8f8d237df6cda74820227eb8e310bf1bb1135857a976f86bcfc48f2428a610a)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam"))
 (run (network host)
      (shell "opam init --reinit --config .opamrc-sandbox -ni"))
 (run (shell "opam option solver=builtin-0install && opam config report"))
 (env OPAMDOWNLOADJOBS 1)
 (env OPAMERRLOGLEN 0)
 (env OPAMPRECISETRACKING 1)
 (env CI true)
 (env OPAM_REPO_CI true)
 (run (shell "rm -rf opam-repository/"))
 (copy (src .) (dst opam-repository/))
 (run (shell "opam repository set-url --strict default opam-repository/"))
 (run (network host)
      (shell "opam update --depexts || true"))
 (run (shell "opam pin add -k version -yn vcr.1.0.0~alpha0 1.0.0~alpha0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall vcr.1.0.0~alpha0;\
             \n        res=$?;\
             \n        test \"$res\" != 31 && exit \"$res\";\
             \n        export OPAMCLI=2.0;\
             \n        build_dir=$(opam var prefix)/.opam-switch/build;\
             \n        failed=$(ls \"$build_dir\");\
             \n        partial_fails=\"\";\
             \n        for pkg in $failed; do\
             \n          if opam show -f x-ci-accept-failures: \"$pkg\" | grep -qF \"\\\"debian-testing\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'vcr.1.0.0~alpha0' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-08-12 04:03.18: Waiting for resource in pool OCluster
2025-08-12 04:03.19: Waiting for worker…
2025-08-12 04:03.24: Got resource from pool OCluster
Building on asteria.caelum.ci.dev
All commits already cached
HEAD is now at fb96181bf9 Merge pull request #28332 from jmid/fix-bad-checksums
Updating fb96181bf9..d58bd10ebb
Fast-forward
 packages/matrix-term/matrix-term.1.0.0~alpha0/opam | 43 +++++++++++++++++
 packages/matrix/matrix.1.0.0~alpha0/opam           | 45 ++++++++++++++++++
 packages/mosaic/mosaic.1.0.0~alpha0/opam           | 55 ++++++++++++++++++++++
 packages/toffee/toffee.1.0.0~alpha0/opam           | 41 ++++++++++++++++
 packages/vcr/vcr.1.0.0~alpha0/opam                 | 47 ++++++++++++++++++
 5 files changed, 231 insertions(+)
 create mode 100644 packages/matrix-term/matrix-term.1.0.0~alpha0/opam
 create mode 100644 packages/matrix/matrix.1.0.0~alpha0/opam
 create mode 100644 packages/mosaic/mosaic.1.0.0~alpha0/opam
 create mode 100644 packages/toffee/toffee.1.0.0~alpha0/opam
 create mode 100644 packages/vcr/vcr.1.0.0~alpha0/opam

(from ocaml/opam:debian-testing-ocaml-5.3@sha256:a8f8d237df6cda74820227eb8e310bf1bb1135857a976f86bcfc48f2428a610a)
Unable to find image 'ocaml/opam:debian-testing-ocaml-5.3@sha256:a8f8d237df6cda74820227eb8e310bf1bb1135857a976f86bcfc48f2428a610a' locally
docker.io/ocaml/opam@sha256:a8f8d237df6cda74820227eb8e310bf1bb1135857a976f86bcfc48f2428a610a: Pulling from ocaml/opam
722608e21499: Pulling fs layer
722608e21499: Verifying Checksum
722608e21499: Download complete
722608e21499: Pull complete
Digest: sha256:a8f8d237df6cda74820227eb8e310bf1bb1135857a976f86bcfc48f2428a610a
Status: Downloaded newer image for ocaml/opam@sha256:a8f8d237df6cda74820227eb8e310bf1bb1135857a976f86bcfc48f2428a610a
2025-08-12 04:04.36 ---> using "7589f757faeb5a57cc40fa48e60a6f3925978f77875d6f7531121cf7c6d64958" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam"))
2025-08-12 04:04.36 ---> using "f0ea0b3bd45984900c4f07dab214a6868f11b8c2cb4b452878ae8cc006440072" from cache

/home/opam: (run (network host)
                 (shell "opam init --reinit --config .opamrc-sandbox -ni"))
Configuring from /home/opam/.opamrc-sandbox, then /home/opam/.opamrc, and finally 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-08-12 04:04.36 ---> using "5071ff421e571ee4d53cd5f75f15e8efb5b42bd65cecc9dd83dbed9851aa4c44" from cache

/home/opam: (run (shell "opam option solver=builtin-0install && opam config report"))
Set to 'builtin-0install' the field solver in global configuration
# opam config report
# opam-version         2.3.0 (35acd0c5abc5e66cdbd5be16ba77aa6c33a4c724)
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=debian os-version=13
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 255
# repositories         1 (version-controlled)
# pinned               1 (version)
# current-switch       5.3
# invariant            ["ocaml-base-compiler" {= "5.3.0"}]
# compiler-packages    ocaml-base-compiler.5.3.0, ocaml-compiler.5.3.0, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/5.3/lib/ocaml/stublibs:/home/opam/.opam/5.3/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       5.3.0
2025-08-12 04:04.36 ---> using "f716dcb2efd21488520a7b678e013e18e0e12c7ec00ca4046890d0b9911c9862" from cache

/home/opam: (env OPAMDOWNLOADJOBS 1)

/home/opam: (env OPAMERRLOGLEN 0)

/home/opam: (env OPAMPRECISETRACKING 1)

/home/opam: (env CI true)

/home/opam: (env OPAM_REPO_CI true)

/home/opam: (run (shell "rm -rf opam-repository/"))
2025-08-12 04:04.36 ---> using "091f3e8f35b86adb76b2a4ac11108ef22166b0098c9970d54a0dc7823c74084d" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-08-12 04:04.43 ---> saved as "eb083768ff065ce0694031d2e3928f9ddd83b23fc0d73672fdd469468376d1e2"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-08-12 04:05.02 ---> saved as "934821d08c813491009483f63ba22229f4b44f90ab9031c1a3f8713dd610e4b7"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Get:1 http://deb.debian.org/debian testing InRelease [124 kB]
- Get:2 http://deb.debian.org/debian testing-updates InRelease [45.1 kB]
- Get:3 http://deb.debian.org/debian-security testing-security InRelease [43.4 kB]
- Reading package lists...
- E: Repository 'http://deb.debian.org/debian testing InRelease' changed its 'Codename' value from 'trixie' to 'forky'
- E: Repository 'http://deb.debian.org/debian testing-updates InRelease' changed its 'Codename' value from 'trixie-updates' to 'forky-updates'
- E: Repository 'http://deb.debian.org/debian-security testing-security InRelease' changed its 'Codename' value from 'trixie-security' to 'forky-security'
Fatal error: System package update failed with exit code 100 at command:
    sudo apt-get update
2025-08-12 04:05.03 ---> saved as "87b74354f3a8ceb0b2053e17aae761fb7a829fa7d7fa9082ed6f6d3f53d4f90f"

/home/opam: (run (shell "opam pin add -k version -yn vcr.1.0.0~alpha0 1.0.0~alpha0"))
vcr is now pinned to version 1.0.0~alpha0
2025-08-12 04:05.04 ---> saved as "1a188e4381ddb78c630ce4546670159e80c48377fdc66577d083f162d89845ac"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall vcr.1.0.0~alpha0;\
                        \n        res=$?;\
                        \n        test \"$res\" != 31 && exit \"$res\";\
                        \n        export OPAMCLI=2.0;\
                        \n        build_dir=$(opam var prefix)/.opam-switch/build;\
                        \n        failed=$(ls \"$build_dir\");\
                        \n        partial_fails=\"\";\
                        \n        for pkg in $failed; do\
                        \n          if opam show -f x-ci-accept-failures: \"$pkg\" | grep -qF \"\\\"debian-testing\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'vcr.1.0.0~alpha0' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
vcr.1.0.0~alpha0 is not installed. Install it? [y/n] y
The following actions will be performed:
=== install 18 packages
  - install cmdliner   1.3.0                 [required by vcr]
  - install dune       3.19.1                [required by vcr]
  - install fmt        0.11.0                [required by vcr]
  - install gg         1.0.0                 [required by vg]
  - install logs       0.9.0                 [required by vcr]
  - install matrix     1.0.0~alpha0          [required by vcr]
  - install menhir     20240715              [required by vcr]
  - install menhirCST  20240715              [required by menhir]
  - install menhirLib  20240715              [required by menhir]
  - install menhirSdk  20240715              [required by menhir]
  - install ocamlbuild 0.16.1                [required by logs, fmt, vg]
  - install ocamlfind  1.9.8                 [required by logs, fmt, vg]
  - install topkg      1.1.0                 [required by logs, fmt, vg]
  - install uucp       16.0.0                [required by matrix]
  - install uuseg      16.0.0                [required by matrix]
  - install uutf       1.0.4                 [required by matrix]
  - install vcr        1.0.0~alpha0 (pinned)
  - install vg         0.9.5                 [required by vcr]

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved cmdliner.1.3.0  (cached)
-> retrieved dune.3.19.1  (cached)
-> retrieved fmt.0.11.0  (cached)
-> retrieved gg.1.0.0  (cached)
-> retrieved logs.0.9.0  (cached)
-> installed cmdliner.1.3.0
-> retrieved matrix.1.0.0~alpha0, vcr.1.0.0~alpha0  (cached)
-> retrieved menhir.20240715, menhirCST.20240715, menhirLib.20240715, menhirSdk.20240715  (cached)
-> retrieved ocamlbuild.0.16.1  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved topkg.1.1.0  (cached)
-> retrieved uucp.16.0.0  (cached)
-> retrieved uuseg.16.0.0  (cached)
-> retrieved uutf.1.0.4  (cached)
-> retrieved vg.0.9.5  (cached)
-> installed ocamlfind.1.9.8
-> installed ocamlbuild.0.16.1
-> installed topkg.1.1.0
-> installed uutf.1.0.4
-> installed fmt.0.11.0
-> installed gg.1.0.0
-> installed logs.0.9.0
-> installed vg.0.9.5
-> installed dune.3.19.1
-> installed menhirCST.20240715
-> installed menhirSdk.20240715
-> installed menhirLib.20240715
-> installed menhir.20240715
-> installed uucp.16.0.0
-> installed uuseg.16.0.0
-> installed matrix.1.0.0~alpha0
[ERROR] The compilation of vcr.1.0.0~alpha0 failed at "dune build -p vcr -j 255 @install".

#=== ERROR while compiling vcr.1.0.0~alpha0 ===================================#
# context              2.3.0 | linux/x86_64 | ocaml-base-compiler.5.3.0 | pinned(https://github.com/tmattio/mosaic/releases/download/1.0.0_alpha0/mosaic-1.0.0.alpha0.tbz)
# path                 ~/.opam/5.3/.opam-switch/build/vcr.1.0.0~alpha0
# command              ~/.opam/opam-init/hooks/sandbox.sh build dune build -p vcr -j 255 @install
# exit-code            1
# env-file             ~/.opam/log/vcr-7-c6ae6c.env
# output-file          ~/.opam/log/vcr-7-c6ae6c.out
### output ###
# File "vcr/lib/dune", line 9, characters 2-10:
# 9 |   eio.unix
#       ^^^^^^^^
# Error: Library "eio.unix" not found.
# -> required by library "vcr" in _build/default/vcr/lib
# -> required by executable main in vcr/bin/dune:2
# -> required by _build/default/vcr/bin/main.exe
# -> required by _build/install/default/bin/vcr
# -> required by _build/default/vcr.install
# -> required by alias install
# File "vcr/vendor/camlzip/dune", line 7, characters 12-24:
# 7 |  (libraries stdlib-shims)
#                 ^^^^^^^^^^^^
# Error: Library "stdlib-shims" not found.
# -> required by library "vcr.zip" in _build/default/vcr/vendor/camlzip
# -> required by _build/default/vcr/vendor/camlzip/zlibstubs.o
# -> required by _build/default/vcr/vendor/camlzip/dllzip_stubs.so
# -> required by _build/install/default/lib/stublibs/dllzip_stubs.so
# -> required by _build/default/vcr.install
# -> required by alias install
# File "vcr/vendor/freetype/config/dune", line 3, characters 12-29:
# 3 |  (libraries dune-configurator))
#                 ^^^^^^^^^^^^^^^^^
# Error: Library "dune-configurator" not found.
# -> required by _build/default/vcr/vendor/freetype/config/discover.exe
# -> required by _build/default/vcr/vendor/freetype/lib/c_library_flags
# -> required by (:include
#    _build/default/vcr/vendor/freetype/lib/c_library_flags) at
#    vcr/vendor/freetype/lib/dune:19
# -> required by _build/default/vcr/vendor/freetype/lib/dllfreetype_stubs.so
# -> required by _build/install/default/lib/stublibs/dllfreetype_stubs.so
# -> required by _build/default/vcr.install
# -> required by alias install
# File "vcr/vendor/harfbuzz/config/dune", line 3, characters 12-29:
# 3 |  (libraries dune-configurator))
#                 ^^^^^^^^^^^^^^^^^
# Error: Library "dune-configurator" not found.
# -> required by _build/default/vcr/vendor/harfbuzz/config/discover.exe
# -> required by _build/default/vcr/vendor/harfbuzz/lib/c_library_flags
# -> required by (:include
#    _build/default/vcr/vendor/harfbuzz/lib/c_library_flags) at
#    vcr/vendor/harfbuzz/lib/dune:20
# -> required by _build/default/vcr/vendor/harfbuzz/lib/dllharfbuzz_stubs.so
# -> required by _build/install/default/lib/stublibs/dllharfbuzz_stubs.so
# -> required by _build/default/vcr.install
# -> required by alias install
# File "vcr/vendor/camlzip/config/dune", line 3, characters 12-29:
# 3 |  (libraries dune.configurator))
#                 ^^^^^^^^^^^^^^^^^
# Error: Library "dune.configurator" not found.
# -> required by _build/default/vcr/vendor/camlzip/config/discover.exe
# -> required by _build/default/vcr/vendor/camlzip/c_library_flags.sexp
# -> required by (:include
#    _build/default/vcr/vendor/camlzip/c_library_flags.sexp) at
#    vcr/vendor/camlzip/dune:14
# -> required by _build/default/vcr/vendor/camlzip/dllzip_stubs.so
# -> required by _build/install/default/lib/stublibs/dllzip_stubs.so
# -> required by _build/default/vcr.install
# -> required by alias install
# (cd _build/.sandbox/f4495eff95977eeed7b209309b5faaa2/default && /home/opam/.opam/5.3/bin/menhir --explain vcr/lib/tape_lang/parser.mly --base vcr/lib/tape_lang/parser --infer-read-reply vcr/lib/tape_lang/parser__mock.mli.inferred)
# Warning: one state has shift/reduce conflicts.
# Warning: 2 shift/reduce conflicts were arbitrarily resolved.



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build vcr 1.0.0~alpha0
+- 
+- The following changes have been performed
| - install cmdliner   1.3.0
| - install dune       3.19.1
| - install fmt        0.11.0
| - install gg         1.0.0
| - install logs       0.9.0
| - install matrix     1.0.0~alpha0
| - install menhir     20240715
| - install menhirCST  20240715
| - install menhirLib  20240715
| - install menhirSdk  20240715
| - install ocamlbuild 0.16.1
| - install ocamlfind  1.9.8
| - install topkg      1.1.0
| - install uucp       16.0.0
| - install uuseg      16.0.0
| - install uutf       1.0.4
| - install vg         0.9.5
+- 
# To update the current shell environment, run: eval $(opam env)

The former state can be restored with:
    /usr/bin/opam switch import "/home/opam/.opam/5.3/.opam-switch/backup/state-20250812040505.export"
[WARNING] OPAMCONFIRMLEVEL was ignored because CLI 2.0 was requested and it was introduced in 2.1.
[WARNING] OPAMCONFIRMLEVEL was ignored because CLI 2.0 was requested and it was introduced in 2.1.
"/usr/bin/env" "bash" "-c" "opam reinstall vcr.1.0.0~alpha0;
        res=$?;
        test "$res" != 31 && exit "$res";
        export OPAMCLI=2.0;
        build_dir=$(opam var prefix)/.opam-switch/build;
        failed=$(ls "$build_dir");
        partial_fails="";
        for pkg in $failed; do
          if opam show -f x-ci-accept-failures: "$pkg" | grep -qF "\"debian-testing\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'vcr.1.0.0~alpha0' && partial_fails="$partial_fails $pkg";
        done;
        test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}";
        exit 1" failed with exit status 1
2025-08-12 04:06.01: Job failed: Failed: Build failed
2025-08-12 04:06.01: Log analysis:
2025-08-12 04:06.01: >>> 
[ERROR] The compilation of vcr.1.0.0~alpha0 failed at "dune build -p vcr -j 255 @install".
 (score = 20)
2025-08-12 04:06.01: >>> 
# Error: Library "eio.unix" not found.
 (score = 48)
2025-08-12 04:06.01: >>> 
# Error: Library "stdlib-shims" not found.
 (score = 48)
2025-08-12 04:06.01: >>> 
# Error: Library "dune-configurator" not found.
 (score = 48)
2025-08-12 04:06.01: >>> 
# Error: Library "dune-configurator" not found.
 (score = 48)
2025-08-12 04:06.01: >>> 
# Error: Library "dune.configurator" not found.
 (score = 48)
2025-08-12 04:06.01: Library "eio.unix" not found.