(for PR #25889)

2024-07-03 07:53.57: New job: build conf-libclang.12, 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.12 12
RUN opam depext conf-libclang.12 && opam reinstall conf-libclang.12; \
    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.12' && 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.12-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.12 12"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam depext conf-libclang.12 && opam reinstall conf-libclang.12;\
             \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.12' && 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:14.56: Got resource from pool OCluster
Building on doris.caelum.ci.dev
All commits already cached
Updating files:  67% (21456/31667)
Updating files:  68% (21534/31667)
Updating files:  69% (21851/31667)
Updating files:  70% (22167/31667)
Updating files:  71% (22484/31667)
Updating files:  72% (22801/31667)
Updating files:  73% (23117/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:debian-12-ocaml-5.2@sha256:583bd84391ee71ae55caa44262c64c2260af63906c7c0231d7561504ac61b650)
2024-07-03 15:15.04 ---> 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:15.04 ---> using "150beb3c729b02a456416a5d80616fd147d125b0fd6f27a9b1cd497425c075c4" from cache

/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:15.04 ---> using "06efa645272f59781ea0eded586918a8bb4e8cbaa342d6205323e9978c835201" 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.0.10
2024-07-03 15:15.04 ---> using "0a73c35b56145125abac862553c00d99024d23334bd3652dfe70cb91ec9f13c2" 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:15.04 ---> using "0893b8070912fa139738f3a53f1fcb54ef95156abd50808f435f93d93ba4b72b" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2024-07-03 15:15.06 ---> using "8fdc6c8425cb037c7f4651a5016ffbcc6225a51c5fa7ac7b8c351de26a0b8b5a" from cache

/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.06 ---> using "2652ccc52dc8ea0b0d8c80eaa523afc1328dc473cbeb7479c86aead173e46c5d" from cache

/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 2s (5281 kB/s)
Reading package lists...
# OS package update successful
2024-07-03 15:15.06 ---> using "1ff0cd95422e2524d2dec5d3ab2af681af2588adeec39e3b9da0b9050542e7ba" from cache

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

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam depext conf-libclang.12 && opam reinstall conf-libclang.12;\
                        \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.12' && 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.12: 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.12' returned 20
"/usr/bin/env" "bash" "-c" "opam depext conf-libclang.12 && opam reinstall conf-libclang.12;
        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.12' && 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.38: Job failed: Failed: Build failed
2024-07-03 15:15.38: Log analysis:
2024-07-03 15:15.38: >>> 
[ERROR] No solution for conf-libclang.12: The following dependencies couldn't be met:
 (score = 100)
2024-07-03 15:15.38: [SKIP] Package not available