(for PR #29939)

2026-05-25 20:14.22: New job: build async_ssl.v0.17.0-2, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29939/head (f281748d29999f0a48456006a71ff74f19744474)
                              on alpine-3.23-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:alpine-3.23-ocaml-5.4@sha256:b177da37e68a00e0bbe7b247b69fa9cd17b45ede9274eadda7319c4831e0e033
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.17.0-2 v0.17.0-2
RUN opam reinstall async_ssl.v0.17.0-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 "\"alpine-3.23\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'async_ssl.v0.17.0-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.22: Using cache hint "ocaml/opam:alpine-3.23-ocaml-5.4@sha256:b177da37e68a00e0bbe7b247b69fa9cd17b45ede9274eadda7319c4831e0e033-async_ssl.v0.17.0-2-f281748d29999f0a48456006a71ff74f19744474"
2026-05-25 20:14.22: Using OBuilder spec:
((from ocaml/opam:alpine-3.23-ocaml-5.4@sha256:b177da37e68a00e0bbe7b247b69fa9cd17b45ede9274eadda7319c4831e0e033)
 (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.17.0-2 v0.17.0-2"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall async_ssl.v0.17.0-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 \"\\\"alpine-3.23\\\"\"; 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.17.0-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.22: Waiting for resource in pool OCluster
2026-05-25 20:14.22: Waiting for worker…
2026-05-25 20:14.22: Got resource from pool OCluster
Building on clete.caelum.ci.dev
HEAD is now at 739328e809 Merge commit '4834f4da5c651b5c7ad2fb98572d52cd3bfab6e3'
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:alpine-3.23-ocaml-5.4@sha256:b177da37e68a00e0bbe7b247b69fa9cd17b45ede9274eadda7319c4831e0e033)
Unable to find image 'ocaml/opam:alpine-3.23-ocaml-5.4@sha256:b177da37e68a00e0bbe7b247b69fa9cd17b45ede9274eadda7319c4831e0e033' locally
docker.io/ocaml/opam@sha256:b177da37e68a00e0bbe7b247b69fa9cd17b45ede9274eadda7319c4831e0e033: Pulling from ocaml/opam
6a0ac1617861: Already exists
c7f7861ee488: Already exists
242907bdbe26: Already exists
3352270e10b0: Already exists
47c18f475101: Already exists
9e65bd6c7317: Already exists
2801e5e13c88: Already exists
018ccadd5bf7: Already exists
2e273f2aabdd: Already exists
e348a3504fd1: Already exists
37f6ed8f41db: Already exists
e4dee05632b5: Already exists
cc7d1e48a817: Already exists
2afc109d933b: Already exists
c8b994fd4978: Already exists
94d6ee139c18: Already exists
33b9b3d1317d: Already exists
4f4fb700ef54: Already exists
48061712d8ec: Already exists
9379b5d8c279: Already exists
da5d751f6c1f: Already exists
ded3ed35f70f: Already exists
9d95cd3602ab: Already exists
e5ec97e88805: Already exists
8fa9502c7636: Already exists
d2ada6e134f3: Already exists
de9c4f786308: Already exists
74907ca98ac8: Already exists
d97c011a0188: Already exists
5e3139447bb2: Already exists
8a351f62a092: Already exists
b2d16f310ce2: Already exists
1cb5be35c146: Already exists
ede8df3a861b: Already exists
883b466676e2: Already exists
07cdfe7a2eb5: Already exists
62aed2c53c5d: Pulling fs layer
df85acaf52b2: Pulling fs layer
0be763cb8faf: Pulling fs layer
fbeb3770618e: Pulling fs layer
02a338add8cc: Pulling fs layer
32a364c9f137: Pulling fs layer
fbeb3770618e: Waiting
32a364c9f137: Waiting
df85acaf52b2: Verifying Checksum
df85acaf52b2: Download complete
fbeb3770618e: Verifying Checksum
fbeb3770618e: Download complete
62aed2c53c5d: Download complete
62aed2c53c5d: Pull complete
df85acaf52b2: Pull complete
02a338add8cc: Verifying Checksum
02a338add8cc: Download complete
32a364c9f137: Verifying Checksum
32a364c9f137: Download complete
0be763cb8faf: Verifying Checksum
0be763cb8faf: Download complete
0be763cb8faf: Pull complete
fbeb3770618e: Pull complete
02a338add8cc: Pull complete
32a364c9f137: Pull complete
Digest: sha256:b177da37e68a00e0bbe7b247b69fa9cd17b45ede9274eadda7319c4831e0e033
Status: Downloaded newer image for ocaml/opam@sha256:b177da37e68a00e0bbe7b247b69fa9cd17b45ede9274eadda7319c4831e0e033
2026-05-25 20:15.33 ---> saved as "e674d6499fea8f8a4946c583333786025b8c76425a02e87ac9b8dd947f0dbed3"

/: (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.34 ---> saved as "97ea577c42d950fe3c7c217e231e9d1dcb47aff357b60546dcd5059092fd53e9"

/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.46 ---> saved as "a0f106de9cc68f4d25119fa9bd2728314dc06f145ef773163413218db3a224aa"

/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=alpine os-version=3.23.4
# 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.46 ---> saved as "84581d01b4b41ca3d61099556e2c8eb8b0689f1977f6297a32e517206e9e5023"

/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.53 ---> saved as "718d6756db73fde59028464a7d5ef704d2d923565de711c6b0398f90b9a7d9f9"

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

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

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apk" "update"
- v3.23.4-286-g80518573ecc [https://dl-cdn.alpinelinux.org/alpine/v3.23/main]
- v3.23.4-286-g80518573ecc [https://dl-cdn.alpinelinux.org/alpine/v3.23/community]
- v20260127-10322-gb47a80c6f4d [https://dl-cdn.alpinelinux.org/alpine/edge/main]
- v20260127-10332-gefc641773ee [https://dl-cdn.alpinelinux.org/alpine/edge/community]
- v20260127-10330-g99dca345302 [https://dl-cdn.alpinelinux.org/alpine/edge/testing]
- OK: 62327 distinct packages available
2026-05-25 20:16.31 ---> saved as "c1c73970785e631fa3b300606c3a2689af982723fb2a434d0c1ed3bc30830d8d"

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

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall async_ssl.v0.17.0-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 \"\\\"alpine-3.23\\\"\"; 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.17.0-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.17.0-2 is not installed. Install it? [Y/n] y
  * Missing dependency:
    - async_ssl >= v0.17.0-2 -> async >= v0.17 -> core_unix >= v0.17
    unmet availability conditions, e.g. 'arch != "arm32" & arch != "x86_32" & arch != "ppc64" & arch != "s390x" & (os-distribution != "alpine" | os-version < "3.21") & os != "win32"'

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