(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 opensuse-tumbleweed-ocaml-5.2/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:opensuse-tumbleweed-ocaml-5.2@sha256:f6334d99765d97d53bc6dc8f62eccfb35232ba1e89a468a6aad53007171aec43
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 "\"opensuse-tumbleweed\""; 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:opensuse-tumbleweed-ocaml-5.2@sha256:f6334d99765d97d53bc6dc8f62eccfb35232ba1e89a468a6aad53007171aec43-apron.v0.9.12-b6229f0d14497cac47fc1ccd0ef31dd6c590ddfe"
2024-11-18 13:43.59: Using OBuilder spec:
((from ocaml/opam:opensuse-tumbleweed-ocaml-5.2@sha256:f6334d99765d97d53bc6dc8f62eccfb35232ba1e89a468a6aad53007171aec43)
 (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 \"\\\"opensuse-tumbleweed\\\"\"; 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:49.51: Got resource from pool OCluster
Building on doris.caelum.ci.dev
All commits already cached
Updating files:  71% (23476/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:opensuse-tumbleweed-ocaml-5.2@sha256:f6334d99765d97d53bc6dc8f62eccfb35232ba1e89a468a6aad53007171aec43)
Unable to find image 'ocaml/opam:opensuse-tumbleweed-ocaml-5.2@sha256:f6334d99765d97d53bc6dc8f62eccfb35232ba1e89a468a6aad53007171aec43' locally
docker.io/ocaml/opam@sha256:f6334d99765d97d53bc6dc8f62eccfb35232ba1e89a468a6aad53007171aec43: Pulling from ocaml/opam
566f38af04de: Pulling fs layer
566f38af04de: Verifying Checksum
566f38af04de: Download complete
566f38af04de: Pull complete
Digest: sha256:f6334d99765d97d53bc6dc8f62eccfb35232ba1e89a468a6aad53007171aec43
Status: Downloaded newer image for ocaml/opam@sha256:f6334d99765d97d53bc6dc8f62eccfb35232ba1e89a468a6aad53007171aec43
2024-11-18 13:50.13 ---> using "b9dd1fdbc62d4eab1265407a673aa2b8261f8d9615e80676c10b1c7ec4c3f7b4" 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:50.13 ---> using "e8accfc0d0170c2f0ecd981fbddd5a72a4e0a71e671854c88bb03537b75bf41a" 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, which can't be reverted.
You may want to back it up before going further.

Continue? [y/n] y
[NOTE] The 'jobs' option was reset, its value was 31 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=31 --global
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
2024-11-18 13:50.13 ---> using "5c49d52d52563215b9ab1ce46ef45b40585259e997de37c36f222346ee1cef23" 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.2.0
2.4.0~alpha1~dev
2024-11-18 13:50.13 ---> using "ea80e45ff05b680a8abd03dc34862b099d9947cc69c2e937c1f6bcd1d74b8426" 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:50.13 ---> using "bcf49991e38db35b02f28ca862474c6260e0684a8d8ea20e184fab28c42cbf2e" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2024-11-18 13:50.25 ---> saved as "5493c1406a3219ecf9c16220af6536e00f671429d79753dcc94e1a6f03b96743"

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

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "zypper" "--non-interactive" "refresh"
- Retrieving repository 'openSUSE-Tumbleweed-Non-Oss' metadata [.....
- ......done]
- Building repository 'openSUSE-Tumbleweed-Non-Oss' cache [....done]
- Retrieving repository 'openSUSE-Tumbleweed-Oss' metadata [......
- .........
- .......
- .........
- ..........
- ..........
- ..........
- .........
- .........
- .done]
- Building repository 'openSUSE-Tumbleweed-Oss' cache [..
- ..done]
- Repository 'openSUSE-Tumbleweed-Update' is up to date.
- All repositories have been refreshed.
2024-11-18 13:51.31 ---> saved as "3cfbfd7341d9d014d8321cf5b0bc3189a9d4a06fd3ac16231245103bc28cf11c"

/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:51.32 ---> saved as "0bf91d7fe27cee85d26fd2ac7bb56a5656c1382d9942700d9525fc5bc0ff9200"

/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 \"\\\"opensuse-tumbleweed\\\"\"; 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
  * No agreement on the version of ocaml:
    - (invariant) -> ocaml-base-compiler = 5.2.0 -> ocaml = 5.2.0
    - apron = v0.9.12 -> ocaml < 5
    You can temporarily relax the switch invariant with `--update-invariant'
  * Incompatible packages:
    - (invariant) -> ocaml-base-compiler = 5.2.0
    - apron = v0.9.12 -> ocaml < 5 -> dkml-base-compiler
  * Incompatible packages:
    - (invariant) -> ocaml-base-compiler = 5.2.0
    - apron = v0.9.12 -> ocaml < 5 -> ocaml-variants (< 4.04.4~ | >= 4.05.1)
  * 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.05.1 -> ocaml-beta
    unmet availability conditions: 'enable-ocaml-beta-repository'
  * Missing dependency:
    - apron = v0.9.12 -> ocaml < 5 -> ocaml-variants >= 4.05.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 "\"opensuse-tumbleweed\""; 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:51.53: Job failed: Failed: Build failed
2024-11-18 13:51.53: Log analysis:
2024-11-18 13:51.53: >>> 
No solution found, exiting
 (score = 100)
2024-11-18 13:51.53: [SKIP] Package not available