(for PR #26907)

2024-11-18 13:43.59: 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.1/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/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.1@sha256:f8261d77960d4121a7c574bb231905abc0d2437c184ac77a86f8dd9ca82d4abb
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:43.59: Using cache hint "ocaml/opam:debian-12-ocaml-5.1@sha256:f8261d77960d4121a7c574bb231905abc0d2437c184ac77a86f8dd9ca82d4abb-apron.v0.9.12-b6229f0d14497cac47fc1ccd0ef31dd6c590ddfe"
2024-11-18 13:43.59: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-5.1@sha256:f8261d77960d4121a7c574bb231905abc0d2437c184ac77a86f8dd9ca82d4abb)
 (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:43.59: Waiting for resource in pool OCluster
2024-11-18 13:44.01: Waiting for worker…
2024-11-18 13:48.19: Got resource from pool OCluster
Building on doris.caelum.ci.dev
All commits already cached
Updating files:  64% (21229/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 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.1@sha256:f8261d77960d4121a7c574bb231905abc0d2437c184ac77a86f8dd9ca82d4abb)
2024-11-18 14:06.09 ---> using "00555ec5b6a257187705257bbcabc9ccad10a7753c46dff552af3a7b90bb2896" 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 14:06.09 ---> using "3ae444952918f16facdb4054eeda99a3287f2696dd0443fff5379cdb16cc2c94" 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.

[NOTE] The 'jobs' option was reset, its value was 39 and its new value will vary according to the current number of cores on your machine. You can restore the fixed value using:
           opam option jobs=39 --global
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
2024-11-18 14:06.09 ---> using "b3e0f19dda05c5b085392f7ad512551386ca59319a8b87d4db956c2d2437680e" from cache

/home/opam: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-125-generic
The OCaml toplevel, version 5.1.1
2.4.0~alpha1~dev
2024-11-18 14:06.09 ---> using "f1845225f3b49edadbccf8688b23d85d7c0c4f9d2d6d681218ba56ddbd91f9e4" 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 14:06.09 ---> using "f2c1ff77a22205d5eec6bc5aa5dbe4438c599e922d6cdfcb010f59938ef62652" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2024-11-18 14:06.29 ---> saved as "5ef69b502f876bb90d9040a8e55c671e365d3004ec898d179567142605b298ca"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2024-11-18 14:07.33 ---> saved as "fe1e210ca23ac95209aeff1bff7d983e791b2c3a60016bf2840ab5c73e799d6c"

/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 [204 kB]
- Fetched 307 kB in 0s (624 kB/s)
- Reading package lists...
- 
2024-11-18 14:07.35 ---> saved as "73cc592ce633aacd493208875906365d993ce378c2e3e68d9b3509c137961e6f"

/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 14:07.37 ---> saved as "d35a5e0a87b6dcb4ff7b5a8740b57efaf4fec24d2b615dbfd47a53d2e27a5bd3"

/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.1.1
    - apron = v0.9.12 -> ocaml < 5 -> dkml-base-compiler
    You can temporarily relax the switch invariant with `--update-invariant'
  * Incompatible packages:
    - (invariant) -> ocaml-base-compiler = 5.1.1
    - apron = v0.9.12 -> ocaml < 5 -> ocaml-variants (< 4.04.4~ | >= 4.05.0)
  * 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.1.1
    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.05.0 -> ocaml-beta
    unmet availability conditions: 'enable-ocaml-beta-repository'
  * Missing dependency:
    - apron = v0.9.12 -> ocaml < 5 -> ocaml-variants >= 4.05.0 -> 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 14:08.34: Job failed: Failed: Build failed
2024-11-18 14:08.34: Log analysis:
2024-11-18 14:08.34: >>> 
No solution found, exiting
 (score = 100)
2024-11-18 14:08.34: [SKIP] Package not available