(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.4-no-flat-float-array/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.4-no-flat-float-array@sha256:cd9c724447c425305513b43f3880ce3897c5ce8a31da07fb65b610967df51365
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.4-no-flat-float-array@sha256:cd9c724447c425305513b43f3880ce3897c5ce8a31da07fb65b610967df51365-wadi.0.1.0-e48542c6b0c57c44b0ef42e7f8c1de6d6e833aa7"
2026-03-30 21:23.36: Using OBuilder spec:
((from ocaml/opam:debian-13-ocaml-5.4-no-flat-float-array@sha256:cd9c724447c425305513b43f3880ce3897c5ce8a31da07fb65b610967df51365)
 (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.38: Got resource from pool OCluster
Building on phoebe.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.4-no-flat-float-array@sha256:cd9c724447c425305513b43f3880ce3897c5ce8a31da07fb65b610967df51365)
Unable to find image 'ocaml/opam:debian-13-ocaml-5.4-no-flat-float-array@sha256:cd9c724447c425305513b43f3880ce3897c5ce8a31da07fb65b610967df51365' locally
docker.io/ocaml/opam@sha256:cd9c724447c425305513b43f3880ce3897c5ce8a31da07fb65b610967df51365: 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
96ed535ae8ec: Pulling fs layer
f3e56fb63ede: Pulling fs layer
96ed535ae8ec: Waiting
b2262b4246c3: Pulling fs layer
f0ddd09876e3: Pulling fs layer
970f5d2ed595: Pulling fs layer
f3e56fb63ede: Waiting
f0ddd09876e3: Waiting
96ab8ca3e249: Pulling fs layer
b2262b4246c3: Waiting
970f5d2ed595: Waiting
f1bd38567f69: Pulling fs layer
f1bd38567f69: Waiting
96ed535ae8ec: Verifying Checksum
96ed535ae8ec: Download complete
96ed535ae8ec: Pull complete
f3e56fb63ede: Download complete
f3e56fb63ede: Pull complete
970f5d2ed595: Download complete
b2262b4246c3: Verifying Checksum
b2262b4246c3: Download complete
b2262b4246c3: Pull complete
f1bd38567f69: Download complete
96ab8ca3e249: Verifying Checksum
96ab8ca3e249: Download complete
f0ddd09876e3: Verifying Checksum
f0ddd09876e3: Download complete
f0ddd09876e3: Pull complete
970f5d2ed595: Pull complete
96ab8ca3e249: Pull complete
f1bd38567f69: Pull complete
Digest: sha256:cd9c724447c425305513b43f3880ce3897c5ce8a31da07fb65b610967df51365
Status: Downloaded newer image for ocaml/opam@sha256:cd9c724447c425305513b43f3880ce3897c5ce8a31da07fb65b610967df51365
2026-03-30 21:24.10 ---> using "03d46e737d2aa406ab5e76c92464242ed84bdde0566125bdd621b3640ed035a8" 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:24.10 ---> using "4e1927e00334f370ddbbfb4036296bf327d73efbb65a4deb56b972379351e745" 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:24.10 ---> using "b4abdca5f31d858fb3730f580e8775ac638f13b82a6cc36575747f26349df3a3" 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                 71
# repositories         1 (version-controlled)
# pinned               1 (version)
# current-switch       5.4
# invariant            ["ocaml-variants" {= "5.4.1+options"}]
# compiler-packages    ocaml-compiler.5.4.1, ocaml-option-no-flat-float-array.1, ocaml-options-only-no-flat-float-array.1, ocaml-variants.5.4.1+options
# 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+options+no-flat-float-array
2026-03-30 21:24.10 ---> using "85748c008101cc6ec96c72a5b6adbabee4198643c19b465e994747d11925ef99" 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:24.10 ---> using "8ef3eb56ca78a58f39b584c073777968b6589d2bc185e2e53e02c59d56258990" from cache

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

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

/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 (2120 kB/s)
- Reading package lists...
2026-03-30 21:24.40 ---> saved as "ec933281683ded72b1c04ec83ed3dd4787d0158743666f2b55bef05f249ce188"

/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.41 ---> saved as "a1127ccc60435729c940db9ed549dc53384949127c60467bc9a942cc12433a94"

/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)
-> retrieved wadi.0.1.0  (https://github.com/improvingjef/wadi/releases/download/v0.1.0/wadi-0.1.0-source.tar.gz)
-> 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-variants.5.4.1+options | 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-61682a.env
# output-file          ~/.opam/log/wadi-7-61682a.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-20260330212441.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:25.05: Job failed: Failed: Build failed
2026-03-30 21:25.05: Log analysis:
2026-03-30 21:25.05: >>> 
[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:25.05: The installation of wadi failed at "./scripts/install_release_tree.sh --package-root package --binary _bootstrap/bin/wadi --prefix /home/opam/.opam/5.4".