(for PR #29939)

2026-05-25 20:14.24: New job: build async_ssl.v0.16.1-2, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29939/head (f281748d29999f0a48456006a71ff74f19744474)
                              on ubuntu-24.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/29939/head" && git reset --hard f281748d
git fetch origin master
git merge --no-edit 9d78ee2aeafa6aabaf5c2c6be25f9ab1182af709
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:ubuntu-24.04-ocaml-5.4@sha256:aabe37e5b657436d0ceaa21e99cd169f9c62e2f97672d5df29adb9785768f9b3
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 async_ssl.v0.16.1-2 v0.16.1-2
RUN opam reinstall async_ssl.v0.16.1-2; \
    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-24.04\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'async_ssl.v0.16.1-2' && 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-05-25 20:14.24: Using cache hint "ocaml/opam:ubuntu-24.04-ocaml-5.4@sha256:aabe37e5b657436d0ceaa21e99cd169f9c62e2f97672d5df29adb9785768f9b3-async_ssl.v0.16.1-2-f281748d29999f0a48456006a71ff74f19744474"
2026-05-25 20:14.24: Using OBuilder spec:
((from ocaml/opam:ubuntu-24.04-ocaml-5.4@sha256:aabe37e5b657436d0ceaa21e99cd169f9c62e2f97672d5df29adb9785768f9b3)
 (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 async_ssl.v0.16.1-2 v0.16.1-2"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall async_ssl.v0.16.1-2;\
             \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-24.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\" != 'async_ssl.v0.16.1-2' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2026-05-25 20:14.24: Waiting for resource in pool OCluster
2026-05-25 20:14.24: Waiting for worker…
2026-05-25 20:14.24: Got resource from pool OCluster
Building on toxis.caelum.ci.dev
All commits already cached
HEAD is now at 9d78ee2aea Merge pull request #29914 from mt-caret/opam-publish-openrouter_api.0.1.0
Merge made by the 'ort' strategy.
 packages/async_ssl/async_ssl.v0.16.1-2/opam | 47 +++++++++++++++++++++++++++++
 packages/async_ssl/async_ssl.v0.17.0-2/opam | 44 +++++++++++++++++++++++++++
 2 files changed, 91 insertions(+)
 create mode 100644 packages/async_ssl/async_ssl.v0.16.1-2/opam
 create mode 100644 packages/async_ssl/async_ssl.v0.17.0-2/opam

(from ocaml/opam:ubuntu-24.04-ocaml-5.4@sha256:aabe37e5b657436d0ceaa21e99cd169f9c62e2f97672d5df29adb9785768f9b3)
2026-05-25 20:15.42 ---> using "09f7a341034f2591024efaf9dd77d7de263102b0a73433761a5c6fa3e65c805a" 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-05-25 20:15.42 ---> using "7525da887ce58c0732ee8edb92339fbfe81e6af36164d271664af51313bf4c4d" 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.1 to version 2.2, which can't be reverted.
You may want to back it up before going further.

[NOTE] The 'jobs' option was reset, its value was 1 and its new value will vary according to the current number of cores on your machine. You can restore the fixed value using:
           opam option jobs=1 --global
Continue? [Y/n] y
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] no changes from git+file:///home/opam/opam-repository
2026-05-25 20:15.42 ---> using "f8803a11d187995016c9a877d7bb7f2bd06661d108f18c980b71dabcdcb7c455" 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=ubuntu os-version=24.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.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-05-25 20:15.42 ---> using "9ea98c898d80dc8f6cfdc4433260d1ec3e59c067c1b4fcacc5d3f9b7bd626d6f" 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-05-25 20:15.42 ---> using "434a27f68e372749b5a7287461146a21b7d5d4f38e1ce0a9a3d847a7849e3645" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2026-05-25 20:15.51 ---> saved as "b4374056c1b756a40af245b454f5c41023b068361235f6682d2dda5526cb43c1"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2026-05-25 20:16.04 ---> saved as "6f83ae7f1971fe603f0d62f25d9172cb375b7938f6682e985824cc957e66a676"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://archive.ubuntu.com/ubuntu noble InRelease
- Get:2 http://archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
- Get:3 http://archive.ubuntu.com/ubuntu noble-backports InRelease [126 kB]
- Get:4 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB]
- Get:5 http://archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Packages [3920 kB]
- Get:6 http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages [2074 kB]
- Get:7 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [2457 kB]
- Get:8 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [2150 kB]
- Get:9 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Packages [1509 kB]
- Get:10 http://archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 Packages [54.6 kB]
- Get:11 http://archive.ubuntu.com/ubuntu noble-backports/universe amd64 Packages [35.9 kB]
- Get:12 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Packages [3671 kB]
- Get:13 http://security.ubuntu.com/ubuntu noble-security/multiverse amd64 Packages [48.4 kB]
- Fetched 16.3 MB in 4s (3880 kB/s)
- Reading package lists...
- 
2026-05-25 20:16.10 ---> saved as "890a456803ffa52c51217b17e563cf387cfa01879f762340c0ffd3475f7ba337"

/home/opam: (run (shell "opam pin add -k version -yn async_ssl.v0.16.1-2 v0.16.1-2"))
async_ssl is now pinned to version v0.16.1-2
2026-05-25 20:16.11 ---> saved as "af2b126328938f3f87a81e369d8b59dde9f74973658fe893c36ea4173524e475"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall async_ssl.v0.16.1-2;\
                        \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-24.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\" != 'async_ssl.v0.16.1-2' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
async_ssl.v0.16.1-2 is not installed. Install it? [Y/n] y
  * Incompatible packages:
    - (invariant) -> ocaml-base-compiler = 5.4.1
    - async_ssl = v0.16.1-2 -> core < v0.17 -> ocaml < 4.12.0 -> ocaml-variants
    You can temporarily relax the switch invariant with `--update-invariant'
  * Incompatible packages:
    - (invariant) -> ocaml-base-compiler = 5.4.1
    - async_ssl = v0.16.1-2 -> core < v0.17 -> core_kernel < v0.15 -> typerep < v0.15 -> ocaml < 5.0 -> dkml-base-compiler
  * Missing dependency:
    - async_ssl = v0.16.1-2 -> core < v0.17 -> ocaml < 4.12.0 -> ocaml-base-compiler < 4.11.0 | ocaml-system (<= 3.07+1 | = 3.07+2 | >= 3.08.0) | ocaml-variants < 4.10.3~
    no matching version
    unmet availability conditions, e.g. 'sys-ocaml-version = "5.4.1" & (os != "win32" | sys-ocaml-libc = "msvc")'
    no matching version
  * Missing dependency:
    - async_ssl = v0.16.1-2 -> core < v0.17 -> ocaml < 4.12.0 -> ocaml-variants -> system-msvc
    unmet availability conditions: 'os = "win32"'

No solution found, exiting
"/usr/bin/env" "bash" "-c" "opam reinstall async_ssl.v0.16.1-2;
        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-24.04\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'async_ssl.v0.16.1-2' && 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
2026-05-25 20:16.27: Job failed: Failed: Build failed
2026-05-25 20:16.27: Log analysis:
2026-05-25 20:16.27: >>> 
No solution found, exiting
 (score = 100)
2026-05-25 20:16.27: [SKIP] Package not available