(for PR #25889)

2024-07-03 07:53.57: New job: build conf-libclang.11, using opam 2.0
                              from https://github.com/ocaml/opam-repository.git#refs/pull/25889/head (93450bab6f4ccfda0b50177b39c9218bc8e47470)
                              on debian-12-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:debian-12-ocaml-5.2@sha256:583bd84391ee71ae55caa44262c64c2260af63906c7c0231d7561504ac61b650
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-2.0 /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 depext -u || true
RUN opam pin add -k version -yn conf-libclang.11 11
RUN opam depext conf-libclang.11 && opam reinstall conf-libclang.11; \
    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 "\"debian-12\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'conf-libclang.11' && 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:debian-12-ocaml-5.2@sha256:583bd84391ee71ae55caa44262c64c2260af63906c7c0231d7561504ac61b650-conf-libclang.11-93450bab6f4ccfda0b50177b39c9218bc8e47470"
2024-07-03 07:53.57: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-5.2@sha256:583bd84391ee71ae55caa44262c64c2260af63906c7c0231d7561504ac61b650)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "sudo ln -f /usr/bin/opam-2.0 /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 depext -u || true"))
 (run (shell "opam pin add -k version -yn conf-libclang.11 11"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam depext conf-libclang.11 && opam reinstall conf-libclang.11;\
             \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 \"\\\"debian-12\\\"\"; 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.11' && 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:10.45: Waiting for worker…
2024-07-03 15:13.29: Got resource from pool OCluster
Building on x86-bm-c14.sw.ocaml.org
All commits already cached
Updating files:  74% (23693/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:debian-12-ocaml-5.2@sha256:583bd84391ee71ae55caa44262c64c2260af63906c7c0231d7561504ac61b650)
2024-07-03 15:13.32 ---> using "9db33b4bb054733b7edf7c000bfa2223fb2a5578295224f53737a047b78cd615" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.0 /usr/bin/opam"))
2024-07-03 15:13.32 ---> saved as "150beb3c729b02a456416a5d80616fd147d125b0fd6f27a9b1cd497425c075c4"

/home/opam: (run (network host)
                 (shell "opam init --reinit --config .opamrc-sandbox -ni"))
[NOTE] Will configure 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.

[WARNING] Recommended dependencies -- most packages rely on these:
  - m4

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
default (at file:///home/opam/opam-repository): 
    [INFO] opam 2.1 includes many performance improvements over 2.0; please consider upgrading (https://opam.ocaml.org/doc/Install.html)

2024-07-03 15:14.16 ---> saved as "06efa645272f59781ea0eded586918a8bb4e8cbaa342d6205323e9978c835201"

/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.0.10
2024-07-03 15:14.17 ---> saved as "0a73c35b56145125abac862553c00d99024d23334bd3652dfe70cb91ec9f13c2"

/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:14.26 ---> saved as "0893b8070912fa139738f3a53f1fcb54ef95156abd50808f435f93d93ba4b72b"

/home/opam: (copy (src .) (dst opam-repository/))
2024-07-03 15:14.38 ---> saved as "8fdc6c8425cb037c7f4651a5016ffbcc6225a51c5fa7ac7b8c351de26a0b8b5a"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
default (at file:///home/opam/opam-repository): 
    [INFO] opam 2.1 includes many performance improvements over 2.0; please consider upgrading (https://opam.ocaml.org/doc/Install.html)

2024-07-03 15:15.08 ---> saved as "2652ccc52dc8ea0b0d8c80eaa523afc1328dc473cbeb7479c86aead173e46c5d"

/home/opam: (run (network host)
                 (shell "opam depext -u || true"))
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# No extra OS packages requirements found.
# All required OS packages found.
The following command needs to be run through "sudo":
    apt-get update
Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:4 http://deb.debian.org/debian bookworm/main amd64 Packages [8788 kB]
Get:5 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [164 kB]
Fetched 9206 kB in 1s (6741 kB/s)
Reading package lists...
# OS package update successful
2024-07-03 15:15.11 ---> saved as "1ff0cd95422e2524d2dec5d3ab2af681af2588adeec39e3b9da0b9050542e7ba"

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

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam depext conf-libclang.11 && opam reinstall conf-libclang.11;\
                        \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 \"\\\"debian-12\\\"\"; 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.11' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
[ERROR] No solution for conf-libclang.11: The following dependencies couldn't be met:
          - conf-libclang -> stdcompat >= 19 -> ocaml < 5.2
              base of this switch (use `--unlock-base' to force)


Command failed: opam list --readonly --external '--resolve=conf-libclang.11' returned 20
"/usr/bin/env" "bash" "-c" "opam depext conf-libclang.11 && opam reinstall conf-libclang.11;
        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 "\"debian-12\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'conf-libclang.11' && 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
2024-07-03 15:15.31: Job failed: Failed: Build failed
2024-07-03 15:15.31: Log analysis:
2024-07-03 15:15.31: >>> 
[ERROR] No solution for conf-libclang.11: The following dependencies couldn't be met:
 (score = 100)
2024-07-03 15:15.31: [SKIP] Package not available