(for PR #29620)

2026-03-30 21:23.36: New job: build wadi.0.1.0, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29620/head (e48542c6b0c57c44b0ef42e7f8c1de6d6e833aa7)
                              on debian-unstable-ocaml-5.4/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/29620/head" && git reset --hard e48542c6
git fetch origin master
git merge --no-edit 747f3dca281b5ae6275dfa41069f059ae517126f
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-unstable-ocaml-5.4@sha256:30b31eedd3eb766a5712bd64e6a5cb42bb87a1227b575923b2f0481bd9e0acfd
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-dev /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 wadi.0.1.0 0.1.0
RUN opam reinstall wadi.0.1.0; \
    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-unstable\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'wadi.0.1.0' && 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 .

2026-03-30 21:23.36: Using cache hint "ocaml/opam:debian-unstable-ocaml-5.4@sha256:30b31eedd3eb766a5712bd64e6a5cb42bb87a1227b575923b2f0481bd9e0acfd-wadi.0.1.0-e48542c6b0c57c44b0ef42e7f8c1de6d6e833aa7"
2026-03-30 21:23.36: Using OBuilder spec:
((from ocaml/opam:debian-unstable-ocaml-5.4@sha256:30b31eedd3eb766a5712bd64e6a5cb42bb87a1227b575923b2f0481bd9e0acfd)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "sudo ln -f /usr/bin/opam-dev /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 wadi.0.1.0 0.1.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall wadi.0.1.0;\
             \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-unstable\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'wadi.0.1.0' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2026-03-30 21:23.36: Waiting for resource in pool OCluster
2026-03-30 21:23.36: Waiting for worker…
2026-03-30 21:23.38: Got resource from pool OCluster
Building on bremusa.ocamllabs.io
All commits already cached
HEAD is now at 747f3dca28 Merge pull request #29614 from ocaml/use-setup-ocaml-for-windows-ci
Updating 747f3dca28..e48542c6b0
Fast-forward
 packages/wadi/wadi.0.1.0/opam | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 packages/wadi/wadi.0.1.0/opam

(from ocaml/opam:debian-unstable-ocaml-5.4@sha256:30b31eedd3eb766a5712bd64e6a5cb42bb87a1227b575923b2f0481bd9e0acfd)
Unable to find image 'ocaml/opam:debian-unstable-ocaml-5.4@sha256:30b31eedd3eb766a5712bd64e6a5cb42bb87a1227b575923b2f0481bd9e0acfd' locally
docker.io/ocaml/opam@sha256:30b31eedd3eb766a5712bd64e6a5cb42bb87a1227b575923b2f0481bd9e0acfd: Pulling from ocaml/opam
cfc223668840: Already exists
eef29ee15ab9: Already exists
50f8e67e2e58: Already exists
b9d26bf5f05d: Already exists
75c5c0b090cc: Already exists
7565366359d6: Already exists
18d92a495e06: Already exists
50ca5c1d0182: Already exists
ed1da238ecd3: Already exists
58d6f1922d93: Already exists
426661e86dfa: Already exists
5a820b479e59: Already exists
dbf46a43a36e: Already exists
8df8b765e73e: Already exists
0512d3f28d51: Already exists
cdef9b8401e2: Already exists
080bf4e786dc: Already exists
080bf4e786dc: Already exists
7d714b416ee5: Already exists
63d653d269fa: Already exists
9470dd93c83e: Already exists
65989fc31923: Already exists
4f4fb700ef54: Already exists
c408c528f704: Already exists
be329d9faff7: Already exists
860fc2f88fc4: Already exists
3b98d1f4c0ee: Already exists
45b41ab763c5: Already exists
790f1cedbd8f: Already exists
8ea9b3e75480: Already exists
0fefe4bd68d3: Already exists
872e3afb2935: Already exists
c2bd06443d3c: Already exists
2988dc862105: Already exists
fb1cc58923da: Already exists
8edd0ae4ac5f: Already exists
867176e33c75: Already exists
757b63ecc3da: Already exists
ec6248aa151d: Already exists
f324b6814791: Already exists
72f1c0ec7835: Already exists
b184fe34fdde: Pulling fs layer
bc14559be397: Pulling fs layer
cc0feadcc98a: Pulling fs layer
a897d8b934ad: Pulling fs layer
2f71b88e9b20: Pulling fs layer
a897d8b934ad: Waiting
2e08f7b5dd4a: Pulling fs layer
2f71b88e9b20: Waiting
a9bc0ab28363: Pulling fs layer
2e08f7b5dd4a: Waiting
a9bc0ab28363: Waiting
cc0feadcc98a: Verifying Checksum
cc0feadcc98a: Download complete
b184fe34fdde: Verifying Checksum
b184fe34fdde: Download complete
2f71b88e9b20: Verifying Checksum
2f71b88e9b20: Download complete
b184fe34fdde: Pull complete
2e08f7b5dd4a: Verifying Checksum
2e08f7b5dd4a: Download complete
a9bc0ab28363: Download complete
bc14559be397: Verifying Checksum
bc14559be397: Download complete
a897d8b934ad: Download complete
bc14559be397: Pull complete
cc0feadcc98a: Pull complete
a897d8b934ad: Pull complete
2f71b88e9b20: Pull complete
2e08f7b5dd4a: Pull complete
a9bc0ab28363: Pull complete
Digest: sha256:30b31eedd3eb766a5712bd64e6a5cb42bb87a1227b575923b2f0481bd9e0acfd
Status: Downloaded newer image for ocaml/opam@sha256:30b31eedd3eb766a5712bd64e6a5cb42bb87a1227b575923b2f0481bd9e0acfd
2026-03-30 21:25.02 ---> saved as "3967b878b7b43463b6c1dc2afb7a1ef5cc5e234866968e715ad91567730f0830"

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2026-03-30 21:25.02 ---> saved as "62f9f598cccb980c7b468655049543085d09ca2d3beead1b2d7d739f9b3d1539"

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

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2026-03-30 21:25.27 ---> saved as "d5bede039ba368253c28f49caa0d538f66bc55e10c7fedc9405d75ee481cde98"

/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.5.0
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=debian os-version=unknown
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 71
# repositories         1 (version-controlled)
# pinned               1 (version)
# current-switch       5.4
# invariant            ["ocaml-base-compiler" {= "5.4.1"}]
# compiler-packages    ocaml-base-compiler.5.4.1, ocaml-compiler.5.4.1, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/5.4/lib/ocaml/stublibs:/home/opam/.opam/5.4/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       5.4.1
2026-03-30 21:25.28 ---> saved as "230a321487544503b74c31bb1096cef06cee885d3e54c9a4666fd8e55adfa523"

/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/"))
2026-03-30 21:25.36 ---> saved as "78ab4ced18f7910e1a6529a83145ae3d3a8930ae1f5e55461d29ecb279fc62ef"

/home/opam: (copy (src .) (dst opam-repository/))
2026-03-30 21:25.44 ---> saved as "e4f62cb06fe42c6e94670b6ace5a77efd65a929590fde740ef5666cc57f1910c"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2026-03-30 21:26.01 ---> saved as "b0b577e610d8acd9a46c515cd6a2bf335d407ee2a3041cdd3c5c3cf595b16443"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Get:1 http://deb.debian.org/debian unstable InRelease [187 kB]
- Get:2 http://deb.debian.org/debian unstable/main amd64 Packages.diff/Index [63.6 kB]
- Get:3 http://deb.debian.org/debian unstable/main amd64 Packages T-2026-03-30-2000.00-F-2026-03-28-0800.33.pdiff [345 kB]
- Get:3 http://deb.debian.org/debian unstable/main amd64 Packages T-2026-03-30-2000.00-F-2026-03-28-0800.33.pdiff [345 kB]
- Fetched 596 kB in 2s (268 kB/s)
- Reading package lists...
2026-03-30 21:26.04 ---> saved as "da88b67988eecde83935aab2bae5256def905ab9199e8e60cda6fc176526147b"

/home/opam: (run (shell "opam pin add -k version -yn wadi.0.1.0 0.1.0"))
wadi is now pinned to version 0.1.0
2026-03-30 21:26.04 ---> saved as "cfc52103a04c120e70ab30fdc88f19f94aca31d296b76b24b2709b8be94d8cbf"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall wadi.0.1.0;\
                        \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-unstable\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'wadi.0.1.0' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
wadi.0.1.0 is not installed. Install it? [Y/n] y
The following actions will be performed:
=== install 2 packages
  - install ocamlfind 1.9.8          [required by wadi]
  - install wadi      0.1.0 (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved wadi.0.1.0  (cached)
-> installed ocamlfind.1.9.8
[ERROR] The installation of wadi failed at "./scripts/install_release_tree.sh --package-root package --binary _bootstrap/bin/wadi --prefix /home/opam/.opam/5.4".

#=== ERROR while installing wadi.0.1.0 ========================================#
# context              2.5.0 | linux/x86_64 | ocaml-base-compiler.5.4.1 | pinned(https://github.com/improvingjef/wadi/releases/download/v0.1.0/wadi-0.1.0-source.tar.gz)
# path                 ~/.opam/5.4/.opam-switch/build/wadi.0.1.0
# command              ~/.opam/opam-init/hooks/sandbox.sh install ./scripts/install_release_tree.sh --package-root package --binary _bootstrap/bin/wadi --prefix /home/opam/.opam/5.4
# exit-code            1
# env-file             ~/.opam/log/wadi-7-10d804.env
# output-file          ~/.opam/log/wadi-7-10d804.out
### output ###
# install_release_tree.sh: binary not found: _bootstrap/bin/wadi



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - install wadi 0.1.0
+- 
+- The following changes have been performed
| - install ocamlfind 1.9.8
+- 
# 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.4/.opam-switch/backup/state-20260330212605.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 wadi.0.1.0;
        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-unstable\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'wadi.0.1.0' && 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
2026-03-30 21:26.26: Job failed: Failed: Build failed
2026-03-30 21:26.26: Log analysis:
2026-03-30 21:26.26: >>> 
[ERROR] The installation of wadi failed at "./scripts/install_release_tree.sh --package-root package --binary _bootstrap/bin/wadi --prefix /home/opam/.opam/5.4".
 (score = 20)
2026-03-30 21:26.26: The installation of wadi failed at "./scripts/install_release_tree.sh --package-root package --binary _bootstrap/bin/wadi --prefix /home/opam/.opam/5.4".