(for PR #19229)

2024-02-08 11:38.41: New job: build conf-llvm.9.0.0, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/19229/head (e200798bccb6e55ca7626dbc7b08164746413023)
                              on debian-12-ocaml-4.10/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.10@sha256:57e743fc9768fdfa51949708497530ca58f0900aeb9ee9c8859527ab143607b2
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

END-OF-DOCKERFILE
docker build -f ../Dockerfile .

2024-02-08 11:38.41: Using cache hint "ocaml/opam:debian-12-ocaml-4.10@sha256:57e743fc9768fdfa51949708497530ca58f0900aeb9ee9c8859527ab143607b2-conf-llvm.9.0.0-e200798bccb6e55ca7626dbc7b08164746413023"
2024-02-08 11:38.41: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.10@sha256:57e743fc9768fdfa51949708497530ca58f0900aeb9ee9c8859527ab143607b2)
 (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"))
)

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.16: Waiting for worker…
2024-02-08 13:28.35: Got resource from pool OCluster
Building on doris.caelum.ci.dev
All commits already cached
Updating files:  90% (29637/32900)
Updating files:  91% (29939/32900)
Updating files:  92% (30268/32900)
Updating files:  93% (30597/32900)
Updating files:  94% (30926/32900)
Updating files:  95% (31255/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.10@sha256:57e743fc9768fdfa51949708497530ca58f0900aeb9ee9c8859527ab143607b2)
2024-02-08 13:30.27 ---> using "ff6c9cd5e23ccb627fb6beec35363d666fb4be59dbbecdf37369118d9ad5b1b1" 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:30.27 ---> using "5604cceeee4b0d142c82a76a85f38d2bfabe5f75389844ffbf47b15f09276f23" 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~alpha, 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-02-08 13:30.27 ---> using "e449ac72b697cf4c29e364ac8cf5d277af443b1fb2a6af46c0f5feb80d96c27f" 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:30.27 ---> using "0d8e315658d28aa6ce00512fffaee078d29b3f8578e5ead37ecc480200b490c0" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2024-02-08 13:30.28 ---> using "52a1b9def020a5e00493ef5216e901d623f0a06ac6a70e7b72d0e299d58cad73" from cache

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

/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 (758 kB/s)
- Reading package lists...
2024-02-08 13:31.04 ---> saved as "4c578242f5dcaf2668fcbf72412eaa036a3056edc2ddc9eecd3fec68fe4024a6"

/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:31.06 ---> saved as "f6cdbf6acbfc1046ccb4e359c4a1ec7f472de395e02d3c7123b03520f98a4892"

/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:31.51: Job failed: Failed: Build failed
2024-02-08 13:31.51: Log analysis:
2024-02-08 13:31.51: >>> 
[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:31.51: [SKIP] Package not available