(for PR #19229)

2024-04-17 19:21.15: New job: build conf-llvm.10.0.0, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/19229/head (e200798bccb6e55ca7626dbc7b08164746413023)
                              on debian-12-ocaml-4.04/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 f089d8564db935c703bea70a4b3d8335ffa1bef3
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-4.04@sha256:b51e3ac16be7ddf0f10c127b5cd175852bc90d0ebf321e717fa68a51fa0e0504
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
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.10.0.0 10.0.0
RUN opam reinstall conf-llvm.10.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.10.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-04-17 19:21.15: Using cache hint "ocaml/opam:debian-12-ocaml-4.04@sha256:b51e3ac16be7ddf0f10c127b5cd175852bc90d0ebf321e717fa68a51fa0e0504-conf-llvm.10.0.0-e200798bccb6e55ca7626dbc7b08164746413023"
2024-04-17 19:21.15: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.04@sha256:b51e3ac16be7ddf0f10c127b5cd175852bc90d0ebf321e717fa68a51fa0e0504)
 (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"))
 (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.10.0.0 10.0.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall conf-llvm.10.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.10.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-04-17 19:21.15: Waiting for resource in pool OCluster
2024-04-17 19:21.20: Waiting for worker…
2024-04-17 19:23.42: Got resource from pool OCluster
Building on x86-bm-c19.sw.ocaml.org
All commits already cached
Updating files:  79% (26548/33523)
Updating files:  80% (26819/33523)
Updating files:  81% (27154/33523)
Updating files:  82% (27489/33523)
Updating files:  83% (27825/33523)
Updating files:  84% (28160/33523)
Updating files:  85% (28495/33523)
Updating files:  86% (28830/33523)
Updating files:  87% (29166/33523)
Updating files:  88% (29501/33523)
Updating files:  89% (29836/33523)
Updating files:  90% (30171/33523)
Updating files:  91% (30506/33523)
Updating files:  92% (30842/33523)
Updating files:  93% (31177/33523)
Updating files:  94% (31512/33523)
Updating files:  95% (31847/33523)
Updating files:  96% (32183/33523)
Updating files:  97% (32518/33523)
Updating files:  98% (32853/33523)
Updating files:  99% (33188/33523)
Updating files: 100% (33523/33523)
Updating files: 100% (33523/33523), done.
HEAD is now at f089d8564d Merge pull request #25672 from gborough/opam-publish-fred.0.1.0
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.04@sha256:b51e3ac16be7ddf0f10c127b5cd175852bc90d0ebf321e717fa68a51fa0e0504)
2024-04-17 19:23.49 ---> using "1e07818fc52e1cf3d3aae85d5898f6fcebf9134b4581f15cb2059f652c1b9b59" 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-04-17 19:23.49 ---> using "df10f91618459f349228c40db5d90acfd1a19ea1dc0471e3f135495352bee863" 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-04-17 19:23.49 ---> using "dc6cdff88b6c8722e7071219c965b644233041650696c8980cce99c843780882" from cache

/home/opam: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-101-generic
The OCaml toplevel, version 4.04.2
2.2.0~beta3~dev
2024-04-17 19:23.49 ---> using "b4bc97e77b3b1629f77e915b2e12febc3fe19d0c0c2d085e1381f87f858e3d17" 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-04-17 19:23.49 ---> using "e178df73f1ffb05ec08e8f8946bf8690c31e04b0010f063d2ae289597536315f" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2024-04-17 19:23.59 ---> saved as "31b0485ae58c6482af69a59f5c949165cc1e59c0e7dabb0ed62e5dc958690395"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2024-04-17 19:24.55 ---> saved as "a2de410a699df55d4f5e473794ca5f42f4f0d844eb0cc597546070e772ba36eb"

/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 [55.4 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 [154 kB]
- Fetched 257 kB in 0s (801 kB/s)
- Reading package lists...
- 
2024-04-17 19:24.57 ---> saved as "85267035228a0c5e24127d6cea2ebc618fbd44b9e07a3cf407d044a26465b553"

/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.10.0.0 10.0.0"))
conf-llvm is now pinned to version 10.0.0
2024-04-17 19:24.57 ---> saved as "c677c5e8f5374263658943afb52c5e188f905c03159f4649ce2af45ba3f42ec7"

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