(for PR #29110)

2026-04-27 07:45.26: New job: build conf-llvm-shared.21, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29110/head (e3b282a9c0eb1ef824245e3ffb935dc8fcc9b1ea)
                              on debian-13-ocaml-5.5-beta1/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/29110/head" && git reset --hard e3b282a9
git fetch origin master
git merge --no-edit d5058a91d400180e2118d7eeefa040cfcee45d2c
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-13-ocaml-5.5-beta1@sha256:2f03876e840edf3bcf2cd33a6b5b1e9ee40ad45e5d26f5be08f5d20a90f4bcf6
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 conf-llvm-shared.21 21
RUN opam reinstall conf-llvm-shared.21; \
    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" != 'conf-llvm-shared.21' && 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-04-27 07:45.26: Using cache hint "ocaml/opam:debian-13-ocaml-5.5-beta1@sha256:2f03876e840edf3bcf2cd33a6b5b1e9ee40ad45e5d26f5be08f5d20a90f4bcf6-conf-llvm-shared.21-e3b282a9c0eb1ef824245e3ffb935dc8fcc9b1ea"
2026-04-27 07:45.26: Using OBuilder spec:
((from ocaml/opam:debian-13-ocaml-5.5-beta1@sha256:2f03876e840edf3bcf2cd33a6b5b1e9ee40ad45e5d26f5be08f5d20a90f4bcf6)
 (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 conf-llvm-shared.21 21"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall conf-llvm-shared.21;\
             \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\" != 'conf-llvm-shared.21' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2026-04-27 07:45.26: Connecting to build cluster…
2026-04-27 07:45.26: Waiting for resource in pool OCluster
2026-04-27 08:00.52: Waiting for worker…
2026-04-27 08:02.59: Got resource from pool OCluster
Building on clete.caelum.ci.dev
All commits already cached
HEAD is now at d5058a91d4 Merge pull request #29801 from YuriyKrasilnikov/opam-publish-idna.0.4.0
Merge made by the 'ort' strategy.
 packages/conf-llvm-shared/conf-llvm-shared.20/opam | 38 +++++++++++
 packages/conf-llvm-shared/conf-llvm-shared.21/opam | 38 +++++++++++
 packages/conf-llvm-static/conf-llvm-static.20/opam | 38 +++++++++++
 packages/conf-llvm-static/conf-llvm-static.21/opam | 38 +++++++++++
 packages/llvm/llvm.20-shared/opam                  | 77 ++++++++++++++++++++++
 packages/llvm/llvm.20-static/opam                  | 76 +++++++++++++++++++++
 packages/llvm/llvm.21-shared/opam                  | 77 ++++++++++++++++++++++
 packages/llvm/llvm.21-static/opam                  | 76 +++++++++++++++++++++
 8 files changed, 458 insertions(+)
 create mode 100644 packages/conf-llvm-shared/conf-llvm-shared.20/opam
 create mode 100644 packages/conf-llvm-shared/conf-llvm-shared.21/opam
 create mode 100644 packages/conf-llvm-static/conf-llvm-static.20/opam
 create mode 100644 packages/conf-llvm-static/conf-llvm-static.21/opam
 create mode 100644 packages/llvm/llvm.20-shared/opam
 create mode 100644 packages/llvm/llvm.20-static/opam
 create mode 100644 packages/llvm/llvm.21-shared/opam
 create mode 100644 packages/llvm/llvm.21-static/opam

(from ocaml/opam:debian-13-ocaml-5.5-beta1@sha256:2f03876e840edf3bcf2cd33a6b5b1e9ee40ad45e5d26f5be08f5d20a90f4bcf6)
Unable to find image 'ocaml/opam:debian-13-ocaml-5.5-beta1@sha256:2f03876e840edf3bcf2cd33a6b5b1e9ee40ad45e5d26f5be08f5d20a90f4bcf6' locally
docker.io/ocaml/opam@sha256:2f03876e840edf3bcf2cd33a6b5b1e9ee40ad45e5d26f5be08f5d20a90f4bcf6: Pulling from ocaml/opam
3b32e3bb7338: Already exists
745aa02d649b: Already exists
bc737f5d3c43: Already exists
435aae15a5aa: Already exists
0c18c39f6bae: Already exists
eef74b82df23: Already exists
f7d9cf0406d8: Already exists
01a1dc37e798: Already exists
4960811e07ec: Already exists
be2894c36d5e: Already exists
b5a017ae191d: Already exists
3ba39ce4e9c9: Already exists
1db570dbe1c8: Already exists
753bb4b44994: Already exists
b5a1e811909d: Already exists
6f3d83ba47b6: Already exists
002305272cbf: Already exists
002305272cbf: Already exists
249535cd82cd: Already exists
87fe8c2a0989: Already exists
b6932f04a343: Already exists
17b274223ca8: Already exists
4f4fb700ef54: Already exists
924952a8fbf8: Already exists
17671b650f63: Already exists
9fe75d873195: Already exists
24216535046d: Already exists
ac2e1c9e90df: Already exists
c2126be13b26: Already exists
01ff22a5eb70: Already exists
50415235a68f: Already exists
deb6182b549b: Already exists
ad728fb9a18c: Already exists
a36bcae85a3d: Already exists
1c746fdc6a3a: Already exists
4351b787b295: Already exists
380abb093977: Already exists
0fc1b10f3fd9: Already exists
966bc35978c3: Already exists
ae53b61ccb9e: Already exists
d8ada9072f1a: Already exists
6a1b081b98a3: Pulling fs layer
32a4a4edd914: Pulling fs layer
51561b4147fc: Pulling fs layer
23328e1884b9: Pulling fs layer
120c50bc5d19: Pulling fs layer
628c53885d4c: Pulling fs layer
44ef7e84e1ef: Pulling fs layer
0ebf89ef9ee0: Pulling fs layer
23328e1884b9: Waiting
44ef7e84e1ef: Waiting
0ebf89ef9ee0: Waiting
120c50bc5d19: Waiting
628c53885d4c: Waiting
51561b4147fc: Verifying Checksum
51561b4147fc: Download complete
32a4a4edd914: Verifying Checksum
32a4a4edd914: Download complete
6a1b081b98a3: Verifying Checksum
6a1b081b98a3: Download complete
628c53885d4c: Download complete
23328e1884b9: Download complete
6a1b081b98a3: Pull complete
32a4a4edd914: Pull complete
51561b4147fc: Pull complete
23328e1884b9: Pull complete
44ef7e84e1ef: Download complete
0ebf89ef9ee0: Verifying Checksum
0ebf89ef9ee0: Download complete
120c50bc5d19: Verifying Checksum
120c50bc5d19: Download complete
120c50bc5d19: Pull complete
628c53885d4c: Pull complete
44ef7e84e1ef: Pull complete
0ebf89ef9ee0: Pull complete
Digest: sha256:2f03876e840edf3bcf2cd33a6b5b1e9ee40ad45e5d26f5be08f5d20a90f4bcf6
Status: Downloaded newer image for ocaml/opam@sha256:2f03876e840edf3bcf2cd33a6b5b1e9ee40ad45e5d26f5be08f5d20a90f4bcf6
2026-04-27 08:03.23 ---> using "603f02c023a1426d4a02d87570a93b0933bb94d7f12e9f446094d14bd1f75796" 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-04-27 08:03.23 ---> using "8ce252bfd2c4cf43a63a513025094ad47f7fe6cf78104b2f6dc84d2ccba189d7" 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 ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[beta] no changes from git+https://github.com/ocaml/ocaml-beta-repository
[default] Initialised
2026-04-27 08:03.23 ---> using "65103e86f93946d6fffc139b5128a8f8f419133508ace1b49b5ca6c6bfb41888" 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.1
# 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         2 (version-controlled)
# pinned               1 (version)
# current-switch       5.5~beta1
# invariant            ["ocaml-base-compiler" {>= "5.5.0~beta1"}]
# compiler-packages    compiler-cloning.enabled, ocaml-base-compiler.5.5.0~beta1, ocaml-compiler.5.5.0~beta1, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/5.5~beta1/lib/ocaml/../stublibs:/home/opam/.opam/5.5~beta1/lib/ocaml/stublibs:/home/opam/.opam/5.5~beta1/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       5.5.0~beta1
# ocaml-compiler:cloned false
# ocaml-compiler:clone-source 
# ocaml-compiler:clone-mechanism 
2026-04-27 08:03.23 ---> using "7163d9da28693b30b794bf44b1e4b9442e8bb15713526255cdecf572aba2ad74" 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-04-27 08:03.23 ---> using "16ab57e36a0ab7eab172ccff2678d7fbd1b69103081527d595051c8b3b2afe92" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2026-04-27 08:03.25 ---> saved as "4b60d16256b886e28d14407e901d74f83cf5a2af5f881d7b5cdf1601391ad29e"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2026-04-27 08:03.46 ---> saved as "86cca228b284d85024e28953adc2cbb5be5ed03e79b12a3069415350ef21f68e"

/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]
- Fetched 90.7 kB in 0s (912 kB/s)
- Reading package lists...
- 
2026-04-27 08:03.48 ---> saved as "02c48e6a516fdb6a79f7d0b7690381244ccc36e7c2c826959f6cdec0a50b023c"

/home/opam: (run (shell "opam pin add -k version -yn conf-llvm-shared.21 21"))
conf-llvm-shared is now pinned to version 21
2026-04-27 08:03.49 ---> saved as "c680e994d85f5dc22e5fd1d2917c907b0673a36c7e5c9a870fff5c9d589a63f0"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall conf-llvm-shared.21;\
                        \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\" != 'conf-llvm-shared.21' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
[ERROR] Package conf-llvm-shared.21 depends on the unavailable system package 'llvm-21-dev'. You can use `--no-depexts' to attempt installation anyway.
"/usr/bin/env" "bash" "-c" "opam reinstall conf-llvm-shared.21;
        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" != 'conf-llvm-shared.21' && partial_fails="$partial_fails $pkg";
        done;
        test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}";
        exit 1" failed with exit status 5
2026-04-27 08:04.22: Job failed: Failed: Build failed
2026-04-27 08:04.22: Log analysis:
2026-04-27 08:04.22: >>> 
[ERROR] Package conf-llvm-shared.21 depends on the unavailable system package 'llvm-21-dev'. You can use `--no-depexts' to attempt installation anyway.
 (score = 100)
2026-04-27 08:04.22: [SKIP] Package not available