(for PR #19229)

2024-04-17 19:21.19: New job: build conf-llvm.11.0.0, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/19229/head (e200798bccb6e55ca7626dbc7b08164746413023)
                              on debian-12-ocaml-5.1/s390x

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-5.1@sha256:602c787775ce4c2adf43444978eaa1b29ad6503eb50e824f90348031e402dd84
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.11.0.0 11.0.0
RUN opam reinstall conf-llvm.11.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.11.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.19: Using cache hint "ocaml/opam:debian-12-ocaml-5.1@sha256:602c787775ce4c2adf43444978eaa1b29ad6503eb50e824f90348031e402dd84-conf-llvm.11.0.0-e200798bccb6e55ca7626dbc7b08164746413023"
2024-04-17 19:21.19: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-5.1@sha256:602c787775ce4c2adf43444978eaa1b29ad6503eb50e824f90348031e402dd84)
 (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.11.0.0 11.0.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall conf-llvm.11.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.11.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.19: Waiting for resource in pool OCluster
2024-04-17 19:21.20: Waiting for worker…
2024-04-17 19:24.13: Got resource from pool OCluster
Building on s390x-worker-01.marist.ci.dev
All commits already cached
Updating files:  30% (10117/33523)
Updating files:  31% (10393/33523)
Updating files:  32% (10728/33523)
Updating files:  33% (11063/33523)
Updating files:  34% (11398/33523)
Updating files:  35% (11734/33523)
Updating files:  36% (12069/33523)
Updating files:  37% (12404/33523)
Updating files:  38% (12739/33523)
Updating files:  39% (13074/33523)
Updating files:  40% (13410/33523)
Updating files:  41% (13745/33523)
Updating files:  42% (14080/33523)
Updating files:  43% (14415/33523)
Updating files:  44% (14751/33523)
Updating files:  45% (15086/33523)
Updating files:  46% (15421/33523)
Updating files:  47% (15756/33523)
Updating files:  48% (16092/33523)
Updating files:  49% (16427/33523)
Updating files:  50% (16762/33523)
Updating files:  51% (17097/33523)
Updating files:  52% (17432/33523)
Updating files:  53% (17768/33523)
Updating files:  54% (18103/33523)
Updating files:  55% (18438/33523)
Updating files:  56% (18773/33523)
Updating files:  57% (19109/33523)
Updating files:  58% (19444/33523)
Updating files:  59% (19779/33523)
Updating files:  60% (20114/33523)
Updating files:  61% (20450/33523)
Updating files:  62% (20785/33523)
Updating files:  63% (21120/33523)
Updating files:  64% (21455/33523)
Updating files:  65% (21790/33523)
Updating files:  66% (22126/33523)
Updating files:  67% (22461/33523)
Updating files:  68% (22796/33523)
Updating files:  69% (23131/33523)
Updating files:  70% (23467/33523)
Updating files:  71% (23802/33523)
Updating files:  72% (24137/33523)
Updating files:  73% (24472/33523)
Updating files:  74% (24808/33523)
Updating files:  75% (25143/33523)
Updating files:  76% (25478/33523)
Updating files:  77% (25813/33523)
Updating files:  78% (26148/33523)
Updating files:  79% (26484/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:  91% (30811/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-5.1@sha256:602c787775ce4c2adf43444978eaa1b29ad6503eb50e824f90348031e402dd84)
Unable to find image 'ocaml/opam:debian-12-ocaml-5.1@sha256:602c787775ce4c2adf43444978eaa1b29ad6503eb50e824f90348031e402dd84' locally
docker.io/ocaml/opam@sha256:602c787775ce4c2adf43444978eaa1b29ad6503eb50e824f90348031e402dd84: Pulling from ocaml/opam
4a759855927a: Pulling fs layer
4a759855927a: Verifying Checksum
4a759855927a: Download complete
4a759855927a: Pull complete
Digest: sha256:602c787775ce4c2adf43444978eaa1b29ad6503eb50e824f90348031e402dd84
Status: Downloaded newer image for ocaml/opam@sha256:602c787775ce4c2adf43444978eaa1b29ad6503eb50e824f90348031e402dd84
2024-04-17 19:24.17 ---> using "12499c4f6444f9cff436388ebcff9fc2bb57767ab208c3cb03b9a2771e6d9c89" 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:24.17 ---> using "8d85db56947f73c2a601364c752631f18b72eb7681445abeba03d9a109e9dcf7" 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:24.18 ---> using "56d78402395f585357ee9bb2ffe4ab7ff21f887b840fcdd853a6962fd56016d3" from cache

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

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

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

/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 s390x Packages [144 kB]
- Fetched 248 kB in 0s (779 kB/s)
- Reading package lists...
- 
2024-04-17 19:25.42 ---> saved as "b7d11912279f7453b61ba8d0898ac50ef27971934684ac683abcdc8497d2fa89"

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

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