(for PR #25273)

2024-07-03 07:00.03: New job: build spices.0.0.3, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/25273/head (20766ae4a537a13e1ac026d21b630f786edfe10d)
                              on debian-12-ocaml-5.2-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-5.2-afl@sha256:633da010004e62b504c8da5de249466a1ab3d98b7b332cbfee30d969f3b43489
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 spices.0.0.3 0.0.3
RUN opam reinstall spices.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" != 'spices.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-5.2-afl@sha256:633da010004e62b504c8da5de249466a1ab3d98b7b332cbfee30d969f3b43489-spices.0.0.3-20766ae4a537a13e1ac026d21b630f786edfe10d"
2024-07-03 07:00.03: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-5.2-afl@sha256:633da010004e62b504c8da5de249466a1ab3d98b7b332cbfee30d969f3b43489)
 (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 spices.0.0.3 0.0.3"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall spices.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\" != 'spices.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.04: Waiting for worker…
2024-07-03 12:54.31: Got resource from pool OCluster
Building on x86-bm-c14.sw.ocaml.org
All commits already cached
Updating files:  50% (16050/31667)
Updating files:  51% (16151/31667)
Updating files:  52% (16467/31667)
Updating files:  53% (16784/31667)
Updating files:  54% (17101/31667)
Updating files:  55% (17417/31667)
Updating files:  56% (17734/31667)
Updating files:  57% (18051/31667)
Updating files:  58% (18367/31667)
Updating files:  59% (18684/31667)
Updating files:  60% (19001/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:  95% (30114/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-5.2-afl@sha256:633da010004e62b504c8da5de249466a1ab3d98b7b332cbfee30d969f3b43489)
Unable to find image 'ocaml/opam:debian-12-ocaml-5.2-afl@sha256:633da010004e62b504c8da5de249466a1ab3d98b7b332cbfee30d969f3b43489' locally
docker.io/ocaml/opam@sha256:633da010004e62b504c8da5de249466a1ab3d98b7b332cbfee30d969f3b43489: Pulling from ocaml/opam
dca64e0680c7: Pulling fs layer
dca64e0680c7: Download complete
dca64e0680c7: Pull complete
Digest: sha256:633da010004e62b504c8da5de249466a1ab3d98b7b332cbfee30d969f3b43489
Status: Downloaded newer image for ocaml/opam@sha256:633da010004e62b504c8da5de249466a1ab3d98b7b332cbfee30d969f3b43489
2024-07-03 12:56.37 ---> saved as "ae0e426a8e62f45390fb0fcae9a4079f7eeb60a05cff881e6b15b8e1eb219fca"

/: (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:56.38 ---> saved as "de4adec1f0a12621c77ca475e51062240aca6a308c896dfa60d30bae04177134"

/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:57.52 ---> saved as "b857a6bdabb0ac8b5d8c8bd4ea538c24d3b6a72437ac616275505aa5386bbf3a"

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

/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.01 ---> saved as "cd06fd28ada758b588acc7c37ad69a6e56c8ad13a9e9cb69b504f53b6903131c"

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

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

/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 (4876 kB/s)
- Reading package lists...
- 
2024-07-03 12:59.13 ---> saved as "f802dd11a19b963dda17216fdcf98d5c84e25d9c0b5e0aaaae6afdb9f2b75438"

/home/opam: (run (shell "opam pin add -k version -yn spices.0.0.3 0.0.3"))
spices is now pinned to version 0.0.3
2024-07-03 12:59.14 ---> saved as "9beb83d4b992255157b3f53b5d4eb2df0e9d8dd867532d410bb2852da12a0ba4"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall spices.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\" != 'spices.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"))
spices.0.0.3 is not installed. Install it? [y/n] y
The following actions will be performed:
=== install 8 packages
  - install colors     0.0.1          [required by spices]
  - install dune       3.16.0         [required by spices]
  - install ocamlbuild 0.14.3         [required by uutf]
  - install ocamlfind  1.9.6          [required by uutf]
  - install spices     0.0.3 (pinned)
  - install topkg      1.0.7          [required by uutf]
  - install tty        0.0.2          [required by spices]
  - install uutf       1.0.3          [required by tty]

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved colors.0.0.1  (cached)
-> retrieved dune.3.16.0  (cached)
-> retrieved ocamlbuild.0.14.3  (cached)
-> retrieved ocamlfind.1.9.6  (cached)
-> retrieved spices.0.0.3  (cached)
-> retrieved topkg.1.0.7  (cached)
-> retrieved tty.0.0.2  (cached)
-> retrieved uutf.1.0.3  (cached)
-> installed ocamlfind.1.9.6
-> installed ocamlbuild.0.14.3
-> installed topkg.1.0.7
-> installed uutf.1.0.3
-> installed dune.3.16.0
-> installed tty.0.0.2
-> installed colors.0.0.1
-> installed spices.0.0.3
Done.
# Run eval $(opam env) to update the current shell environment
2024-07-03 13:00.07 ---> saved as "97ea991fa4047e62afe3ed67619637575f84d91d0d6bd24df328256f980b1e65"
Job succeeded
2024-07-03 13:00.16: Job succeeded