(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-5.3/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/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-5.3@sha256:b0af26357d63c5f203c470a79a66a11bbf371a61b238b3031ee3fcddc855fb7b
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-5.3@sha256:b0af26357d63c5f203c470a79a66a11bbf371a61b238b3031ee3fcddc855fb7b-echo.0.0.5-7e483968a51c396f77b33e9bc30973b129f4facf"
2025-06-03 03:08.12: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-5.3@sha256:b0af26357d63c5f203c470a79a66a11bbf371a61b238b3031ee3fcddc855fb7b)
 (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.24: Got resource from pool OCluster
Building on okypous.caelum.ci.dev
All commits already cached
Updating files:  62% (14541/23181)
Updating files:  63% (14605/23181)
Updating files:  64% (14836/23181)
Updating files:  65% (15068/23181)
Updating files:  66% (15300/23181)
Updating files:  67% (15532/23181)
Updating files:  68% (15764/23181)
Updating files:  69% (15995/23181)
Updating files:  70% (16227/23181)
Updating files:  71% (16459/23181)
Updating files:  72% (16691/23181)
Updating files:  73% (16923/23181)
Updating files:  74% (17154/23181)
Updating files:  75% (17386/23181)
Updating files:  76% (17618/23181)
Updating files:  77% (17850/23181)
Updating files:  78% (18082/23181)
Updating files:  79% (18313/23181)
Updating files:  80% (18545/23181)
Updating files:  81% (18777/23181)
Updating files:  82% (19009/23181)
Updating files:  83% (19241/23181)
Updating files:  84% (19473/23181)
Updating files:  85% (19704/23181)
Updating files:  86% (19936/23181)
Updating files:  87% (20168/23181)
Updating files:  88% (20400/23181)
Updating files:  89% (20632/23181)
Updating files:  90% (20863/23181)
Updating files:  91% (21095/23181)
Updating files:  92% (21327/23181)
Updating files:  93% (21559/23181)
Updating files:  94% (21791/23181)
Updating files:  95% (22022/23181)
Updating files:  96% (22254/23181)
Updating files:  97% (22486/23181)
Updating files:  98% (22718/23181)
Updating files:  99% (22950/23181)
Updating files: 100% (23181/23181)
Updating files: 100% (23181/23181), done.
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-5.3@sha256:b0af26357d63c5f203c470a79a66a11bbf371a61b238b3031ee3fcddc855fb7b)
Unable to find image 'ocaml/opam:debian-12-ocaml-5.3@sha256:b0af26357d63c5f203c470a79a66a11bbf371a61b238b3031ee3fcddc855fb7b' locally
docker.io/ocaml/opam@sha256:b0af26357d63c5f203c470a79a66a11bbf371a61b238b3031ee3fcddc855fb7b: Pulling from ocaml/opam
fac98fddbf37: Pulling fs layer
fac98fddbf37: Verifying Checksum
fac98fddbf37: Download complete
fac98fddbf37: Pull complete
Digest: sha256:b0af26357d63c5f203c470a79a66a11bbf371a61b238b3031ee3fcddc855fb7b
Status: Downloaded newer image for ocaml/opam@sha256:b0af26357d63c5f203c470a79a66a11bbf371a61b238b3031ee3fcddc855fb7b
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
2025-06-03 03:08.34 ---> using "f740d5972e772e5d574b12cdc08ebcafef977bafe0c30da47b23b48aef1ab88c" 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"))
2025-06-03 03:08.34 ---> using "f53deefa86230282019ffbc0713664688dfa1f90fc1fd11496ad555762c9d122" 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 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:08.34 ---> using "ea510e91a4408988eff305517106bbe2d6b0d9b3bf4218c2425c0e421b0b0256" 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.4.0~alpha2
# self-upgrade         no
# system               arch=arm32 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                 79
# 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-option-bytecode-only.1, ocaml-options-vanilla.1
# ocaml:native         false
# ocaml:native-tools   false
# ocaml:native-dynlink false
# 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+bytecode-only
2025-06-03 03:08.34 ---> using "ecd345915cd5354c52f827a1eadb311ca9cbf35522f766d79d44e44c759b1607" 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-06-03 03:08.34 ---> using "8efcc6249c5f43bc1ab23ccb672caac5064f4f452fcbd6fc84e82495b1fb4c5f" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-06-03 03:08.57 ---> saved as "da001cd08916f00bb5cd11e1ca67462759f2754d1d8656b06aa5158853004f9d"

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

/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 [247 kB]
- Fetched 350 kB in 0s (794 kB/s)
- Reading package lists...
- 
2025-06-03 03:10.01 ---> saved as "b7d440b19db33c6eba66e162a19bb015256afcf407a75e36b04fb7fb4fa55eff"

/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:10.03 ---> saved as "ea0a381f7fb72aeccafc82af0f45cea0880ec4adb8fcdf1961226556ec891ea6"

/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:10.15: Job failed: Failed: Build failed
2025-06-03 03:10.15: Log analysis:
2025-06-03 03:10.15: >>> 
[ERROR] echo = 0.0.5: unmet availability conditions: 'arch != "x86_32" & arch != "arm32"'
 (score = 100)
2025-06-03 03:10.15: [SKIP] Package not available