(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-12-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-12-ocaml-5.4@sha256:2c2a524eb9fb66f466fcf5a1bcf63299509a80be38bb09e3ce44bca53d024eb4
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-12\""; 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-12-ocaml-5.4@sha256:2c2a524eb9fb66f466fcf5a1bcf63299509a80be38bb09e3ce44bca53d024eb4-wadi.0.1.0-e48542c6b0c57c44b0ef42e7f8c1de6d6e833aa7"
2026-03-30 21:23.36: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-5.4@sha256:2c2a524eb9fb66f466fcf5a1bcf63299509a80be38bb09e3ce44bca53d024eb4)
 (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-12\\\"\"; 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 toxis.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-12-ocaml-5.4@sha256:2c2a524eb9fb66f466fcf5a1bcf63299509a80be38bb09e3ce44bca53d024eb4)
Unable to find image 'ocaml/opam:debian-12-ocaml-5.4@sha256:2c2a524eb9fb66f466fcf5a1bcf63299509a80be38bb09e3ce44bca53d024eb4' locally
docker.io/ocaml/opam@sha256:2c2a524eb9fb66f466fcf5a1bcf63299509a80be38bb09e3ce44bca53d024eb4: Pulling from ocaml/opam
9d2f29087bcd: Already exists
e5b7ca95203b: Already exists
d8e331d9a907: Already exists
91962cd25f64: Already exists
a1bb7be28a9a: Already exists
6b2da949fcf6: Already exists
03f819480d5f: Already exists
1b5945a5b82a: Already exists
5bacc494a020: Already exists
bff2c186f3b1: Already exists
1d881f8ec980: Already exists
6ebadc3cbbda: Already exists
7f6d26142691: Already exists
206a8c8ec031: Already exists
eebc6eceffd1: Already exists
93c55d3d3efd: Already exists
61f3e2cda8d4: Already exists
61f3e2cda8d4: Already exists
026ea807cfb9: Already exists
1b178fc275a2: Already exists
63912c2fc3ab: Already exists
29344c19d001: Already exists
4f4fb700ef54: Already exists
dbc4e7f02329: Already exists
5038c7718d8e: Already exists
a4f127028e67: Already exists
c2d572057066: Already exists
92b4564349d7: Already exists
242ac804b551: Already exists
e5d27b5d5883: Already exists
d700890117a5: Already exists
5ef4022af582: Already exists
d6ccda6eed3d: Already exists
a0c5105cee28: Already exists
268c58878a14: Already exists
92a1d0738765: Already exists
b260703a5023: Already exists
04e8e5ea6e65: Already exists
9347f3233824: Already exists
aebbe01133fa: Already exists
58197e4323ff: Already exists
4f1fc35ef3da: Pulling fs layer
5cb39cc885e1: Pulling fs layer
8ebe51c72383: Pulling fs layer
c97a0546e9f6: Pulling fs layer
3f4dfbf4360d: Pulling fs layer
5cb39cc885e1: Waiting
8ebe51c72383: Waiting
c97a0546e9f6: Waiting
3f4dfbf4360d: Waiting
6b66c34c7ba2: Pulling fs layer
e768fe32016b: Pulling fs layer
6b66c34c7ba2: Waiting
e768fe32016b: Waiting
4f1fc35ef3da: Verifying Checksum
4f1fc35ef3da: Download complete
4f1fc35ef3da: Pull complete
5cb39cc885e1: Download complete
5cb39cc885e1: Pull complete
8ebe51c72383: Verifying Checksum
8ebe51c72383: Download complete
8ebe51c72383: Pull complete
3f4dfbf4360d: Verifying Checksum
3f4dfbf4360d: Download complete
6b66c34c7ba2: Download complete
e768fe32016b: Verifying Checksum
e768fe32016b: Download complete
c97a0546e9f6: Verifying Checksum
c97a0546e9f6: Download complete
c97a0546e9f6: Pull complete
3f4dfbf4360d: Pull complete
6b66c34c7ba2: Pull complete
e768fe32016b: Pull complete
Digest: sha256:2c2a524eb9fb66f466fcf5a1bcf63299509a80be38bb09e3ce44bca53d024eb4
Status: Downloaded newer image for ocaml/opam@sha256:2c2a524eb9fb66f466fcf5a1bcf63299509a80be38bb09e3ce44bca53d024eb4
2026-03-30 21:23.59 ---> using "5a0c6f35df9caaf887443a65d7fc4866827168b7064927b40b28570bd9b9284c" 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.59 ---> using "1932bf814b35050bed27b01a8b8137ad40635ec89f4a223ab2f5ebf7a5ea38f8" 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
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2026-03-30 21:23.59 ---> using "78e40b015beb68492cdf983393ebecdcb5cb32af382d5452df43d0ec6a00a992" 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=12
# 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:23.59 ---> using "107d86e6681715814f31d63729d5d4aa2333f6bd9caf5e2975deb0b0d17e3e8a" 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.59 ---> using "25c86d431377d7f0231a36777c4bd0672c60e6301ea61c189c6b4ef6b984167e" from cache

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

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

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /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 [294 kB]
- Fetched 397 kB in 1s (787 kB/s)
- Reading package lists...
- 
2026-03-30 21:24.26 ---> saved as "03f126185ace5c578afbd19afd82bf557be1f5618d411c3d5a201a24b8552a40"

/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.27 ---> saved as "e693c9c57421055d4a23dbbd67380b4e8280aab9962d3dfea96ce5a70477b978"

/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-12\\\"\"; 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.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-366818.env
# output-file          ~/.opam/log/wadi-7-366818.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-20260330212428.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-12\""; 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.46: Job failed: Failed: Build failed
2026-03-30 21:24.46: Log analysis:
2026-03-30 21:24.46: >>> 
[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:24.46: The installation of wadi failed at "./scripts/install_release_tree.sh --package-root package --binary _bootstrap/bin/wadi --prefix /home/opam/.opam/5.4".