(for PR #29085)

2025-12-17 15:33.24: New job: build ocaml.5.5.0, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29085/head (d0355feefc1e55d6558a9946775e6b891961f805)
                              on ubuntu-22.04-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/29085/head" && git reset --hard d0355fee
git fetch origin master
git merge --no-edit c199949faadf15109c780af6e7b5b8a514096df6
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:ubuntu-22.04-ocaml-5.4@sha256:8642c3c070583e67b39212354ae7394c38e0659f51bffa033b951a0b3ce9d96b
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 ocaml.5.5.0 5.5.0
RUN opam reinstall ocaml.5.5.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 "\"ubuntu-22.04\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'ocaml.5.5.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 .

2025-12-17 15:33.24: Using cache hint "ocaml/opam:ubuntu-22.04-ocaml-5.4@sha256:8642c3c070583e67b39212354ae7394c38e0659f51bffa033b951a0b3ce9d96b-ocaml.5.5.0-d0355feefc1e55d6558a9946775e6b891961f805"
2025-12-17 15:33.24: Using OBuilder spec:
((from ocaml/opam:ubuntu-22.04-ocaml-5.4@sha256:8642c3c070583e67b39212354ae7394c38e0659f51bffa033b951a0b3ce9d96b)
 (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 ocaml.5.5.0 5.5.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall ocaml.5.5.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 \"\\\"ubuntu-22.04\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'ocaml.5.5.0' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-12-17 15:33.24: Waiting for resource in pool OCluster
2025-12-17 15:33.25: Waiting for worker…
2025-12-17 15:34.22: Got resource from pool OCluster
Building on laodoke.caelum.ci.dev
All commits already cached
Updating files:  65% (12377/19020)
Updating files:  66% (12554/19020)
Updating files:  67% (12744/19020)
Updating files:  68% (12934/19020)
Updating files:  69% (13124/19020)
Updating files:  70% (13314/19020)
Updating files:  71% (13505/19020)
Updating files:  72% (13695/19020)
Updating files:  73% (13885/19020)
Updating files:  74% (14075/19020)
Updating files:  75% (14265/19020)
Updating files:  76% (14456/19020)
Updating files:  77% (14646/19020)
Updating files:  78% (14836/19020)
Updating files:  79% (15026/19020)
Updating files:  80% (15216/19020)
Updating files:  81% (15407/19020)
Updating files:  82% (15597/19020)
Updating files:  83% (15787/19020)
Updating files:  84% (15977/19020)
Updating files:  85% (16167/19020)
Updating files:  86% (16358/19020)
Updating files:  87% (16548/19020)
Updating files:  88% (16738/19020)
Updating files:  89% (16928/19020)
Updating files:  90% (17118/19020)
Updating files:  91% (17309/19020)
Updating files:  92% (17499/19020)
Updating files:  93% (17689/19020)
Updating files:  94% (17879/19020)
Updating files:  95% (18069/19020)
Updating files:  96% (18260/19020)
Updating files:  97% (18450/19020)
Updating files:  98% (18640/19020)
Updating files:  99% (18830/19020)
Updating files: 100% (19020/19020)
Updating files: 100% (19020/19020), done.
HEAD is now at c199949faa Merge pull request #29097 from reynir/release-albatross-v2.6.2
Updating c199949faa..d0355feefc
Fast-forward
 packages/ocaml/ocaml.5.5.0/opam | 26 +++++++++++++++++++++++---
 1 file changed, 23 insertions(+), 3 deletions(-)

(from ocaml/opam:ubuntu-22.04-ocaml-5.4@sha256:8642c3c070583e67b39212354ae7394c38e0659f51bffa033b951a0b3ce9d96b)
2025-12-17 15:35.44 ---> saved as "7f91e2bb83d6d357ae6dfb3920265348795501d90daa6df00769b7d07a85dd88"

/: (user (uid 1000) (gid 1000))

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2025-12-17 15:35.44 ---> saved as "03a1972b1ff004bf4d339bac15b38851a5df136528cb2c6e26f9d35b90d8e2c4"

/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
2025-12-17 15:36.15 ---> saved as "ae708a3104f8aaf76b880f19ecb2329a2cb545ca91709e8c2cd3b3e5feb54d37"

/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=ubuntu os-version=22.04
# 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.0"}]
# compiler-packages    ocaml-base-compiler.5.4.0, ocaml-compiler.5.4.0, 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.0
2025-12-17 15:36.16 ---> saved as "197c94fef043bba5ba4a003b99a93affe4a6519c65b43b104442376fec83e4a2"

/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/"))
2025-12-17 15:36.25 ---> saved as "3ae7631d1234bfdb3c15ea63c9b611ebcdf2e13ffbbfdff14320e22a8912a866"

/home/opam: (copy (src .) (dst opam-repository/))
2025-12-17 15:36.44 ---> saved as "3ee14f368690d069216ad374e10902b4794a26462fc603359e4e15edeb73144f"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-12-17 15:37.05 ---> saved as "5033ab53cbc9afae352b6ababbb8fb8484146512c36e89ebaee8da9e554deb6d"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
- Get:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
- Get:3 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [127 kB]
- Get:4 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
- Get:5 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1598 kB]
- Get:6 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [3965 kB]
- Get:7 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [69.3 kB]
- Get:8 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [6411 kB]
- Get:9 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [114 kB]
- Get:10 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [40.3 kB]
- Get:11 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [3633 kB]
- Get:12 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [6205 kB]
- Fetched 22.4 MB in 3s (8089 kB/s)
- Reading package lists...
- 
2025-12-17 15:37.10 ---> saved as "7a1b169b45a8b6926191378aa27a7dc652265188693dcac71e20cc912fdde0c3"

/home/opam: (run (shell "opam pin add -k version -yn ocaml.5.5.0 5.5.0"))
ocaml is now pinned to version 5.5.0
2025-12-17 15:37.12 ---> saved as "d6cbfc645aa6bec4b7941926984c100e56a78b29b8af1a92a50b1896adb48749"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall ocaml.5.5.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 \"\\\"ubuntu-22.04\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'ocaml.5.5.0' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
ocaml.5.5.0 is not installed. Install it? [Y/n] y
  * Missing dependency:
    - (invariant) -> ocaml-base-compiler >= 5.4.0 -> ocaml-compiler = 5.4.0 -> ocaml = 5.4.0 -> ocaml.5.4.0: no longer available

No solution found, exiting
"/usr/bin/env" "bash" "-c" "opam reinstall ocaml.5.5.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 "\"ubuntu-22.04\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'ocaml.5.5.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 20
2025-12-17 15:37.43: Job failed: Failed: Build failed
2025-12-17 15:37.43: Log analysis:
2025-12-17 15:37.43: >>> 
No solution found, exiting
 (score = 100)
2025-12-17 15:37.43: [SKIP] Package not available