(for PR #25889)

2024-07-03 07:53.57: New job: build conf-libclang.16, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/25889/head (93450bab6f4ccfda0b50177b39c9218bc8e47470)
                              on alpine-3.20-ocaml-5.2/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/25889/head" && git reset --hard 93450bab
git fetch origin master
git merge --no-edit f11abb6589b7c157b8bd91c5d5fcb5a92da6d892
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:alpine-3.20-ocaml-5.2@sha256:0b80ef15dce1af9aaf6c3b2717c955b6ee2f867e4f0ff4e0d936fc3bc46bb264
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-dev /usr/bin/opam
RUN opam init --reinit -ni
RUN uname -rs && opam exec -- ocaml -version && opam --version
ENV OPAMDOWNLOADJOBS="1"
ENV OPAMERRLOGLEN="0"
ENV OPAMSOLVERTIMEOUT="500"
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-libclang.16 16
RUN opam reinstall conf-libclang.16; \
    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.20\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'conf-libclang.16' && 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 .

2024-07-03 07:53.57: Using cache hint "ocaml/opam:alpine-3.20-ocaml-5.2@sha256:0b80ef15dce1af9aaf6c3b2717c955b6ee2f867e4f0ff4e0d936fc3bc46bb264-conf-libclang.16-93450bab6f4ccfda0b50177b39c9218bc8e47470"
2024-07-03 07:53.57: Using OBuilder spec:
((from ocaml/opam:alpine-3.20-ocaml-5.2@sha256:0b80ef15dce1af9aaf6c3b2717c955b6ee2f867e4f0ff4e0d936fc3bc46bb264)
 (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 "uname -rs && opam exec -- ocaml -version && opam --version"))
 (env OPAMDOWNLOADJOBS 1)
 (env OPAMERRLOGLEN 0)
 (env OPAMSOLVERTIMEOUT 500)
 (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-libclang.16 16"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall conf-libclang.16;\
             \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.20\\\"\"; 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-libclang.16' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2024-07-03 07:53.57: Waiting for resource in pool OCluster
2024-07-03 15:05.52: Waiting for worker…
2024-07-03 15:10.01: Got resource from pool OCluster
Building on doris.caelum.ci.dev
All commits already cached
Updating files:  73% (23170/31667)
Updating files:  74% (23434/31667)
Updating files:  75% (23751/31667)
Updating files:  76% (24067/31667)
Updating files:  77% (24384/31667)
Updating files:  78% (24701/31667)
Updating files:  79% (25017/31667)
Updating files:  80% (25334/31667)
Updating files:  81% (25651/31667)
Updating files:  82% (25967/31667)
Updating files:  83% (26284/31667)
Updating files:  84% (26601/31667)
Updating files:  85% (26917/31667)
Updating files:  86% (27234/31667)
Updating files:  87% (27551/31667)
Updating files:  88% (27867/31667)
Updating files:  89% (28184/31667)
Updating files:  90% (28501/31667)
Updating files:  91% (28817/31667)
Updating files:  92% (29134/31667)
Updating files:  93% (29451/31667)
Updating files:  94% (29767/31667)
Updating files:  95% (30084/31667)
Updating files:  96% (30401/31667)
Updating files:  97% (30717/31667)
Updating files:  98% (31034/31667)
Updating files:  99% (31351/31667)
Updating files: 100% (31667/31667)
Updating files: 100% (31667/31667), done.
HEAD is now at f11abb6589 Merge pull request #26180 from mseri/fix-async_ssl
Merge made by the 'ort' strategy.
 packages/conf-libclang/conf-libclang.10/opam | 52 +++++++++++++-----
 packages/conf-libclang/conf-libclang.11/opam | 54 ++++++++++++++-----
 packages/conf-libclang/conf-libclang.12/opam | 52 ++++++++++++------
 packages/conf-libclang/conf-libclang.13/opam | 60 ++++++++++++---------
 packages/conf-libclang/conf-libclang.14/opam | 61 +++++++++++++--------
 packages/conf-libclang/conf-libclang.15/opam | 62 +++++++++++++--------
 packages/conf-libclang/conf-libclang.16/opam | 76 ++++++++++++++++++++++++++
 packages/conf-libclang/conf-libclang.17/opam | 78 +++++++++++++++++++++++++++
 packages/conf-libclang/conf-libclang.18/opam | 80 ++++++++++++++++++++++++++++
 9 files changed, 461 insertions(+), 114 deletions(-)
 create mode 100644 packages/conf-libclang/conf-libclang.16/opam
 create mode 100644 packages/conf-libclang/conf-libclang.17/opam
 create mode 100644 packages/conf-libclang/conf-libclang.18/opam

(from ocaml/opam:alpine-3.20-ocaml-5.2@sha256:0b80ef15dce1af9aaf6c3b2717c955b6ee2f867e4f0ff4e0d936fc3bc46bb264)
2024-07-03 15:10.04 ---> using "882e957e5ba48c5191ab3372f809ebf7cc61bfc78a21e254a16b56f951b6c8c7" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2024-07-03 15:10.04 ---> using "1bd0c90fb0c9634c176cc0b107ddae8c2781891d6ed73749cfd9f4f2efefefd0" 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 development version of opam requires an update to the layout of /home/opam/.opam from version 2.0 to version 2.2~beta, 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] synchronised from file:///home/opam/opam-repository
2024-07-03 15:10.04 ---> using "cf9c569e4ef90122c558b162122e727ad8a2ed4d28441426d4f339ef1fa56253" from cache

/home/opam: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-113-generic
The OCaml toplevel, version 5.2.0
2.2.0~rc1
2024-07-03 15:10.04 ---> using "d61a8e8f162b9a1aeb589a4e183d65321224f55ad2ae4138ecf56ed8e3e2affd" from cache

/home/opam: (env OPAMDOWNLOADJOBS 1)

/home/opam: (env OPAMERRLOGLEN 0)

/home/opam: (env OPAMSOLVERTIMEOUT 500)

/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/"))
2024-07-03 15:10.04 ---> using "4b8ae25e6e20a28c249348f2af8685d65572051dfa74d2eab66fc9c29b0a1825" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2024-07-03 15:10.20 ---> saved as "2cd91e8ef74edcb77ee5328967582474e7b5b987fe0ddfff32d3c41cb2363585"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2024-07-03 15:11.11 ---> saved as "e30175ba3f68b434b1cb1726afabff48fe525bb743eaaf3de8ba048ac7088072"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apk" "update"
- fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/community/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
- v3.20.1-50-g2fd796dddef [https://dl-cdn.alpinelinux.org/alpine/v3.20/main]
- v3.20.1-51-g557fa6d2bc9 [https://dl-cdn.alpinelinux.org/alpine/v3.20/community]
- v20240606-1779-g5930a2e014f [https://dl-cdn.alpinelinux.org/alpine/edge/main]
- v20240606-1791-g2e4321c7356 [https://dl-cdn.alpinelinux.org/alpine/edge/community]
- v20240606-1785-g4d96a322eaf [https://dl-cdn.alpinelinux.org/alpine/edge/testing]
- OK: 54039 distinct packages available
2024-07-03 15:11.13 ---> saved as "4d8fc6f66e8ccb3ba56f7481474453d7832b7a6cf6eac81b760de7b09012ac98"

/home/opam: (run (shell "opam pin add -k version -yn conf-libclang.16 16"))
conf-libclang is now pinned to version 16
2024-07-03 15:11.14 ---> saved as "f95c01bdd97a942c81085b86ec789e9515edd42bdf6b9a35b03bee7909f4d809"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall conf-libclang.16;\
                        \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.20\\\"\"; 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-libclang.16' && 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-libclang.16 depends on the unavailable system packages 'clang-dev', 'clang-static' and 'llvm-dev'. You can use `--no-depexts' to attempt installation anyway.
"/usr/bin/env" "bash" "-c" "opam reinstall conf-libclang.16;
        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.20\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'conf-libclang.16' && 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
2024-07-03 15:11.25: Job failed: Failed: Build failed
2024-07-03 15:11.25: Log analysis:
2024-07-03 15:11.25: >>> 
[ERROR] Package conf-libclang.16 depends on the unavailable system packages 'clang-dev', 'clang-static' and 'llvm-dev'. You can use `--no-depexts' to attempt installation anyway.
 (score = 100)
2024-07-03 15:11.25: [SKIP] Package not available