(for PR #27147)

2025-02-10 15:06.49: New job: build conf-mingw-w64-mbedtls-x86_64.1, using opam 2.1
                              from https://github.com/ocaml/opam-repository.git#refs/pull/27147/head (926ef57021f96ff7a5ca08e83509c2efcbb5bf9b)
                              on debian-12-ocaml-5.3/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/27147/head" && git reset --hard 926ef570
git fetch origin master
git merge --no-edit 36f4d2d5ceb882a79fd7d7f956b490201da67226
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-5.3@sha256:2ebf84c1b80d45bd693320d055f608b32529285fcbeeb35803f2ce50d3048683
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-2.1 /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 conf-mingw-w64-mbedtls-x86_64.1 1
RUN opam reinstall conf-mingw-w64-mbedtls-x86_64.1; \
    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" != 'conf-mingw-w64-mbedtls-x86_64.1' && 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-02-10 15:06.49: Using cache hint "ocaml/opam:debian-12-ocaml-5.3@sha256:2ebf84c1b80d45bd693320d055f608b32529285fcbeeb35803f2ce50d3048683-conf-mingw-w64-mbedtls-x86_64.1-926ef57021f96ff7a5ca08e83509c2efcbb5bf9b"
2025-02-10 15:06.49: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-5.3@sha256:2ebf84c1b80d45bd693320d055f608b32529285fcbeeb35803f2ce50d3048683)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "sudo ln -f /usr/bin/opam-2.1 /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 conf-mingw-w64-mbedtls-x86_64.1 1"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall conf-mingw-w64-mbedtls-x86_64.1;\
             \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\" != 'conf-mingw-w64-mbedtls-x86_64.1' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-02-10 15:06.49: Waiting for resource in pool OCluster
2025-02-10 17:04.01: Waiting for worker…
2025-02-10 17:06.27: Got resource from pool OCluster
Building on asteria.caelum.ci.dev
All commits already cached
Updating files:  87% (20409/23305)
Updating files:  88% (20509/23305)
Updating files:  89% (20742/23305)
Updating files:  90% (20975/23305)
Updating files:  91% (21208/23305)
Updating files:  92% (21441/23305)
Updating files:  93% (21674/23305)
Updating files:  94% (21907/23305)
Updating files:  95% (22140/23305)
Updating files:  96% (22373/23305)
Updating files:  97% (22606/23305)
Updating files:  98% (22839/23305)
Updating files:  99% (23072/23305)
Updating files: 100% (23305/23305)
Updating files: 100% (23305/23305), done.
HEAD is now at 36f4d2d5ce Merge pull request #27169 from Frigory33/release-allegro5-0.1
Merge made by the 'ort' strategy.
 packages/conf-mbedtls/conf-mbedtls.2/opam          | 43 ++++++++++++++++++++++
 .../conf-mingw-w64-mbedtls-x86_64.1/opam           | 21 +++++++++++
 2 files changed, 64 insertions(+)
 create mode 100644 packages/conf-mbedtls/conf-mbedtls.2/opam
 create mode 100644 packages/conf-mingw-w64-mbedtls-x86_64/conf-mingw-w64-mbedtls-x86_64.1/opam

(from ocaml/opam:debian-12-ocaml-5.3@sha256:2ebf84c1b80d45bd693320d055f608b32529285fcbeeb35803f2ce50d3048683)
Unable to find image 'ocaml/opam:debian-12-ocaml-5.3@sha256:2ebf84c1b80d45bd693320d055f608b32529285fcbeeb35803f2ce50d3048683' locally
docker.io/ocaml/opam@sha256:2ebf84c1b80d45bd693320d055f608b32529285fcbeeb35803f2ce50d3048683: Pulling from ocaml/opam
a7d4498d29fd: Pulling fs layer
a7d4498d29fd: Verifying Checksum
a7d4498d29fd: Download complete
a7d4498d29fd: Pull complete
Digest: sha256:2ebf84c1b80d45bd693320d055f608b32529285fcbeeb35803f2ce50d3048683
Status: Downloaded newer image for ocaml/opam@sha256:2ebf84c1b80d45bd693320d055f608b32529285fcbeeb35803f2ce50d3048683
2025-02-10 17:06.37 ---> using "2eea5bde28725c99a87e1f2a5b147a024a046c2a06cd3ab003a93e0be5a0f139" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam"))
2025-02-10 17:06.37 ---> using "2d3c9a11afb5b0673b0dcb4d9d3f01c64105db1cd949d8adfadb76cda6ee83da" 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.1, which can't be reverted.
You may want to back it up before going further.

Continue? [Y/n] y
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[opam-repository-archive] no changes from git+https://github.com/ocaml/opam-repository-archive
[default] synchronised from file:///home/opam/opam-repository
2025-02-10 17:06.37 ---> using "fb5a18fedb8636650d7f1d9d1061f181f4c0dc5e0327ab75f87f130f76296cc8" 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.1.6 (263921263e1f745613e2882745114b7b08f3608b) 
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=debian os-version=12
# solver               builtin-0install
# install-criteria     
# upgrade-criteria     
# jobs                 39
# repositories         1 (local), 1 (version-controlled)
# pinned               1 (version)
# current-switch       5.3
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# 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
2025-02-10 17:06.37 ---> using "07c1caf1f0857799ec051a1dace4582838e091616b97e639c9451f57830a2894" 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-02-10 17:06.37 ---> using "15fb2811b14c36b40c7b1cb4279ec654b967aabef66eeed1d064a38dcf48ab97" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-02-10 17:06.50 ---> saved as "1f86fc80bc0912037bcd23604f32e0c501e927453452a9a176cc389ca6cf6411"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-02-10 17:07.06 ---> saved as "0049ad9fa7f1af61170a502278961083242064e2894125f11be5bc1e62dca0c0"

/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 amd64 Packages [244 kB]
- Fetched 348 kB in 0s (940 kB/s)
- Reading package lists...
2025-02-10 17:07.08 ---> saved as "0923bb07c0d5debaf33c91e1262711f29a1f49ee384da94a5d514302e1d21f6e"

/home/opam: (run (shell "opam pin add -k version -yn conf-mingw-w64-mbedtls-x86_64.1 1"))
conf-mingw-w64-mbedtls-x86_64 is now pinned to version 1
2025-02-10 17:07.09 ---> saved as "8dffa554cdb4c1da2fb17e7a69b051d3d298afa172b4d0be506732596c8e6ad7"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall conf-mingw-w64-mbedtls-x86_64.1;\
                        \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\" != 'conf-mingw-w64-mbedtls-x86_64.1' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
[ERROR] conf-mingw-w64-mbedtls-x86_64 = 1 unmet availability conditions: 'os = "win32" & os-distribution != "cygwin"'
"/usr/bin/env" "bash" "-c" "opam reinstall conf-mingw-w64-mbedtls-x86_64.1;
        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" != 'conf-mingw-w64-mbedtls-x86_64.1' && 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-02-10 17:07.32: Job failed: Failed: Build failed
2025-02-10 17:07.32: Log analysis:
2025-02-10 17:07.32: >>> 
[ERROR] conf-mingw-w64-mbedtls-x86_64 = 1 unmet availability conditions: 'os = "win32" & os-distribution != "cygwin"'
 (score = 100)
2025-02-10 17:07.32: [SKIP] Package not available