(for PR #24267)

2025-10-17 13:54.21: New job: build orsvm_e1071.2.0.0, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/24267/head (41de505ec8ff3637ab3cb06a41ccbc29683f566c)
                              on debian-testing-ocaml-5.4/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/24267/head" && git reset --hard 41de505e
git fetch origin master
git merge --no-edit 5bf570252bd9fee71938b828ca0b86573c1e3355
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-testing-ocaml-5.4@sha256:4e657be0131438aaad03fbcc19ff8b51db062c1e209ef4f2ee4eb93648b16359
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-dev /usr/bin/opam
RUN opam init --reinit -ni
RUN opam option solver=builtin-0install && opam config report
ENV OPAMDOWNLOADJOBS="1"
ENV OPAMERRLOGLEN="0"
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 orsvm_e1071.2.0.0 2.0.0
RUN opam reinstall orsvm_e1071.2.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-testing\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'orsvm_e1071.2.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 .

2025-10-17 13:54.21: Using cache hint "ocaml/opam:debian-testing-ocaml-5.4@sha256:4e657be0131438aaad03fbcc19ff8b51db062c1e209ef4f2ee4eb93648b16359-orsvm_e1071.2.0.0-41de505ec8ff3637ab3cb06a41ccbc29683f566c"
2025-10-17 13:54.21: Using OBuilder spec:
((from ocaml/opam:debian-testing-ocaml-5.4@sha256:4e657be0131438aaad03fbcc19ff8b51db062c1e209ef4f2ee4eb93648b16359)
 (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 "opam option solver=builtin-0install && opam config report"))
 (env OPAMDOWNLOADJOBS 1)
 (env OPAMERRLOGLEN 0)
 (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 orsvm_e1071.2.0.0 2.0.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall orsvm_e1071.2.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-testing\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'orsvm_e1071.2.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"))
)

2025-10-17 13:54.21: Connecting to build cluster…
2025-10-17 13:54.21: Waiting for resource in pool OCluster
2025-10-17 14:13.05: Waiting for worker…
2025-10-17 14:15.45: Got resource from pool OCluster
Building on laodoke.caelum.ci.dev
All commits already cached
HEAD is now at 5bf570252b Merge pull request #28700 from drjdn/opam-publish-p5scm.0.5.0
Merge made by the 'ort' strategy.
 packages/odnnr/odnnr.2.0.0/opam                   | 4 +---
 packages/oplsr/oplsr.8.0.1/opam                   | 3 +--
 packages/orrandomForest/orrandomForest.1.0.0/opam | 5 +----
 packages/orrandomForest/orrandomForest.2.0.1/opam | 7 +------
 packages/orrandomForest/orrandomForest.3.0.0/opam | 7 +------
 packages/orsvm_e1071/orsvm_e1071.2.0.0/opam       | 3 ---
 packages/orsvm_e1071/orsvm_e1071.3.0.0/opam       | 5 +----
 packages/orsvm_e1071/orsvm_e1071.3.0.1/opam       | 2 +-
 packages/orsvm_e1071/orsvm_e1071.3.0.2/opam       | 2 +-
 packages/orsvm_e1071/orsvm_e1071.4.0.0/opam       | 2 +-
 packages/orxgboost/orxgboost.1.0.1/opam           | 5 +----
 packages/orxgboost/orxgboost.1.1.0/opam           | 5 +----
 packages/orxgboost/orxgboost.1.2.0/opam           | 5 +----
 13 files changed, 12 insertions(+), 43 deletions(-)

(from ocaml/opam:debian-testing-ocaml-5.4@sha256:4e657be0131438aaad03fbcc19ff8b51db062c1e209ef4f2ee4eb93648b16359)
Unable to find image 'ocaml/opam:debian-testing-ocaml-5.4@sha256:4e657be0131438aaad03fbcc19ff8b51db062c1e209ef4f2ee4eb93648b16359' locally
docker.io/ocaml/opam@sha256:4e657be0131438aaad03fbcc19ff8b51db062c1e209ef4f2ee4eb93648b16359: Pulling from ocaml/opam
e53bf7ab07ea: Already exists
40e83fd03a64: Already exists
3acc4d2a68a3: Already exists
5b42b9559bc8: Already exists
638cc70cd4c9: Already exists
0f2ece377762: Already exists
d5a0c2fc7bee: Already exists
3972d94ac4a1: Already exists
7f2380dd5d83: Already exists
ccb2e4972165: Already exists
06b72e45c926: Already exists
6e326f3ebcbf: Already exists
1ed93e22d455: Already exists
632d8c92cdde: Already exists
6a8565a9e443: Already exists
c059a4cbd7b9: Already exists
3a00fdc9e291: Already exists
a0b62589bd38: Already exists
65d69ef7ccbb: Already exists
bca1fd5341ba: Already exists
34b9849c2772: Already exists
4f4fb700ef54: Already exists
d8d3d0744e38: Already exists
788c7ce0e0e5: Already exists
f5491c406cef: Already exists
704bb14c9120: Already exists
ab6a8381ad56: Already exists
ab17158c7049: Already exists
181308c36661: Already exists
dc1e99141a78: Already exists
4c38358a39a0: Already exists
ecd00ba12154: Already exists
130264e00ffb: Already exists
f5d3e0233be6: Already exists
a650dfb6a4bc: Already exists
6172af6d7fc2: Already exists
aa2fc4d6f7cc: Already exists
428e07980479: Already exists
2d89bd9e273e: Already exists
054b98ff0ed8: Already exists
d2463d805491: Pulling fs layer
d235edda5ef8: Pulling fs layer
11e7dc7d979b: Pulling fs layer
d235edda5ef8: Waiting
030694252337: Pulling fs layer
11e7dc7d979b: Waiting
6144aba2efc2: Pulling fs layer
030694252337: Waiting
163e9cbfe9bf: Pulling fs layer
6144aba2efc2: Waiting
37b76bb0c815: Pulling fs layer
163e9cbfe9bf: Waiting
37b76bb0c815: Waiting
d2463d805491: Verifying Checksum
d2463d805491: Download complete
d2463d805491: Pull complete
d235edda5ef8: Verifying Checksum
d235edda5ef8: Download complete
d235edda5ef8: Pull complete
11e7dc7d979b: Verifying Checksum
11e7dc7d979b: Download complete
11e7dc7d979b: Pull complete
030694252337: Download complete
6144aba2efc2: Verifying Checksum
6144aba2efc2: Download complete
163e9cbfe9bf: Verifying Checksum
163e9cbfe9bf: Download complete
37b76bb0c815: Verifying Checksum
37b76bb0c815: Download complete
030694252337: Pull complete
6144aba2efc2: Pull complete
163e9cbfe9bf: Pull complete
37b76bb0c815: Pull complete
Digest: sha256:4e657be0131438aaad03fbcc19ff8b51db062c1e209ef4f2ee4eb93648b16359
Status: Downloaded newer image for ocaml/opam@sha256:4e657be0131438aaad03fbcc19ff8b51db062c1e209ef4f2ee4eb93648b16359
2025-10-17 14:15.47 ---> using "294c85adc29eec8143dde5bdc8bb2409c991a7ebb0dfcd1cc060488ee11fc210" from cache

/: (user (uid 1000) (gid 1000))

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2025-10-17 14:15.47 ---> using "248a98cfed5b205bfc9311d9dd81eceb20bb320557feb4197ed6d3aa68ff0586" 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 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
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-10-17 14:15.47 ---> using "864f9a2f6b738e199c498c76194ba4947b78cc60975c5d73b6731038ac41b6e7" from cache

/home/opam: (run (shell "opam option solver=builtin-0install && opam config report"))
Set to 'builtin-0install' the field solver in global configuration
# opam config report
# opam-version         2.4.1
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=debian os-version=unknown
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 71
# repositories         1 (version-controlled)
# pinned               1 (version)
# current-switch       5.4
# invariant            ["ocaml-base-compiler" {>= "5.4.0"}]
# compiler-packages    ocaml-base-compiler.5.4.0, ocaml-compiler.5.4.0, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/5.4/lib/ocaml/stublibs:/home/opam/.opam/5.4/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       5.4.0
2025-10-17 14:15.47 ---> using "8460c8edaf1bd14b62aa7ddbbd56c55241895a8020daf918ecd6500f4c08e567" from cache

/home/opam: (env OPAMDOWNLOADJOBS 1)

/home/opam: (env OPAMERRLOGLEN 0)

/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/"))
2025-10-17 14:15.47 ---> using "d96654ed53bd08f03aaefdc5041df1b8982374c606aac7c11fcb83310651f3c3" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-10-17 14:15.48 ---> using "6d4bbe661d78664e4c2b5c837d3c717aa568efbaa53b77d2f77d18fd485a6257" from cache

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-10-17 14:15.48 ---> saved as "37b5e324b7e1a0d642ffcaa0ec91fea98daa827ed0343778259bc6ba1282c136"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Get:1 http://deb.debian.org/debian testing InRelease [147 kB]
- Get:2 http://deb.debian.org/debian testing-updates InRelease [45.1 kB]
- Get:3 http://deb.debian.org/debian-security testing-security InRelease [43.4 kB]
- Get:4 http://deb.debian.org/debian testing/main amd64 Packages.diff/Index [63.6 kB]
- Get:5 http://deb.debian.org/debian testing/main amd64 Packages T-2025-10-17-0808.00-F-2025-10-11-1407.05.pdiff [310 kB]
- Get:5 http://deb.debian.org/debian testing/main amd64 Packages T-2025-10-17-0808.00-F-2025-10-11-1407.05.pdiff [310 kB]
- Fetched 609 kB in 4s (149 kB/s)
- Reading package lists...
2025-10-17 14:15.53 ---> saved as "c6b394a5b155108674574844dbd6c462ded58c1c944c61c7bd52d216e3fb33e8"

/home/opam: (run (shell "opam pin add -k version -yn orsvm_e1071.2.0.0 2.0.0"))
orsvm_e1071 is now pinned to version 2.0.0
2025-10-17 14:15.54 ---> saved as "9f1d90e19047e9f6a769b548076a928a4b6c2d4591340be6f44f45a66d6171b0"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall orsvm_e1071.2.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-testing\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'orsvm_e1071.2.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"))
orsvm_e1071.2.0.0 is not installed. Install it? [Y/n] y
  * Incompatible packages:
    - (invariant) -> ocaml-base-compiler >= 5.4.0
    - orsvm_e1071 < 3.0.0 -> jbuilder -> ocaml < 5.0 -> dkml-base-compiler
    You can temporarily relax the switch invariant with `--update-invariant'
  * Incompatible packages:
    - (invariant) -> ocaml-base-compiler >= 5.4.0
    - orsvm_e1071 < 3.0.0 -> jbuilder -> ocaml < 5.0 -> ocaml-variants (< 4.00.1~ | >= 4.00.1)
  * Missing dependency:
    - orsvm_e1071 < 3.0.0 -> jbuilder -> dune < 2.0 -> ocaml < 4.12 -> 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.4.0
    unmet availability conditions, e.g. 'sys-ocaml-version = "5.4.0" & (os != "win32" | sys-ocaml-libc = "msvc")'
    no matching version
  * Missing dependency:
    - orsvm_e1071 < 3.0.0 -> jbuilder -> ocaml < 5.0 -> ocaml-variants >= 4.00.1 -> ocaml-beta
    unmet availability conditions: 'enable-ocaml-beta-repository'
  * Missing dependency:
    - orsvm_e1071 < 3.0.0 -> jbuilder -> ocaml < 5.0 -> ocaml-variants >= 4.00.1 -> system-msvc
    unmet availability conditions: 'os = "win32"'

No solution found, exiting
"/usr/bin/env" "bash" "-c" "opam reinstall orsvm_e1071.2.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-testing\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'orsvm_e1071.2.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 20
2025-10-17 14:16.07: Job failed: Failed: Build failed
2025-10-17 14:16.07: Log analysis:
2025-10-17 14:16.07: >>> 
No solution found, exiting
 (score = 100)
2025-10-17 14:16.07: [SKIP] Package not available