(for PR #25273)

2024-07-03 07:00.03: New job: build leaves.0.0.3, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/25273/head (20766ae4a537a13e1ac026d21b630f786edfe10d)
                              on debian-12-ocaml-4.14-afl/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/25273/head" && git reset --hard 20766ae4
git fetch origin master
git merge --no-edit f11abb6589b7c157b8bd91c5d5fcb5a92da6d892
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-4.14-afl@sha256:30d005782bad3fefab551b719a7e2755bad1c3fbe6d01dd2d47ba84e067186ee
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="500"
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 leaves.0.0.3 0.0.3
RUN opam reinstall leaves.0.0.3; \
    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" != 'leaves.0.0.3' && 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-07-03 07:00.03: Using cache hint "ocaml/opam:debian-12-ocaml-4.14-afl@sha256:30d005782bad3fefab551b719a7e2755bad1c3fbe6d01dd2d47ba84e067186ee-leaves.0.0.3-20766ae4a537a13e1ac026d21b630f786edfe10d"
2024-07-03 07:00.03: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.14-afl@sha256:30d005782bad3fefab551b719a7e2755bad1c3fbe6d01dd2d47ba84e067186ee)
 (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 500)
 (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 leaves.0.0.3 0.0.3"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall leaves.0.0.3;\
             \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\" != 'leaves.0.0.3' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2024-07-03 07:00.03: Waiting for resource in pool OCluster
2024-07-03 12:51.46: Waiting for worker…
2024-07-03 12:55.14: Got resource from pool OCluster
Building on x86-bm-c13.sw.ocaml.org
All commits already cached
Updating files:  60% (19047/31667)
Updating files:  61% (19317/31667)
Updating files:  62% (19634/31667)
Updating files:  63% (19951/31667)
Updating files:  64% (20267/31667)
Updating files:  65% (20584/31667)
Updating files:  66% (20901/31667)
Updating files:  67% (21217/31667)
Updating files:  68% (21534/31667)
Updating files:  69% (21851/31667)
Updating files:  70% (22167/31667)
Updating files:  71% (22484/31667)
Updating files:  72% (22801/31667)
Updating files:  73% (23117/31667)
Updating files:  74% (23434/31667)
Updating files:  75% (23751/31667)
Updating files:  76% (24067/31667)
Updating files:  77% (24384/31667)
Updating files:  78% (24701/31667)
Updating files:  79% (25017/31667)
Updating files:  80% (25334/31667)
Updating files:  81% (25651/31667)
Updating files:  82% (25967/31667)
Updating files:  83% (26284/31667)
Updating files:  84% (26601/31667)
Updating files:  85% (26917/31667)
Updating files:  86% (27234/31667)
Updating files:  87% (27551/31667)
Updating files:  88% (27867/31667)
Updating files:  89% (28184/31667)
Updating files:  90% (28501/31667)
Updating files:  91% (28817/31667)
Updating files:  92% (29134/31667)
Updating files:  93% (29451/31667)
Updating files:  94% (29767/31667)
Updating files:  95% (30084/31667)
Updating files:  96% (30401/31667)
Updating files:  97% (30717/31667)
Updating files:  98% (31034/31667)
Updating files:  99% (31351/31667)
Updating files: 100% (31667/31667)
Updating files: 100% (31667/31667), done.
HEAD is now at f11abb6589 Merge pull request #26180 from mseri/fix-async_ssl
Merge made by the 'ort' strategy.
 packages/leaves/leaves.0.0.3/opam   | 42 ++++++++++++++++++++++++++++++++++
 packages/minttea/minttea.0.0.3/opam | 43 +++++++++++++++++++++++++++++++++++
 packages/spices/spices.0.0.3/opam   | 45 +++++++++++++++++++++++++++++++++++++
 3 files changed, 130 insertions(+)
 create mode 100644 packages/leaves/leaves.0.0.3/opam
 create mode 100644 packages/minttea/minttea.0.0.3/opam
 create mode 100644 packages/spices/spices.0.0.3/opam

(from ocaml/opam:debian-12-ocaml-4.14-afl@sha256:30d005782bad3fefab551b719a7e2755bad1c3fbe6d01dd2d47ba84e067186ee)
Unable to find image 'ocaml/opam:debian-12-ocaml-4.14-afl@sha256:30d005782bad3fefab551b719a7e2755bad1c3fbe6d01dd2d47ba84e067186ee' locally
docker.io/ocaml/opam@sha256:30d005782bad3fefab551b719a7e2755bad1c3fbe6d01dd2d47ba84e067186ee: Pulling from ocaml/opam
3ef3e94eda86: Pulling fs layer
3ef3e94eda86: Verifying Checksum
3ef3e94eda86: Download complete
3ef3e94eda86: Pull complete
Digest: sha256:30d005782bad3fefab551b719a7e2755bad1c3fbe6d01dd2d47ba84e067186ee
Status: Downloaded newer image for ocaml/opam@sha256:30d005782bad3fefab551b719a7e2755bad1c3fbe6d01dd2d47ba84e067186ee
2024-07-03 12:57.10 ---> saved as "e1a3426f52cd28dd965c21f0510982367ec38dc77f1f938fe3f022c7bffb7065"

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2024-07-03 12:57.10 ---> saved as "09e75bfa0c1a72dafb24db42a57433bd00699bcf98b2248dbfc7e2013669c831"

/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~beta, 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] synchronised from file:///home/opam/opam-repository
2024-07-03 12:58.21 ---> saved as "c843d6fee6b4b47947bb55eb057ad8829f0b0332e8df1ccece7af9373e632614"

/home/opam: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-113-generic
The OCaml toplevel, version 4.14.2
2.2.0~rc1
2024-07-03 12:58.21 ---> saved as "803a5db279223175aeada4bc864802961c2fa4cbf8d4a3d7200015cc95d81339"

/home/opam: (env OPAMDOWNLOADJOBS 1)

/home/opam: (env OPAMERRLOGLEN 0)

/home/opam: (env OPAMSOLVERTIMEOUT 500)

/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-07-03 12:58.29 ---> saved as "eb7629937a64886cfd83ae6a56e4202b7f23f0754f8ab8f953b11942f71a3bce"

/home/opam: (copy (src .) (dst opam-repository/))
2024-07-03 12:58.51 ---> saved as "d2408aa5a596ca03803e9b5838f9020872b93fdcfd03941851ea564060bbf00f"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2024-07-03 12:59.42 ---> saved as "90bb52b1c8e7be61abd1ece0b4937fc7a05c03d21084a2fa4a694d43d4f6a352"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
- 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 bookworm/main amd64 Packages [8788 kB]
- Get:5 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [164 kB]
- Fetched 9206 kB in 2s (5570 kB/s)
- Reading package lists...
- 
2024-07-03 12:59.45 ---> saved as "1a0b0e3f09883666716955321b985e75d29b1f4bd28ec2492276a2d29b496251"

/home/opam: (run (shell "opam pin add -k version -yn leaves.0.0.3 0.0.3"))
leaves is now pinned to version 0.0.3
2024-07-03 12:59.46 ---> saved as "59946372b46231f36d6ac94880098002b9478e90aeed0df16aaf701cce896e25"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall leaves.0.0.3;\
                        \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\" != 'leaves.0.0.3' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
leaves.0.0.3 is not installed. Install it? [y/n] y
  * Incompatible packages:
    - (invariant) -> ocaml-options-only-afl -> ocaml-option-afl
    - leaves >= 0.0.3 -> ocaml >= 5.1 -> ocaml-base-compiler >= 5.1.0~ -> ocaml-options-vanilla
    You can temporarily relax the switch invariant with `--update-invariant'
  * Missing dependency:
    - leaves >= 0.0.3 -> ocaml >= 5.1 -> dkml-base-compiler >= 5.2.1~ | ocaml-base-compiler >= 5.2.1~ | ocaml-system >= 5.2.1~ | ocaml-variants >= 5.2.1~
    no matching version
    no matching version
    no matching version
    not available because the package is pinned to version 4.14.2+options
  * Missing dependency:
    - leaves >= 0.0.3 -> ocaml >= 5.1 -> dkml-base-compiler >= 5.3.0~ | ocaml-base-compiler >= 5.3.0 | ocaml-system >= 5.3.0~ | ocaml-variants >= 5.3.0~
    no matching version
    no matching version
    no matching version
    not available because the package is pinned to version 4.14.2+options

No solution found, exiting
"/usr/bin/env" "bash" "-c" "opam reinstall leaves.0.0.3;
        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" != 'leaves.0.0.3' && 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-07-03 13:00.08: Job failed: Failed: Build failed
2024-07-03 13:00.08: Log analysis:
2024-07-03 13:00.08: >>> 
No solution found, exiting
 (score = 100)
2024-07-03 13:00.08: [SKIP] Package not available