(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 archlinux-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:archlinux-ocaml-5.4@sha256:6d7334abafe784c3e655ed0d14224ccbb2df4ae88ad970c3a32f2301986941a6
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 "\"archlinux\""; 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:archlinux-ocaml-5.4@sha256:6d7334abafe784c3e655ed0d14224ccbb2df4ae88ad970c3a32f2301986941a6-wadi.0.1.0-e48542c6b0c57c44b0ef42e7f8c1de6d6e833aa7"
2026-03-30 21:23.36: Using OBuilder spec:
((from ocaml/opam:archlinux-ocaml-5.4@sha256:6d7334abafe784c3e655ed0d14224ccbb2df4ae88ad970c3a32f2301986941a6)
 (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 \"\\\"archlinux\\\"\"; 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 eumache.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:archlinux-ocaml-5.4@sha256:6d7334abafe784c3e655ed0d14224ccbb2df4ae88ad970c3a32f2301986941a6)
Unable to find image 'ocaml/opam:archlinux-ocaml-5.4@sha256:6d7334abafe784c3e655ed0d14224ccbb2df4ae88ad970c3a32f2301986941a6' locally
docker.io/ocaml/opam@sha256:6d7334abafe784c3e655ed0d14224ccbb2df4ae88ad970c3a32f2301986941a6: Pulling from ocaml/opam
b2a51ac4ae49: Already exists
f007d0715520: Already exists
a25a52f37879: Already exists
f5c5a28d39f7: Already exists
8032bea81928: Already exists
17d804f61bb1: Already exists
66e4cbcd38cf: Already exists
fdf15dd7ad97: Already exists
223a0bb89eea: Already exists
862946240769: Already exists
6ee81384c1ac: Already exists
d57d51611674: Already exists
80c0c0092f41: Already exists
48d92b4b4073: Already exists
9f71965f2966: Already exists
4f4fb700ef54: Already exists
1d06525271a5: Already exists
6e7fb40fa95e: Already exists
b576999b3753: Already exists
337b39683aad: Already exists
3d0bc69cb544: Already exists
410b1bd77ae4: Already exists
0e39946ee978: Already exists
8b25b62087ae: Already exists
44d4d0eeec7c: Already exists
81d1202e436a: Already exists
f6fff20bcd2c: Already exists
cc458ecc5648: Already exists
429f97533aca: Already exists
bd5760309360: Already exists
21a3fd6b575c: Already exists
9ab5cdeec674: Already exists
a5004f4728f8: Already exists
5043234189f0: Already exists
01e926f4282f: Pulling fs layer
a68bf74428f2: Pulling fs layer
02eb2b627147: Pulling fs layer
01e926f4282f: Waiting
279bb8fe6c67: Pulling fs layer
32c4d4e2301e: Pulling fs layer
a68bf74428f2: Waiting
02eb2b627147: Waiting
279bb8fe6c67: Waiting
32c4d4e2301e: Waiting
01e926f4282f: Verifying Checksum
01e926f4282f: Download complete
01e926f4282f: Pull complete
02eb2b627147: Download complete
279bb8fe6c67: Verifying Checksum
279bb8fe6c67: Download complete
32c4d4e2301e: Verifying Checksum
32c4d4e2301e: Download complete
a68bf74428f2: Verifying Checksum
a68bf74428f2: Download complete
a68bf74428f2: Pull complete
02eb2b627147: Pull complete
279bb8fe6c67: Pull complete
32c4d4e2301e: Pull complete
Digest: sha256:6d7334abafe784c3e655ed0d14224ccbb2df4ae88ad970c3a32f2301986941a6
Status: Downloaded newer image for ocaml/opam@sha256:6d7334abafe784c3e655ed0d14224ccbb2df4ae88ad970c3a32f2301986941a6
2026-03-30 21:23.59 ---> using "b154aaca01a6b094bda620005a4dae9c9c090b7778dd32a048d28a5b810c2521" 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 "faa2147b4a12fba2a0334c1c8b958c130f9260c1231072a8849d733fca59c9a7" 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 "7d7e3024c8458dae210f76d64bd2f76df7bd5054b3285e1052c2ecc74959cd52" 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=arch os-version=20260322.0.504324
# 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 "db8959fa6576e98e02a1c125475ec4cd9292d1b2d9facb5a0c8afd5383226215" 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 "c77260faaa529203fc4e4c1b7cf81a7dbfc465a6e648fb382bcc469694e31079" from cache

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

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

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/sbin/sudo "pacman" "-Sy"
- :: Synchronizing package databases...
-  core downloading...
-  extra downloading...
- error: failed retrieving file 'core.db' from fastly.mirror.pkgbuild.com : Resolving timed out after 10000 milliseconds
- error: failed retrieving file 'extra.db' from fastly.mirror.pkgbuild.com : Resolving timed out after 10000 milliseconds
2026-03-30 21:24.51 ---> saved as "64ce5828a405f54ff63ce4fa2c5828facc5656b6f5e94414cde98cd505c16ac5"

/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.51 ---> saved as "f9d7e816ad552433d2137e7d0c44d935609673025cb43843f4218c87c88e34a7"

/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 \"\\\"archlinux\\\"\"; 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
  ∗ ocamlfind 1.9.8          [required by wadi]
  ∗ 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-bf78f5.env
# output-file          ~/.opam/log/wadi-7-bf78f5.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-20260330212452.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 "\"archlinux\""; 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.13: Job failed: Failed: Build failed
2026-03-30 21:25.13: Log analysis:
2026-03-30 21:25.13: >>> 
[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.13: The installation of wadi failed at "./scripts/install_release_tree.sh --package-root package --binary _bootstrap/bin/wadi --prefix /home/opam/.opam/5.4".