(for PR #28222)

2025-08-21 14:13.39: New job: build ocurl.0.7.7, using opam 2.3
                              from https://github.com/ocaml/opam-repository.git#refs/pull/28222/head (a14b2680809606d7e55ae7ed410b73438cb77bd0)
                              on debian-unstable-ocaml-5.3/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/28222/head" && git reset --hard a14b2680
git fetch origin master
git merge --no-edit 4bae7ec4df49df4454ea492c8d7a1196aeae04e0
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-unstable-ocaml-5.3@sha256:97f7e58d7d578d3d6d2e572ee3efef02c8963ccab64e3f7aec93283e222a524b
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-2.3 /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 ocurl.0.7.7 0.7.7
RUN opam reinstall ocurl.0.7.7; \
    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-unstable\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'ocurl.0.7.7' && 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-08-21 14:13.39: Using cache hint "ocaml/opam:debian-unstable-ocaml-5.3@sha256:97f7e58d7d578d3d6d2e572ee3efef02c8963ccab64e3f7aec93283e222a524b-ocurl.0.7.7-a14b2680809606d7e55ae7ed410b73438cb77bd0"
2025-08-21 14:13.39: Using OBuilder spec:
((from ocaml/opam:debian-unstable-ocaml-5.3@sha256:97f7e58d7d578d3d6d2e572ee3efef02c8963ccab64e3f7aec93283e222a524b)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "sudo ln -f /usr/bin/opam-2.3 /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 ocurl.0.7.7 0.7.7"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall ocurl.0.7.7;\
             \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-unstable\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'ocurl.0.7.7' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-08-21 14:13.39: Waiting for resource in pool OCluster
2025-08-21 14:17.49: Waiting for worker…
2025-08-21 14:19.02: Got resource from pool OCluster
Building on eumache
All commits already cached
HEAD is now at 4bae7ec4df Merge pull request #28375 from jmid/opam-compiler-re-bounds
Merge made by the 'ort' strategy.
 packages/curl_lwt/curl_lwt.0.10.0/opam            |  2 +-
 packages/lwt/lwt.6.0.0~alpha01/opam               | 69 +++++++++++++++++++++++
 packages/lwt_direct/lwt_direct.6.0.0~alpha01/opam | 44 +++++++++++++++
 packages/lwt_glib/lwt_glib.1.0.1/opam             |  2 +-
 packages/lwt_glib/lwt_glib.1.1.0/opam             |  2 +-
 packages/lwt_glib/lwt_glib.1.1.1/opam             |  2 +-
 packages/lwt_log/lwt_log.1.1.0/opam               |  2 +-
 packages/lwt_log/lwt_log.1.1.1/opam               |  2 +-
 packages/lwt_log/lwt_log.1.1.2/opam               |  2 +-
 packages/ocurl/ocurl.0.7.6/opam                   |  1 +
 packages/ocurl/ocurl.0.7.7/opam                   |  1 +
 packages/ocurl/ocurl.0.7.8/opam                   |  1 +
 packages/ocurl/ocurl.0.7.9/opam                   |  1 +
 packages/ocurl/ocurl.0.8.1/opam                   |  1 +
 packages/ocurl/ocurl.0.8.2/opam                   |  1 +
 packages/ocurl/ocurl.0.9.0/opam                   |  1 +
 packages/ocurl/ocurl.0.9.1/opam                   |  1 +
 packages/ocurl/ocurl.0.9.2/opam                   |  1 +
 18 files changed, 129 insertions(+), 7 deletions(-)
 create mode 100644 packages/lwt/lwt.6.0.0~alpha01/opam
 create mode 100644 packages/lwt_direct/lwt_direct.6.0.0~alpha01/opam

(from ocaml/opam:debian-unstable-ocaml-5.3@sha256:97f7e58d7d578d3d6d2e572ee3efef02c8963ccab64e3f7aec93283e222a524b)
Unable to find image 'ocaml/opam:debian-unstable-ocaml-5.3@sha256:97f7e58d7d578d3d6d2e572ee3efef02c8963ccab64e3f7aec93283e222a524b' locally
docker.io/ocaml/opam@sha256:97f7e58d7d578d3d6d2e572ee3efef02c8963ccab64e3f7aec93283e222a524b: Pulling from ocaml/opam
8d168639a251: Already exists
2a2929835a7c: Already exists
365d74aa7305: Already exists
5cac385bcac9: Already exists
b9f3a2a5af61: Already exists
defe6850fd30: Already exists
f10dee49032d: Already exists
5a1e55ef5d8a: Already exists
5cde39c4ae01: Already exists
f2bd93ad396c: Already exists
c9c4cafe8494: Already exists
b2e95eb1f781: Already exists
32a05e697307: Already exists
9afd684b567d: Already exists
d766b6417d87: Already exists
5a56d2a9943d: Already exists
a866afae9da6: Already exists
0531a611fd1f: Already exists
9059f63e116e: Already exists
7eed33b1e910: Already exists
39fec7db9f5d: Already exists
4f4fb700ef54: Already exists
618afed83812: Already exists
290e49c739d0: Already exists
5289cfd00b04: Already exists
98d16eb2a4de: Already exists
e54fa10de2cf: Already exists
f883968196c7: Already exists
e71b2d3d6c3c: Already exists
de5ac94faaa6: Already exists
7dac2bed6620: Already exists
16545724e4f0: Already exists
bfb0037564b6: Already exists
57fb8830e8ce: Already exists
ce7820bae0ab: Already exists
86c40e701a8c: Already exists
694b28b8b556: Already exists
7cd60f32f5a0: Already exists
c6eca13ba064: Already exists
e60d2bb58a75: Already exists
4ea54a521665: Already exists
2756c8b64655: Already exists
5727478b7cc3: Already exists
ff12f090330e: Already exists
05402cc49bd6: Already exists
ab4204fa3668: Already exists
c4fc6408ceab: Already exists
Digest: sha256:97f7e58d7d578d3d6d2e572ee3efef02c8963ccab64e3f7aec93283e222a524b
Status: Downloaded newer image for ocaml/opam@sha256:97f7e58d7d578d3d6d2e572ee3efef02c8963ccab64e3f7aec93283e222a524b
2025-08-21 14:19.06 ---> using "82baefeb4889b69f1d87522fbf24276bc56a1259b206219ae30744210e4ea14f" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam"))
2025-08-21 14:19.06 ---> using "92d3a01209018a5d99383d261692ba08f93caf8b75c349115c273b21146b28dd" 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 255 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=255 --global
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-08-21 14:19.06 ---> using "a86f858e1a86c7fe29e8ca841167b808139e8b712c8b8890d16ecc7cb64a378b" 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.3.0 (35acd0c5abc5e66cdbd5be16ba77aa6c33a4c724)
# 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.3
# invariant            ["ocaml-base-compiler" {= "5.3.0"}]
# compiler-packages    ocaml-base-compiler.5.3.0, ocaml-compiler.5.3.0, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/5.3/lib/ocaml/stublibs:/home/opam/.opam/5.3/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       5.3.0
2025-08-21 14:19.06 ---> using "5e4509720dc19840224e965f00946392b75d43e139f5f417250529a82196f4d2" 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-08-21 14:19.06 ---> using "f4921f675569a8e33f4aa617fb6736795086c389e77ae018de22d1124fdce55e" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-08-21 14:19.13 ---> saved as "c949837be028f6f616d9b5720bdff0232cadd86ff10f931751d0022262143680"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-08-21 14:19.32 ---> saved as "8b36d1b55e6740706ced72ae51d6eb00d1948fed78a715a5a320f58caca7e5c0"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Get:1 http://deb.debian.org/debian unstable InRelease [216 kB]
- Get:2 http://deb.debian.org/debian unstable/main amd64 Packages.diff/Index [63.6 kB]
- Get:3 http://deb.debian.org/debian unstable/main amd64 Packages T-2025-08-21-0805.40-F-2025-08-16-1409.45.pdiff [460 kB]
- Get:3 http://deb.debian.org/debian unstable/main amd64 Packages T-2025-08-21-0805.40-F-2025-08-16-1409.45.pdiff [460 kB]
- Fetched 740 kB in 3s (280 kB/s)
- Reading package lists...
- 
2025-08-21 14:19.36 ---> saved as "a5c609b22de41885892a1007e9a138313b035300cddd79f24fc6d864c36a6369"

/home/opam: (run (shell "opam pin add -k version -yn ocurl.0.7.7 0.7.7"))
ocurl is now pinned to version 0.7.7
2025-08-21 14:19.37 ---> saved as "4a6842056fb39dfc0175111e43bf5ab9172adb6b240743af96b724fe887e7fa9"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall ocurl.0.7.7;\
                        \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-unstable\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'ocurl.0.7.7' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
ocurl.0.7.7 is not installed. Install it? [y/n] y
  * Incompatible packages:
    - (invariant) -> ocaml-base-compiler = 5.3.0
    - ocurl = 0.7.7 -> ocaml < 5.0 -> dkml-base-compiler
    You can temporarily relax the switch invariant with `--update-invariant'
  * Incompatible packages:
    - (invariant) -> ocaml-base-compiler = 5.3.0
    - ocurl = 0.7.7 -> ocaml < 5.0 -> ocaml-variants (< 4.00.1~ | >= 4.00.1)
  * Missing dependency:
    - ocurl = 0.7.7 -> ocaml < 5.0 -> 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.3.0
    unmet availability conditions, e.g. 'sys-ocaml-version = "5.3.0" & (os != "win32" | sys-ocaml-libc = "msvc")'
    no matching version
  * Missing dependency:
    - ocurl = 0.7.7 -> ocaml < 5.0 -> ocaml-variants >= 4.00.1 -> ocaml-beta
    unmet availability conditions: 'enable-ocaml-beta-repository'
  * Missing dependency:
    - ocurl = 0.7.7 -> 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 ocurl.0.7.7;
        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-unstable\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'ocurl.0.7.7' && 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-08-21 14:19.53: Job failed: Failed: Build failed
2025-08-21 14:19.53: Log analysis:
2025-08-21 14:19.53: >>> 
No solution found, exiting
 (score = 100)
2025-08-21 14:19.53: [SKIP] Package not available