(for PR #26907)

2024-11-18 13:44.00: New job: build apron.v0.9.12, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/26907/head (b6229f0d14497cac47fc1ccd0ef31dd6c590ddfe)
                              on debian-12-ocaml-5.2/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/26907/head" && git reset --hard b6229f0d
git fetch origin master
git merge --no-edit a6cd5e92975350b992cb58b4351df6fceefc8144
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-5.2@sha256:f5ecaec23eec339e64ef62758175b5c88a4a28c9215d9607bf3c7514358a83d4
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="1000"
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
RUN opam pin add -k version -yn apron.v0.9.12 v0.9.12
RUN opam reinstall apron.v0.9.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" != 'apron.v0.9.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-11-18 13:44.00: Using cache hint "ocaml/opam:debian-12-ocaml-5.2@sha256:f5ecaec23eec339e64ef62758175b5c88a4a28c9215d9607bf3c7514358a83d4-apron.v0.9.12-b6229f0d14497cac47fc1ccd0ef31dd6c590ddfe"
2024-11-18 13:44.00: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-5.2@sha256:f5ecaec23eec339e64ef62758175b5c88a4a28c9215d9607bf3c7514358a83d4)
 (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 1000)
 (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"))
 (run (shell "opam pin add -k version -yn apron.v0.9.12 v0.9.12"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall apron.v0.9.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\" != 'apron.v0.9.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-11-18 13:44.00: Waiting for resource in pool OCluster
2024-11-18 13:44.01: Waiting for worker…
2024-11-18 13:46.55: Got resource from pool OCluster
Building on s390x-worker-02.marist.ci.dev
Updating files:  59% (19495/32679)
Updating files:  60% (19608/32679)
Updating files:  61% (19935/32679)
Updating files:  62% (20261/32679)
Updating files:  63% (20588/32679)
Updating files:  64% (20915/32679)
Updating files:  65% (21242/32679)
Updating files:  66% (21569/32679)
Updating files:  67% (21895/32679)
Updating files:  68% (22222/32679)
Updating files:  69% (22549/32679)
Updating files:  70% (22876/32679)
Updating files:  71% (23203/32679)
Updating files:  72% (23529/32679)
Updating files:  73% (23856/32679)
Updating files:  74% (24183/32679)
Updating files:  75% (24510/32679)
Updating files:  76% (24837/32679)
Updating files:  77% (25163/32679)
Updating files:  78% (25490/32679)
Updating files:  79% (25817/32679)
Updating files:  80% (26144/32679)
Updating files:  81% (26470/32679)
Updating files:  82% (26797/32679)
Updating files:  83% (27124/32679)
Updating files:  84% (27451/32679)
Updating files:  85% (27778/32679)
Updating files:  86% (28104/32679)
Updating files:  87% (28431/32679)
Updating files:  88% (28758/32679)
Updating files:  89% (29085/32679)
Updating files:  90% (29412/32679)
Updating files:  91% (29738/32679)
Updating files:  92% (30065/32679)
Updating files:  93% (30392/32679)
Updating files:  94% (30719/32679)
Updating files:  95% (31046/32679)
Updating files:  96% (31372/32679)
Updating files:  97% (31699/32679)
Updating files:  98% (32026/32679)
Updating files:  99% (32353/32679)
Updating files: 100% (32679/32679)
Updating files: 100% (32679/32679), done.
HEAD is now at 12d88201f7 Merge commit 'a47b1e90290ab33966433ccb51f9e0b4c609c316'
HEAD is now at a6cd5e9297 Merge pull request #26892 from recoules/release-bitwuzla-cxx-0.6.1
Merge made by the 'ort' strategy.
 packages/apron/apron.0.9.14/opam  | 5 ++++-
 packages/apron/apron.v0.9.12/opam | 5 ++++-
 packages/apron/apron.v0.9.14/opam | 8 +++++++-
 3 files changed, 15 insertions(+), 3 deletions(-)

(from ocaml/opam:debian-12-ocaml-5.2@sha256:f5ecaec23eec339e64ef62758175b5c88a4a28c9215d9607bf3c7514358a83d4)
2024-11-18 13:47.00 ---> using "4ca45032b9491471be3455cf4772e0a402bd5a6b26ccbaca1a1a4cba38ee1fb3" 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-11-18 13:47.00 ---> using "3ab49a87c2bed9103bad075f766ce693020beeaf41e48ec14d4ebd034f5ae5a5" 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, 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-11-18 13:47.00 ---> using "46289f434fa7ccaf8d9a9dff66abb6e114758861364e2a4081873ea1696f785f" from cache

/home/opam: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 6.8.0-48-generic
The OCaml toplevel, version 5.2.0
2.4.0~alpha1~dev
2024-11-18 13:47.00 ---> using "7321488383e040a4ab6cab002d52db8a326f74b78676350433c95d59d987b1c9" from cache

/home/opam: (env OPAMDOWNLOADJOBS 1)

/home/opam: (env OPAMERRLOGLEN 0)

/home/opam: (env OPAMSOLVERTIMEOUT 1000)

/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-11-18 13:47.00 ---> using "935b03c34900d81d0f7941baf7851abd3b2084ae10c2f053c1ae0932eb5a7b2f" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2024-11-18 13:47.56 ---> saved as "3721bea2f9abfa2f6a8704fe45d60a505b2b47cb4be533da7ebf9ae55b0402eb"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2024-11-18 13:48.50 ---> saved as "9e0eec193a140c98f670b04f9aaeac9188e5839e42e319d04ab51c5f3a1a171e"

/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 [194 kB]
- Fetched 297 kB in 1s (470 kB/s)
- Reading package lists...
- 
2024-11-18 13:48.53 ---> saved as "6ffe0dc394d1ff16174998532dafc597c634a265087f31250c43628f55e0e87f"

/home/opam: (run (shell "opam pin add -k version -yn apron.v0.9.12 v0.9.12"))
apron is now pinned to version v0.9.12
2024-11-18 13:48.58 ---> saved as "f234d4729a2dbddaf3b0ed0742cbc3c34665a25c58f4e966e768778fe141fbb7"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall apron.v0.9.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\" != 'apron.v0.9.12' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
apron.v0.9.12 is not installed. Install it? [y/n] y
  * Incompatible packages:
    - (invariant) -> ocaml-base-compiler = 5.2.0
    - apron = v0.9.12 -> ocaml < 5 -> ocaml-variants (< 4.00.1~ | >= 4.00.1)
    You can temporarily relax the switch invariant with `--update-invariant'
  * Missing dependency:
    - apron = v0.9.12 -> ocaml < 5 -> ocaml-base-compiler (<= 3.07+1 | = 3.07+2 | = 3.08.0 | = 3.08.1 | = 3.08.2 | = 3.08.3 | = 3.08.4 | = 3.09.0) | ocaml-system (<= 3.07+1 | = 3.07+2 | >= 3.08.0) | ocaml-variants < 3.09.1~
    not available because the package is pinned to version 5.2.0
    unmet availability conditions, e.g. 'sys-ocaml-version = "5.2.0" & (os != "win32" | sys-ocaml-libc = "msvc")'
    no matching version
  * Missing dependency:
    - apron = v0.9.12 -> ocaml < 5 -> ocaml-variants >= 4.00.1 -> ocaml-beta
    unmet availability conditions: 'enable-ocaml-beta-repository'
  * Missing dependency:
    - apron = v0.9.12 -> ocaml < 5 -> ocaml-variants >= 4.00.1 -> system-msvc
    unmet availability conditions: 'os = "win32"'

No solution found, exiting
"/usr/bin/env" "bash" "-c" "opam reinstall apron.v0.9.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" != 'apron.v0.9.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-11-18 13:49.38: Job failed: Failed: Build failed
2024-11-18 13:49.38: Log analysis:
2024-11-18 13:49.38: >>> 
No solution found, exiting
 (score = 100)
2024-11-18 13:49.38: [SKIP] Package not available