(for PR #28914)

2025-11-19 09:07.08: New job: build gappa.1.6.0, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/28914/head (5fed620a1849ce5ff9045f807164c53a1c1ba76c)
                              on debian-13-ocaml-5.4/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/28914/head" && git reset --hard 5fed620a
git fetch origin master
git merge --no-edit 24dbb725dce5c26764f028224175df3cfbe7dafd
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-13-ocaml-5.4@sha256:9bdec5ca327cd6d66fa8cb3659ddd8617fb69eb160919f4e456394d04c353f59
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 gappa.1.6.0 1.6.0
RUN opam reinstall gappa.1.6.0; \
    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-13\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'gappa.1.6.0' && 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-11-19 09:07.08: Using cache hint "ocaml/opam:debian-13-ocaml-5.4@sha256:9bdec5ca327cd6d66fa8cb3659ddd8617fb69eb160919f4e456394d04c353f59-gappa.1.6.0-5fed620a1849ce5ff9045f807164c53a1c1ba76c"
2025-11-19 09:07.08: Using OBuilder spec:
((from ocaml/opam:debian-13-ocaml-5.4@sha256:9bdec5ca327cd6d66fa8cb3659ddd8617fb69eb160919f4e456394d04c353f59)
 (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 gappa.1.6.0 1.6.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall gappa.1.6.0;\
             \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-13\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'gappa.1.6.0' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-11-19 09:07.08: Waiting for resource in pool OCluster
2025-11-19 09:07.08: Waiting for worker…
2025-11-19 09:07.11: Got resource from pool OCluster
Building on bremusa.ocamllabs.io
All commits already cached
Updating files:  91% (17135/18778)
Updating files:  92% (17276/18778)
Updating files:  93% (17464/18778)
Updating files:  94% (17652/18778)
Updating files:  95% (17840/18778)
Updating files:  96% (18027/18778)
Updating files:  97% (18215/18778)
Updating files:  98% (18403/18778)
Updating files:  99% (18591/18778)
Updating files: 100% (18778/18778)
Updating files: 100% (18778/18778), done.
HEAD is now at 24dbb725dc Merge pull request #28918 from dra27/msys2-lablgtk3
Updating 24dbb725dc..5fed620a18
Fast-forward
 packages/gappa/gappa.1.6.0/opam | 54 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)
 create mode 100644 packages/gappa/gappa.1.6.0/opam

(from ocaml/opam:debian-13-ocaml-5.4@sha256:9bdec5ca327cd6d66fa8cb3659ddd8617fb69eb160919f4e456394d04c353f59)
2025-11-19 09:08.42 ---> using "9c1d32ccf9056b93d3708404102f28771417a85830281d2cde1fa1eace91197e" 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-11-19 09:08.42 ---> using "845a416c3a15d3ff876c096a1e87c6890b1d69a796793b4d1705856f7e9faf6f" 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-11-19 09:08.42 ---> using "7cc2401bfeb211397078ae05ce0f77be898fccfe198ef6cfdf44bfbb17ffb971" 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.5.0~beta1
# self-upgrade         no
# system               arch=x86_32 os=linux os-distribution=debian os-version=13
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 71
# repositories         1 (version-controlled)
# pinned               1 (version)
# current-switch       5.4
# invariant            ["ocaml-base-compiler" {>= "5.4.0"}]
# compiler-packages    ocaml-base-compiler.5.4.0, ocaml-compiler.5.4.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.4/lib/ocaml/stublibs:/home/opam/.opam/5.4/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       5.4.0+bytecode-only
2025-11-19 09:08.42 ---> using "81b2d6735c22122422d7d8704aa10a8374e6631d9b8cf43d914c73e011fb6662" 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-11-19 09:08.42 ---> using "674587a474d7e9ed489fdb48707f42ece6f8624ff5a83855da6e39ec613d8397" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-11-19 09:08.43 ---> using "891bf4f8b13c57dff9e53a7381f37a2e7205d762e0f58e42071ca565170638a2" from cache

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-11-19 09:08.43 ---> using "a61a9d5af9d674d3d26aeab59963161cbd21648f3407a295175e591beff13f66" from cache

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Get:1 http://deb.debian.org/debian trixie InRelease [140 kB]
- Get:2 http://deb.debian.org/debian trixie-updates InRelease [47.3 kB]
- Get:3 http://deb.debian.org/debian-security trixie-security InRelease [43.4 kB]
- Get:4 http://deb.debian.org/debian trixie/main i386 Packages [9430 kB]
- Get:5 http://deb.debian.org/debian-security trixie-security/main i386 Packages [66.8 kB]
- Fetched 9728 kB in 3s (2890 kB/s)
- Reading package lists...
- 
2025-11-19 09:08.43 ---> using "2db85f399d2c6f9fdf297fcada8f62676d76600a50d5807374f8965438122069" from cache

/home/opam: (run (shell "opam pin add -k version -yn gappa.1.6.0 1.6.0"))
gappa is now pinned to version 1.6.0
2025-11-19 09:08.43 ---> using "583aafb560cdce55721a28d44b7433d63dc95a04972643a60000b6922b3eadb4" from cache

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall gappa.1.6.0;\
                        \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-13\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'gappa.1.6.0' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
[ERROR] gappa = 1.6.0: unmet availability conditions: 'arch != "x86_32"'
"/usr/bin/linux32" "/bin/sh" "-c" "opam reinstall gappa.1.6.0;
        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-13\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'gappa.1.6.0' && 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-11-19 09:09.08: Job failed: Failed: Build failed
2025-11-19 09:09.08: Log analysis:
2025-11-19 09:09.08: >>> 
[ERROR] gappa = 1.6.0: unmet availability conditions: 'arch != "x86_32"'
 (score = 100)
2025-11-19 09:09.08: [SKIP] Package not available