(for PR #27974)

2025-06-03 03:08.12: New job: build echo.0.0.5, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/27974/head (7e483968a51c396f77b33e9bc30973b129f4facf)
                              on debian-12-ocaml-4.14/i386

To reproduce locally:

cd $(mktemp -d)
git clone --recursive "https://github.com/ocaml/opam-repository.git" && cd "opam-repository" && git fetch origin "refs/pull/27974/head" && git reset --hard 7e483968
git fetch origin master
git merge --no-edit c037675bed027195b802bf40b1840ece3feb3b2a
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-4.14@sha256:3bccb92ac26ece162dd8fd50aac01eb6acbef8e3ac732aabd4b902aae2bb7960
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 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 echo.0.0.5 0.0.5
RUN opam reinstall echo.0.0.5; \
    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" != 'echo.0.0.5' && 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-06-03 03:08.12: Using cache hint "ocaml/opam:debian-12-ocaml-4.14@sha256:3bccb92ac26ece162dd8fd50aac01eb6acbef8e3ac732aabd4b902aae2bb7960-echo.0.0.5-7e483968a51c396f77b33e9bc30973b129f4facf"
2025-06-03 03:08.12: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.14@sha256:3bccb92ac26ece162dd8fd50aac01eb6acbef8e3ac732aabd4b902aae2bb7960)
 (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 "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 echo.0.0.5 0.0.5"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall echo.0.0.5;\
             \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\" != 'echo.0.0.5' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-06-03 03:08.12: Waiting for resource in pool OCluster
2025-06-03 03:08.12: Waiting for worker…
2025-06-03 03:08.12: Got resource from pool OCluster
Building on x86-bm-c2.sw.ocaml.org
All commits already cached
HEAD is now at c037675bed Merge pull request #27980 from jmid/conf-freeglut-typo
Merge made by the 'ort' strategy.
 packages/echo/echo.0.0.5/opam | 53 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)
 create mode 100644 packages/echo/echo.0.0.5/opam

(from ocaml/opam:debian-12-ocaml-4.14@sha256:3bccb92ac26ece162dd8fd50aac01eb6acbef8e3ac732aabd4b902aae2bb7960)
Unable to find image 'ocaml/opam:debian-12-ocaml-4.14@sha256:3bccb92ac26ece162dd8fd50aac01eb6acbef8e3ac732aabd4b902aae2bb7960' locally
docker.io/ocaml/opam@sha256:3bccb92ac26ece162dd8fd50aac01eb6acbef8e3ac732aabd4b902aae2bb7960: Pulling from ocaml/opam
b5248b36f4a4: Pulling fs layer
b5248b36f4a4: Download complete
b5248b36f4a4: Pull complete
Digest: sha256:3bccb92ac26ece162dd8fd50aac01eb6acbef8e3ac732aabd4b902aae2bb7960
Status: Downloaded newer image for ocaml/opam@sha256:3bccb92ac26ece162dd8fd50aac01eb6acbef8e3ac732aabd4b902aae2bb7960
WARNING: The requested image's platform (linux/386) does not match the detected host platform (linux/amd64) and no specific platform was requested
2025-06-03 03:11.35 ---> saved as "9706967a671df19e10bcfa4e43ac480c162b548f89b58bf28d3221bba2877951"

/: (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"))
2025-06-03 03:11.35 ---> saved as "0ef6b77156287162fe4d0c9a03c0940bdee6752555ce96d187ad4d2cee571164"

/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-06-03 03:12.29 ---> saved as "d5c307f579b4646a338e8826a74c06d7d77e104ec7aae94b675087bb3fb4d8ca"

/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.0~alpha2
# self-upgrade         no
# system               arch=x86_32 os=linux os-distribution=debian os-version=12
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 39
# repositories         1 (version-controlled)
# pinned               1 (version)
# current-switch       4.14
# invariant            ["ocaml-base-compiler" {= "4.14.2"}]
# compiler-packages    ocaml-base-compiler.4.14.2, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/4.14/lib/ocaml/stublibs:/home/opam/.opam/4.14/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       4.14.2
2025-06-03 03:12.30 ---> saved as "a2c2a4fcb83510563d123a2bcaf81634479a3d1cb84bbf25660b7999f169b726"

/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-06-03 03:12.38 ---> saved as "b7571790f5015841001fd52ee62fa176370868cc3fdb9017e3ba823b3a076fc5"

/home/opam: (copy (src .) (dst opam-repository/))
2025-06-03 03:12.44 ---> saved as "0bdfdfcad31611411aa9503d7419447d495323fa7a8e60ff55012908755f4a66"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-06-03 03:13.27 ---> saved as "b3f476c802f5d0e2a037aad38026a75ca73e673ea8cadf615e4380d01f0d0a90"

/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 i386 Packages [258 kB]
- Fetched 362 kB in 0s (1023 kB/s)
- Reading package lists...
- 
2025-06-03 03:13.29 ---> saved as "4f990cdc4dd58fb57d70ed52e7919872914f1171ce7497de110d6eddb94028cc"

/home/opam: (run (shell "opam pin add -k version -yn echo.0.0.5 0.0.5"))
echo is now pinned to version 0.0.5
2025-06-03 03:13.29 ---> saved as "78063b8ff7d60bed3e8890cad8a9e6dc8fd1652ef5fc7d3e48442eace9954f91"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall echo.0.0.5;\
                        \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\" != 'echo.0.0.5' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
[ERROR] echo = 0.0.5: unmet availability conditions: 'arch != "x86_32" & arch != "arm32"'
"/usr/bin/linux32" "/bin/sh" "-c" "opam reinstall echo.0.0.5;
        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" != 'echo.0.0.5' && partial_fails="$partial_fails $pkg";
        done;
        test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}";
        exit 1" failed with exit status 5
2025-06-03 03:13.38: Job failed: Failed: Build failed
2025-06-03 03:13.38: Log analysis:
2025-06-03 03:13.38: >>> 
[ERROR] echo = 0.0.5: unmet availability conditions: 'arch != "x86_32" & arch != "arm32"'
 (score = 100)
2025-06-03 03:13.38: [SKIP] Package not available