(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-13-ocaml-5.1/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-13-ocaml-5.1@sha256:0f3f54d6a59d8073c8a97294aa489832c5b4916e739f9294c2b52c48465176b1
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-13\""; 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-13-ocaml-5.1@sha256:0f3f54d6a59d8073c8a97294aa489832c5b4916e739f9294c2b52c48465176b1-wadi.0.1.0-e48542c6b0c57c44b0ef42e7f8c1de6d6e833aa7"
2026-03-30 21:23.36: Using OBuilder spec:
((from ocaml/opam:debian-13-ocaml-5.1@sha256:0f3f54d6a59d8073c8a97294aa489832c5b4916e739f9294c2b52c48465176b1)
 (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-13\\\"\"; 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.36: Got resource from pool OCluster
Building on odawa.caelum.ci.dev
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-13-ocaml-5.1@sha256:0f3f54d6a59d8073c8a97294aa489832c5b4916e739f9294c2b52c48465176b1)
Unable to find image 'ocaml/opam:debian-13-ocaml-5.1@sha256:0f3f54d6a59d8073c8a97294aa489832c5b4916e739f9294c2b52c48465176b1' locally
docker.io/ocaml/opam@sha256:0f3f54d6a59d8073c8a97294aa489832c5b4916e739f9294c2b52c48465176b1: Pulling from ocaml/opam
8f6ad858d0a4: Already exists
69e44424a5e2: Already exists
afd8aac863c4: Already exists
8e947a2e98f4: Already exists
1497695495be: Already exists
dd8dde667620: Already exists
6c8e24e09389: Already exists
82df42eb8f87: Already exists
417be57df8b6: Already exists
93469ace0d3c: Already exists
690b7fb3c88e: Already exists
5e945797c48b: Already exists
f89359597c07: Already exists
3d24804be6e1: Already exists
6223b4e8927d: Already exists
e5255e6ad093: Already exists
4b8862d5191b: Already exists
a97ae6909f09: Already exists
9272e1b13a44: Already exists
4c4ae8dea517: Already exists
58f4c74b02ad: Already exists
d7f5bb85343b: Already exists
4f4fb700ef54: Already exists
5686dd9b80db: Already exists
d6655929e91b: Already exists
202821e2f84c: Already exists
dbfe37502a36: Already exists
03d1d76306ab: Already exists
0cb61df4dd2b: Already exists
9de51b48aa3e: Already exists
7a569ae42189: Already exists
9f66e60fc7d0: Already exists
9c0e93e6cde6: Already exists
52a878b8deac: Already exists
7d5c1811ebd2: Already exists
08ac39eb016e: Already exists
fa3d624a019d: Already exists
bcdad67ff203: Already exists
5535de7c8bad: Already exists
1ffb933c7297: Already exists
01124907da27: Already exists
3b49d8f0d5f4: Pulling fs layer
4d846461ee0f: Pulling fs layer
2a43bbe81036: Pulling fs layer
885a4be0b8c9: Pulling fs layer
2a43bbe81036: Waiting
04dc99090540: Pulling fs layer
4f3ff57e7adc: Pulling fs layer
04dc99090540: Waiting
346989a10576: Pulling fs layer
4f3ff57e7adc: Waiting
885a4be0b8c9: Waiting
4d846461ee0f: Download complete
3b49d8f0d5f4: Pull complete
4d846461ee0f: Pull complete
2a43bbe81036: Verifying Checksum
2a43bbe81036: Download complete
2a43bbe81036: Pull complete
04dc99090540: Verifying Checksum
04dc99090540: Download complete
4f3ff57e7adc: Download complete
346989a10576: Verifying Checksum
346989a10576: Download complete
885a4be0b8c9: Verifying Checksum
885a4be0b8c9: Download complete
885a4be0b8c9: Pull complete
04dc99090540: Pull complete
4f3ff57e7adc: Pull complete
346989a10576: Pull complete
Digest: sha256:0f3f54d6a59d8073c8a97294aa489832c5b4916e739f9294c2b52c48465176b1
Status: Downloaded newer image for ocaml/opam@sha256:0f3f54d6a59d8073c8a97294aa489832c5b4916e739f9294c2b52c48465176b1
2026-03-30 21:23.45 ---> using "b100c7d04ad32242f1daa2c78898a2c2af5411daaf7aa88651e62a9dbb71c3f5" from cache

/: (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:23.45 ---> using "ee12599ec56806d7c4c6c24c26746561f2a92622df13c4090110188b865af06b" 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 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
2026-03-30 21:23.45 ---> using "679144fd0c628246aa332630f43b1cd1c94c11a7a7c7c3cadd62efec8c2e5d71" 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.5.0
# 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.1
# invariant            ["ocaml-base-compiler" {= "5.1.1"}]
# compiler-packages    ocaml-base-compiler.5.1.1, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/5.1/lib/ocaml/stublibs:/home/opam/.opam/5.1/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       5.1.1
2026-03-30 21:23.45 ---> using "83ed76e7f0e2fe1318a5d3ad6fbc6d9d06a8afe05facbb0cd8773baa00bdcb66" 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/"))
2026-03-30 21:23.45 ---> using "0a47c41fce2fe6f1b96e456324d47faa63af5948a09b9fdd8ba4d3ca1c511790" from cache

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

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

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian trixie InRelease
- Get:2 http://deb.debian.org/debian trixie-updates InRelease [47.3 kB]
- Get:3 http://deb.debian.org/debian-security trixie-security InRelease [43.4 kB]
- Get:4 http://deb.debian.org/debian-security trixie-security/main amd64 Packages [114 kB]
- Fetched 205 kB in 0s (1079 kB/s)
- Reading package lists...
2026-03-30 21:24.09 ---> saved as "7efa4504c2e5e1d01cdabadbd45d81e526209e17f7d187aa639257869f58fc39"

/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:24.10 ---> saved as "f4d706b0fb97e2d1ddb85a25e23c7bb06b773ab409bc080dbd873782802f2f81"

/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-13\\\"\"; 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)
-> installed ocamlfind.1.9.8
-> retrieved wadi.0.1.0  (https://github.com/improvingjef/wadi/releases/download/v0.1.0/wadi-0.1.0-source.tar.gz)
[ERROR] The installation of wadi failed at "./scripts/install_release_tree.sh --package-root package --binary _bootstrap/bin/wadi --prefix /home/opam/.opam/5.1".

#=== ERROR while installing wadi.0.1.0 ========================================#
# context              2.5.0 | linux/x86_64 | ocaml-base-compiler.5.1.1 | pinned(https://github.com/improvingjef/wadi/releases/download/v0.1.0/wadi-0.1.0-source.tar.gz)
# path                 ~/.opam/5.1/.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.1
# exit-code            1
# env-file             ~/.opam/log/wadi-7-a876f7.env
# output-file          ~/.opam/log/wadi-7-a876f7.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.1/.opam-switch/backup/state-20260330212411.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-13\""; 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:24.36: Job failed: Failed: Build failed
2026-03-30 21:24.36: Log analysis:
2026-03-30 21:24.36: >>> 
[ERROR] The installation of wadi failed at "./scripts/install_release_tree.sh --package-root package --binary _bootstrap/bin/wadi --prefix /home/opam/.opam/5.1".
 (score = 20)
2026-03-30 21:24.36: The installation of wadi failed at "./scripts/install_release_tree.sh --package-root package --binary _bootstrap/bin/wadi --prefix /home/opam/.opam/5.1".