(for PR #27836)

2025-04-29 08:50.40: New job: build bin_prot.v0.17.0, using opam 2.0
                              from https://github.com/ocaml/opam-repository.git#refs/pull/27836/head (f9ffaaec0b9367d9c415a2dcd479159d840a96fa)
                              on debian-12-ocaml-4.14/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/27836/head" && git reset --hard f9ffaaec
git fetch origin master
git merge --no-edit d1985569e2c0f406d535044b53c1fde79b558617
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-4.14@sha256:77d8d685421f6475affde98d5c6c4e7c0e0a30fffce84e0f352a2b522d742426
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-2.0 /usr/bin/opam
RUN opam init --reinit -ni
RUN 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 depext -u || true
RUN opam pin add -k version -yn bin_prot.v0.17.0 v0.17.0
RUN opam depext bin_prot.v0.17.0 && opam reinstall bin_prot.v0.17.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-12\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'bin_prot.v0.17.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-04-29 08:50.40: Using cache hint "ocaml/opam:debian-12-ocaml-4.14@sha256:77d8d685421f6475affde98d5c6c4e7c0e0a30fffce84e0f352a2b522d742426-bin_prot.v0.17.0-f9ffaaec0b9367d9c415a2dcd479159d840a96fa"
2025-04-29 08:50.40: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.14@sha256:77d8d685421f6475affde98d5c6c4e7c0e0a30fffce84e0f352a2b522d742426)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "sudo ln -f /usr/bin/opam-2.0 /usr/bin/opam"))
 (run (network host)
      (shell "opam init --reinit --config .opamrc-sandbox -ni"))
 (run (shell "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 depext -u || true"))
 (run (shell "opam pin add -k version -yn bin_prot.v0.17.0 v0.17.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam depext bin_prot.v0.17.0 && opam reinstall bin_prot.v0.17.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-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\" != 'bin_prot.v0.17.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-04-29 08:50.40: Waiting for resource in pool OCluster
2025-04-29 08:50.40: Waiting for worker…
2025-04-29 08:51.34: Got resource from pool OCluster
Building on x86-bm-c7.sw.ocaml.org
All commits already cached
Updating files:  85% (19612/22952)
Updating files:  86% (19739/22952)
Updating files:  87% (19969/22952)
Updating files:  88% (20198/22952)
Updating files:  89% (20428/22952)
Updating files:  90% (20657/22952)
Updating files:  91% (20887/22952)
Updating files:  92% (21116/22952)
Updating files:  93% (21346/22952)
Updating files:  94% (21575/22952)
Updating files:  95% (21805/22952)
Updating files:  96% (22034/22952)
Updating files:  97% (22264/22952)
Updating files:  98% (22493/22952)
Updating files:  99% (22723/22952)
Updating files: 100% (22952/22952)
Updating files: 100% (22952/22952), done.
HEAD is now at d1985569e2 Merge pull request #27828 from dinosaure/release-bstr-v0.0.1
Merge made by the 'ort' strategy.
 packages/bin_prot/bin_prot.v0.17.0/opam | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

(from ocaml/opam:debian-12-ocaml-4.14@sha256:77d8d685421f6475affde98d5c6c4e7c0e0a30fffce84e0f352a2b522d742426)
Unable to find image 'ocaml/opam:debian-12-ocaml-4.14@sha256:77d8d685421f6475affde98d5c6c4e7c0e0a30fffce84e0f352a2b522d742426' locally
docker.io/ocaml/opam@sha256:77d8d685421f6475affde98d5c6c4e7c0e0a30fffce84e0f352a2b522d742426: Pulling from ocaml/opam
0c3d6277aada: Pulling fs layer
0c3d6277aada: Verifying Checksum
0c3d6277aada: Download complete
0c3d6277aada: Pull complete
Digest: sha256:77d8d685421f6475affde98d5c6c4e7c0e0a30fffce84e0f352a2b522d742426
Status: Downloaded newer image for ocaml/opam@sha256:77d8d685421f6475affde98d5c6c4e7c0e0a30fffce84e0f352a2b522d742426
2025-04-29 08:51.39 ---> using "94397e2990a723d27ab9edac69e7b09f76b3e2d48aa2225bfb630b3adb29dd86" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.0 /usr/bin/opam"))
2025-04-29 08:51.39 ---> saved as "67fb4b6a6687c5e668a6389f2050777a841418f2438f263713bddaeed0aa214d"

/home/opam: (run (network host)
                 (shell "opam init --reinit --config .opamrc-sandbox -ni"))
[NOTE] Will configure 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.

[WARNING] Recommended dependencies -- most packages rely on these:
  - m4

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
default (at git+file:///home/opam/opam-repository): 
    [INFO] opam 2.1 and 2.2 include many performance and security improvements over 2.0; please consider upgrading (https://opam.ocaml.org/doc/Install.html)

2025-04-29 08:52.43 ---> saved as "d8ce59d75d01ca101cfb3d3305deb8a13ee1bb0bea43be9e9fcd460958162f9c"

/home/opam: (run (shell "opam config report"))
# opam config report
# opam-version      2.0.10 (adc1e1829a2bef5b240746df80341b508290fe3b) 
# self-upgrade      no
# system            arch=x86_64 os=linux os-distribution=debian os-version=12
# solver            builtin-mccs+glpk
# install-criteria  -removed,-count[version-lag,request],-count[version-lag,changed],-changed
# upgrade-criteria  -removed,-count[version-lag,solution],-new
# jobs              39
# repositories      1 (version-controlled)
# pinned            1 (version)
# current-switch    4.14
2025-04-29 08:52.44 ---> saved as "d6ecac55487f09d27fafd2192d704f08a3d8e05cc2dc6b241beb546c93afaf40"

/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-04-29 08:52.51 ---> saved as "8c34eee03617a3f4e4b601ca7144a5b1903003c91bd785ebbc2fcb437f543a5c"

/home/opam: (copy (src .) (dst opam-repository/))
2025-04-29 08:52.59 ---> saved as "5abd7998f002b51a1bb898397b1f56b03ea07c08f121fa92c313c59d1ba909f1"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
default (at file:///home/opam/opam-repository): 
    [INFO] opam 2.1 and 2.2 include many performance and security improvements over 2.0; please consider upgrading (https://opam.ocaml.org/doc/Install.html)

2025-04-29 08:53.14 ---> saved as "569b89c0121d5a3d2d7c576c72b8224d51090074902a125d1cd5eaf0141d6c31"

/home/opam: (run (network host)
                 (shell "opam depext -u || true"))
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# No extra OS packages requirements found.
# All required OS packages found.
The following command needs to be run through "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 amd64 Packages [257 kB]
Fetched 361 kB in 0s (1332 kB/s)
Reading package lists...
# OS package update successful
2025-04-29 08:53.16 ---> saved as "d4d1ccb83474e8a525e4f5c6a3229d6f5f9c8138cdd271407553bcebdd88f9d4"

/home/opam: (run (shell "opam pin add -k version -yn bin_prot.v0.17.0 v0.17.0"))
bin_prot is now pinned to version v0.17.0
2025-04-29 08:53.17 ---> saved as "67b283d88f1efd47f7967b13c1c6bb49ca9c4d27ef1d31b412b75fdd750b23c1"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam depext bin_prot.v0.17.0 && opam reinstall bin_prot.v0.17.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-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\" != 'bin_prot.v0.17.0' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
[ERROR] No solution for bin_prot.v0.17.0: The following dependencies couldn't be met:
          - bin_prot -> ocaml >= 5.1.0
              base of this switch (use `--unlock-base' to force)


Command failed: opam list --readonly --external '--resolve=bin_prot.v0.17.0' --color=never returned 20
"/usr/bin/env" "bash" "-c" "opam depext bin_prot.v0.17.0 && opam reinstall bin_prot.v0.17.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-12\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'bin_prot.v0.17.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 20
2025-04-29 08:53.27: Job failed: Failed: Build failed
2025-04-29 08:53.27: Log analysis:
2025-04-29 08:53.27: >>> 
[ERROR] No solution for bin_prot.v0.17.0: The following dependencies couldn't be met:
 (score = 100)
2025-04-29 08:53.27: [SKIP] Package not available