(for PR #25273)

2024-04-17 19:22.38: New job: build minttea.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/arm32v7

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 f089d8564db935c703bea70a4b3d8335ffa1bef3
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-4.14@sha256:990f430fbe776f5edd6c7ed92bbdbc749d1b065bc7803693409190fa8dc79e33
SHELL [ "/usr/bin/linux32", "/bin/sh", "-c" ]
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
ENV OPAMCRITERIA="-removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed"
ENV OPAMFIXUPCRITERIA="-removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed"
ENV OPAMUPGRADECRITERIA="-removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed"
RUN opam pin add -k version -yn minttea.0.0.3 0.0.3
RUN opam reinstall minttea.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" != 'minttea.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-04-17 19:22.38: Using cache hint "ocaml/opam:debian-12-ocaml-4.14@sha256:990f430fbe776f5edd6c7ed92bbdbc749d1b065bc7803693409190fa8dc79e33-minttea.0.0.3-20766ae4a537a13e1ac026d21b630f786edfe10d"
2024-04-17 19:22.38: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.14@sha256:990f430fbe776f5edd6c7ed92bbdbc749d1b065bc7803693409190fa8dc79e33)
 (shell /usr/bin/linux32 /bin/sh -c)
 (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"))
 (env OPAMCRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)
 (env OPAMFIXUPCRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)
 (env OPAMUPGRADECRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)
 (run (shell "opam pin add -k version -yn minttea.0.0.3 0.0.3"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall minttea.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\" != 'minttea.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-04-17 19:22.38: Waiting for resource in pool OCluster
2024-04-17 19:22.39: Waiting for worker…
2024-04-17 19:28.16: Got resource from pool OCluster
Building on molpadia.caelum.ci.dev
All commits already cached
Updating files:  49% (16458/33525)
Updating files:  50% (16763/33525)
Updating files:  51% (17098/33525)
Updating files:  52% (17433/33525)
Updating files:  53% (17769/33525)
Updating files:  54% (18104/33525)
Updating files:  55% (18439/33525)
Updating files:  56% (18774/33525)
Updating files:  57% (19110/33525)
Updating files:  58% (19445/33525)
Updating files:  59% (19780/33525)
Updating files:  60% (20115/33525)
Updating files:  61% (20451/33525)
Updating files:  62% (20786/33525)
Updating files:  63% (21121/33525)
Updating files:  64% (21456/33525)
Updating files:  65% (21792/33525)
Updating files:  66% (22127/33525)
Updating files:  67% (22462/33525)
Updating files:  68% (22797/33525)
Updating files:  69% (23133/33525)
Updating files:  70% (23468/33525)
Updating files:  71% (23803/33525)
Updating files:  72% (24138/33525)
Updating files:  73% (24474/33525)
Updating files:  74% (24809/33525)
Updating files:  75% (25144/33525)
Updating files:  76% (25479/33525)
Updating files:  77% (25815/33525)
Updating files:  78% (26150/33525)
Updating files:  79% (26485/33525)
Updating files:  80% (26820/33525)
Updating files:  81% (27156/33525)
Updating files:  82% (27491/33525)
Updating files:  83% (27826/33525)
Updating files:  84% (28161/33525)
Updating files:  85% (28497/33525)
Updating files:  86% (28832/33525)
Updating files:  87% (29167/33525)
Updating files:  88% (29502/33525)
Updating files:  89% (29838/33525)
Updating files:  90% (30173/33525)
Updating files:  91% (30508/33525)
Updating files:  92% (30843/33525)
Updating files:  93% (31179/33525)
Updating files:  94% (31514/33525)
Updating files:  94% (31680/33525)
Updating files:  95% (31849/33525)
Updating files:  96% (32184/33525)
Updating files:  97% (32520/33525)
Updating files:  98% (32855/33525)
Updating files:  99% (33190/33525)
Updating files: 100% (33525/33525)
Updating files: 100% (33525/33525), done.
HEAD is now at f089d8564d Merge pull request #25672 from gborough/opam-publish-fred.0.1.0
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@sha256:990f430fbe776f5edd6c7ed92bbdbc749d1b065bc7803693409190fa8dc79e33)
Unable to find image 'ocaml/opam:debian-12-ocaml-4.14@sha256:990f430fbe776f5edd6c7ed92bbdbc749d1b065bc7803693409190fa8dc79e33' locally
docker.io/ocaml/opam@sha256:990f430fbe776f5edd6c7ed92bbdbc749d1b065bc7803693409190fa8dc79e33: Pulling from ocaml/opam
0c40fbd9ba7c: Pulling fs layer
0c40fbd9ba7c: Verifying Checksum
0c40fbd9ba7c: Download complete
0c40fbd9ba7c: Pull complete
Digest: sha256:990f430fbe776f5edd6c7ed92bbdbc749d1b065bc7803693409190fa8dc79e33
Status: Downloaded newer image for ocaml/opam@sha256:990f430fbe776f5edd6c7ed92bbdbc749d1b065bc7803693409190fa8dc79e33
WARNING: The requested image's platform (linux/arm/v7) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
2024-04-17 19:31.07 ---> using "8af2394886f5617e6f68d04cd6ed14b4c20705475f5701ed37746bf2a8eaeee7" from cache

/: (shell /usr/bin/linux32 /bin/sh -c)

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2024-04-17 19:31.07 ---> using "a2e15258b51ef56390083ae5718e22a6835abe9c285aa2dde540e796a513d082" 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~alpha, 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-04-17 19:31.07 ---> using "d672a968ac798f201181cffa92a752ee11bb7a3b82672b21ae2b999261070f2f" from cache

/home/opam: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-101-generic
The OCaml toplevel, version 4.14.2
2.2.0~beta3~dev
2024-04-17 19:31.07 ---> using "c0d7bfa9efff1f1b97fd9a1caacec500e8e881104eb416e402a5e65a6a779dab" from cache

/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-04-17 19:31.07 ---> using "202c136115b637b6ea1962c9aa1749397a824831e260ca5975d612f466c9c259" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2024-04-17 19:31.46 ---> saved as "b866b05df9cf05c51ec298c864f5bb234e2fe60573c75ee6a88c905962e31875"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2024-04-17 19:33.25 ---> saved as "4fcfcbdb368d9a3ac9567f1dc7ea1c5341b201f8dbdeae87c2431ae0335e6817"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian bookworm InRelease
- 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-security bookworm-security/main armhf Packages [148 kB]
- Fetched 251 kB in 0s (657 kB/s)
- Reading package lists...
- 
2024-04-17 19:33.27 ---> saved as "499125e822d74b84dfd9d9dd09f265d6d01af47efadbe0ba81506fcb79298aab"

/home/opam: (env OPAMCRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)

/home/opam: (env OPAMFIXUPCRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)

/home/opam: (env OPAMUPGRADECRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)

/home/opam: (run (shell "opam pin add -k version -yn minttea.0.0.3 0.0.3"))
minttea is now pinned to version 0.0.3
2024-04-17 19:33.28 ---> saved as "c2560043e617ca7417a4679523cb91ed01112906703d6305d94ff9ed94698700"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall minttea.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\" != 'minttea.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"))
minttea.0.0.3 is not installed. Install it? [y/n] y
  * Missing dependency:
    - riot = 0.0.8
    unmet availability conditions: 'arch != "x86_32" & arch != "arm32" & arch != "ppc64" & arch != "s390x" & os != "freebsd"'

No solution found, exiting
"/usr/bin/linux32" "/bin/sh" "-c" "opam reinstall minttea.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" != 'minttea.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-04-17 19:34.05: Job failed: Failed: Build failed
2024-04-17 19:34.05: Log analysis:
2024-04-17 19:34.05: >>> 
No solution found, exiting
 (score = 100)
2024-04-17 19:34.05: [SKIP] Package not available