(for PR #29939)

2026-05-22 15:17.00: 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 centos-9-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 3e30e43808721339489775ee25d69c4c9c441697
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:centos-9-ocaml-5.4@sha256:de214dfdb34d2fef0a0c5e6b0996a5726f8d3ff165f06085f8c5b2ca05742d11
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 "\"centos-9\""; 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-22 15:17.00: Using cache hint "ocaml/opam:centos-9-ocaml-5.4@sha256:de214dfdb34d2fef0a0c5e6b0996a5726f8d3ff165f06085f8c5b2ca05742d11-async_ssl.v0.16.1-2-f281748d29999f0a48456006a71ff74f19744474"
2026-05-22 15:17.00: Using OBuilder spec:
((from ocaml/opam:centos-9-ocaml-5.4@sha256:de214dfdb34d2fef0a0c5e6b0996a5726f8d3ff165f06085f8c5b2ca05742d11)
 (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 \"\\\"centos-9\\\"\"; 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-22 15:17.00: Waiting for resource in pool OCluster
2026-05-22 15:21.02: Waiting for worker…
2026-05-22 15:27.13: Got resource from pool OCluster
Building on asteria.caelum.ci.dev
All commits already cached
HEAD is now at 3e30e43808 Merge pull request #29935 from sim642/release-odep-0.2.2
Updating 3e30e43808..f281748d29
Fast-forward
 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:centos-9-ocaml-5.4@sha256:de214dfdb34d2fef0a0c5e6b0996a5726f8d3ff165f06085f8c5b2ca05742d11)
2026-05-22 15:28.06 ---> saved as "9b178d75c2eeaac12bb24f5ea09c22416a7b90d3150bfddac6308e21b70ea2e3"

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2026-05-22 15:28.10 ---> saved as "216183327c451fb6201f75c82a00a7e20c4eb7043c11697eb7d063bc705a1284"

/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-22 15:28.25 ---> saved as "057c475ddf718711d012b11dbb439b8593065e800f0b88563a778e6b9093c575"

/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=centos os-version=9
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 255
# 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-22 15:28.31 ---> saved as "241f1e113073b569c42267cdb1d452d2d34249fa6c130bb222ff33d1e3ae21ee"

/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-22 15:28.45 ---> saved as "201479d4a43ae99b2d9776e2b549972d548364f878016ffa5762676376727f50"

/home/opam: (copy (src .) (dst opam-repository/))
2026-05-22 15:29.12 ---> saved as "4d864b5a39e9246d303ebe277314e74b6e88859de92a80e956b55e7342dc0c12"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2026-05-22 15:29.27 ---> saved as "3f5dac03f4c7de2a7c64f37f0231f8a4c3dc5f5325cb78856cea684428b64f5f"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "yum" "makecache"
- CentOS Stream 9 - BaseOS                         86 kB/s |  14 kB     00:00    
- CentOS Stream 9 - BaseOS                        393 kB/s | 8.9 MB     00:23    
- CentOS Stream 9 - AppStream                     2.7 kB/s |  14 kB     00:05    
- CentOS Stream 9 - AppStream                     344 kB/s |  27 MB     01:21    
- CentOS Stream 9 - CRB                            43 kB/s |  14 kB     00:00    
- CentOS Stream 9 - CRB                           313 kB/s | 8.0 MB     00:26    
- CentOS Stream 9 - Extras packages                72 kB/s |  16 kB     00:00    
- Metadata cache created.
2026-05-22 15:31.59 ---> saved as "8aeb6bbd28f4aab093db52cd75587323927884b2b2b8c6c0a4fdd8dfbc207121"

/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-22 15:32.04 ---> saved as "473d4d1529657bfcbc20448cf62ceee569c10816d204da23a8eaa1d49705f572"

/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 \"\\\"centos-9\\\"\"; 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 -> ppx_optcomp < v0.17 -> base < v0.15 -> ocaml < 4.14 -> dkml-base-compiler
    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 -> ppx_optcomp < v0.17 -> base < v0.14 -> ocaml < 4.12 -> ocaml-variants
  * Missing dependency:
    - async_ssl = v0.16.1-2 -> ppx_optcomp < v0.17 -> base < v0.14 -> ocaml < 4.12 -> 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 -> ppx_optcomp < v0.17 -> base < v0.14 -> ocaml < 4.12 -> 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 "\"centos-9\""; 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-22 15:32.45: Job failed: Failed: Build failed
2026-05-22 15:32.45: Log analysis:
2026-05-22 15:32.45: >>> 
No solution found, exiting
 (score = 100)
2026-05-22 15:32.45: [SKIP] Package not available