(for PR #19229)

2024-02-08 11:38.41: New job: build conf-llvm.9.0.0, lower-bounds, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/19229/head (e200798bccb6e55ca7626dbc7b08164746413023)
                              on debian-12-ocaml-4.09/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/19229/head" && git reset --hard e200798b
git fetch origin master
git merge --no-edit d87a1eb8c3d0e6228e3f957b25aa87f49e397d03
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-4.09@sha256:2175020731d760b901db2debdd92662123f57004e5304c27c7258f16a4489d47
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-dev /usr/bin/opam
RUN opam init --reinit -ni
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
ENV OPAMCRITERIA="-removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed"
ENV OPAMFIXUPCRITERIA="-removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed"
ENV OPAMUPGRADECRITERIA="-removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed"
RUN opam pin add -k version -yn conf-llvm.9.0.0 9.0.0
RUN opam reinstall conf-llvm.9.0.0; \
    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-llvm.9.0.0' && partial_fails="$partial_fails $pkg"; \
    done; \
    test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}"; \
    exit 1
ENV OPAMCRITERIA="+removed,+count[version-lag,solution]"
ENV OPAMFIXUPCRITERIA="+removed,+count[version-lag,solution]"
ENV OPAMUPGRADECRITERIA="+removed,+count[version-lag,solution]"
ENV OPAMEXTERNALSOLVER="builtin-0install"
RUN opam reinstall conf-llvm.9.0.0; \
    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-llvm.9.0.0' && 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-02-08 11:38.41: Using cache hint "ocaml/opam:debian-12-ocaml-4.09@sha256:2175020731d760b901db2debdd92662123f57004e5304c27c7258f16a4489d47-conf-llvm.9.0.0-e200798bccb6e55ca7626dbc7b08164746413023"
2024-02-08 11:38.41: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.09@sha256:2175020731d760b901db2debdd92662123f57004e5304c27c7258f16a4489d47)
 (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"))
 (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"))
 (env OPAMCRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)
 (env OPAMFIXUPCRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)
 (env OPAMUPGRADECRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)
 (run (shell "opam pin add -k version -yn conf-llvm.9.0.0 9.0.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall conf-llvm.9.0.0;\
             \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-llvm.9.0.0' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
 (env OPAMCRITERIA +removed,+count[version-lag,solution])
 (env OPAMFIXUPCRITERIA +removed,+count[version-lag,solution])
 (env OPAMUPGRADECRITERIA +removed,+count[version-lag,solution])
 (env OPAMEXTERNALSOLVER builtin-0install)
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall conf-llvm.9.0.0;\
             \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-llvm.9.0.0' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2024-02-08 11:38.41: Connecting to build cluster…
2024-02-08 11:38.41: Waiting for resource in pool OCluster
2024-02-08 13:27.30: Waiting for worker…
2024-02-08 13:28.40: Got resource from pool OCluster
Building on iphito.caelum.ci.dev
All commits already cached
Updating files:  95% (31469/32900)
Updating files:  96% (31584/32900)
Updating files:  97% (31913/32900)
Updating files:  98% (32242/32900)
Updating files:  99% (32571/32900)
Updating files: 100% (32900/32900)
Updating files: 100% (32900/32900), done.
HEAD is now at d87a1eb8c3 Merge pull request #25204 from toots/opam-publish-tls-liquidsoap.1-prometheus-liquidsoap.2-liquidsoap.2.2.4-sdl-liquidsoap.3
Auto-merging packages/conf-llvm/conf-llvm.10.0.0/opam
Auto-merging packages/conf-llvm/conf-llvm.11.0.0/opam
Auto-merging packages/conf-llvm/conf-llvm.3.8/opam
Auto-merging packages/conf-llvm/conf-llvm.3.9/opam
Auto-merging packages/conf-llvm/conf-llvm.4.0.0/opam
Auto-merging packages/conf-llvm/conf-llvm.5.0.0/opam
Auto-merging packages/conf-llvm/conf-llvm.6.0.0/opam
Auto-merging packages/conf-llvm/conf-llvm.7.0.0/opam
Auto-merging packages/conf-llvm/conf-llvm.8.0.0/opam
Auto-merging packages/conf-llvm/conf-llvm.9.0.0/opam
Merge made by the 'ort' strategy.
 packages/conf-llvm/conf-llvm.10.0.0/files/configure.sh | 2 +-
 packages/conf-llvm/conf-llvm.10.0.0/opam               | 2 +-
 packages/conf-llvm/conf-llvm.11.0.0/files/configure.sh | 2 +-
 packages/conf-llvm/conf-llvm.11.0.0/opam               | 2 +-
 packages/conf-llvm/conf-llvm.3.4/files/configure       | 2 +-
 packages/conf-llvm/conf-llvm.3.4/opam                  | 2 +-
 packages/conf-llvm/conf-llvm.3.8/files/configure.sh    | 2 +-
 packages/conf-llvm/conf-llvm.3.8/opam                  | 2 +-
 packages/conf-llvm/conf-llvm.3.9/files/configure.sh    | 2 +-
 packages/conf-llvm/conf-llvm.3.9/opam                  | 2 +-
 packages/conf-llvm/conf-llvm.4.0.0/files/configure.sh  | 2 +-
 packages/conf-llvm/conf-llvm.4.0.0/opam                | 2 +-
 packages/conf-llvm/conf-llvm.5.0.0/files/configure.sh  | 2 +-
 packages/conf-llvm/conf-llvm.5.0.0/opam                | 2 +-
 packages/conf-llvm/conf-llvm.6.0.0/files/configure.sh  | 2 +-
 packages/conf-llvm/conf-llvm.6.0.0/opam                | 2 +-
 packages/conf-llvm/conf-llvm.7.0.0/files/configure.sh  | 2 +-
 packages/conf-llvm/conf-llvm.7.0.0/opam                | 2 +-
 packages/conf-llvm/conf-llvm.8.0.0/files/configure.sh  | 2 +-
 packages/conf-llvm/conf-llvm.8.0.0/opam                | 2 +-
 packages/conf-llvm/conf-llvm.9.0.0/files/configure.sh  | 2 +-
 packages/conf-llvm/conf-llvm.9.0.0/opam                | 2 +-
 22 files changed, 22 insertions(+), 22 deletions(-)

(from ocaml/opam:debian-12-ocaml-4.09@sha256:2175020731d760b901db2debdd92662123f57004e5304c27c7258f16a4489d47)
2024-02-08 13:28.59 ---> using "25d88d1b626857f051462cc772d40857fce9f76abc6e3ad3fdfb36beaa5e174f" 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-02-08 13:28.59 ---> using "0568d169fcdcbec9e9014b8df2f1ebd0f36bb51f0010faf3e495bf39c93e35c9" 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.

Continue? [y/n] y
This development version of opam requires an update to the layout of /home/opam/.opam from version 2.0 to version 2.2~alpha, which can't be reverted.
You may want to back it up before going further.

Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
2024-02-08 13:28.59 ---> using "7cc02f8de2b2c0ff1de35177296f738350de0996dbaef4a1385b64f42ada472e" 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-02-08 13:28.59 ---> using "be2cb76ad2d22dbc56f6f732a584c305c40aa9375448da7ca8cdf6b0100b8c35" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2024-02-08 13:29.08 ---> saved as "e983244d42fd5813fb7001604447104c48409e5cb2d1dc12bd9e713338382cfd"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2024-02-08 13:29.45 ---> saved as "0932f3f27251b3e9dbda6d21ef618eaedc4541a13a22714d772597bc1ca40aec"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian bookworm InRelease
- Get:2 http://deb.debian.org/debian bookworm-updates InRelease [52.1 kB]
- Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
- Get:4 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [137 kB]
- Fetched 237 kB in 0s (719 kB/s)
- Reading package lists...
2024-02-08 13:29.46 ---> saved as "cb3003b1595db0e709e927e97d90bb7e73c4e98d5ff2eb667474092734f21a24"

/home/opam: (env OPAMCRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)

/home/opam: (env OPAMFIXUPCRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)

/home/opam: (env OPAMUPGRADECRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)

/home/opam: (run (shell "opam pin add -k version -yn conf-llvm.9.0.0 9.0.0"))
conf-llvm is now pinned to version 9.0.0
2024-02-08 13:29.47 ---> saved as "ff88da4262ee5fc9dd36be7c81151b4d8952bd7c6f85b359e9486194ca43784e"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall conf-llvm.9.0.0;\
                        \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-llvm.9.0.0' && 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-llvm.9.0.0 depends on the unavailable system package 'llvm-9-dev'. You can use `--no-depexts' to attempt installation anyway.
"/usr/bin/env" "bash" "-c" "opam reinstall conf-llvm.9.0.0;
        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-llvm.9.0.0' && 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-02-08 13:30.07: Job failed: Failed: Build failed
2024-02-08 13:30.07: Log analysis:
2024-02-08 13:30.07: >>> 
[ERROR] Package conf-llvm.9.0.0 depends on the unavailable system package 'llvm-9-dev'. You can use `--no-depexts' to attempt installation anyway.
 (score = 100)
2024-02-08 13:30.07: [SKIP] Package not available