(for PR #27147)

2025-02-10 15:06.49: New job: build conf-mbedtls.2, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/27147/head (926ef57021f96ff7a5ca08e83509c2efcbb5bf9b)
                              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/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:477b02360c24c09a24df80f4e2e675ef61d4e4c4d93d8095953f8e235a8e370d
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 conf-mbedtls.2 2
RUN opam reinstall conf-mbedtls.2; \
    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-mbedtls.2' && 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:477b02360c24c09a24df80f4e2e675ef61d4e4c4d93d8095953f8e235a8e370d-conf-mbedtls.2-926ef57021f96ff7a5ca08e83509c2efcbb5bf9b"
2025-02-10 15:06.49: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-5.3@sha256:477b02360c24c09a24df80f4e2e675ef61d4e4c4d93d8095953f8e235a8e370d)
 (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 conf-mbedtls.2 2"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall conf-mbedtls.2;\
             \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-mbedtls.2' && 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 15:53.23: Waiting for worker…
2025-02-10 16:34.47: Got resource from pool OCluster
Building on molpadia.caelum.ci.dev
All commits already cached
Updating files:  79% (18422/23305)
Updating files:  80% (18644/23305)
Updating files:  81% (18878/23305)
Updating files:  82% (19111/23305)
Updating files:  83% (19344/23305)
Updating files:  84% (19577/23305)
Updating files:  85% (19810/23305)
Updating files:  86% (20043/23305)
Updating files:  87% (20276/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:477b02360c24c09a24df80f4e2e675ef61d4e4c4d93d8095953f8e235a8e370d)
Unable to find image 'ocaml/opam:debian-12-ocaml-5.3@sha256:477b02360c24c09a24df80f4e2e675ef61d4e4c4d93d8095953f8e235a8e370d' locally
docker.io/ocaml/opam@sha256:477b02360c24c09a24df80f4e2e675ef61d4e4c4d93d8095953f8e235a8e370d: Pulling from ocaml/opam
155c4ffd409f: Pulling fs layer
155c4ffd409f: Download complete
155c4ffd409f: Pull complete
Digest: sha256:477b02360c24c09a24df80f4e2e675ef61d4e4c4d93d8095953f8e235a8e370d
Status: Downloaded newer image for ocaml/opam@sha256:477b02360c24c09a24df80f4e2e675ef61d4e4c4d93d8095953f8e235a8e370d
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-02-10 16:34.49 ---> using "405c179820f750acad5a59ae02ce20a51ed9b6d327624f2f24a574cb6ee8f9bb" 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-02-10 16:34.49 ---> using "d0f1f871064cb3d42ccfc5bfaef57cb227092dfb05060568ddc82ac4e17569c6" 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.

Continue? [Y/n] y
This development 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.

Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
[opam-repository-archive] no changes from git+https://github.com/ocaml/opam-repository-archive
2025-02-10 16:34.49 ---> using "558fd0a17383f211b172c87681e35e69697fdbcfceaca5295e1663647fca4f91" 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~alpha1~dev (747e73667ad9d054b0f736be205c0013e1bec087)
# 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 (local), 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-02-10 16:34.49 ---> using "1a850c5beec4123c80980e83e03a6e277cb92899b99e098db5559bca8e9eaab9" 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 16:34.49 ---> using "2260c1bb86deafbae7ee06dff55b063741499d89d935e5bb544e9e5d33d4b995" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-02-10 16:34.57 ---> saved as "e571fcc1b7110a32d59a92decc68bd5997af698c8c16e6f43ca7c699f04a1d77"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-02-10 16:35.40 ---> saved as "8e386c3fda7ab9a3100ac086ad8989d10a53c283b64b6914cf730c392789aa05"

/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 [225 kB]
- Fetched 328 kB in 1s (293 kB/s)
- Reading package lists...
2025-02-10 16:35.42 ---> saved as "ebc59ced39679a04fa8ef54b00c71241eef16a95b84fe08f04bde456f506d950"

/home/opam: (run (shell "opam pin add -k version -yn conf-mbedtls.2 2"))
conf-mbedtls is now pinned to version 2
2025-02-10 16:35.43 ---> saved as "dbf50954e17432c26e997ac121abd581223d014daa4a35856ce1f69e4a4ecec9"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall conf-mbedtls.2;\
                        \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-mbedtls.2' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
conf-mbedtls.2 is not installed. Install it? [Y/n] y
The following actions will be performed:
=== install 1 package
  - install conf-mbedtls 2 (pinned)

The following system packages will first need to be installed:
    libmbedtls-dev

<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>

opam believes some required external dependencies are missing. opam can:
> 1. Run apt-get to install them (may need root/sudo access)
  2. Display the recommended apt-get command and wait while you run it manually (e.g. in another terminal)
  3. Continue anyway, and, upon success, permanently register that this external dependency is present, but not detectable
  4. Abort the installation

[1/2/3/4] 1

+ /usr/bin/sudo "apt-get" "install" "-qq" "-yy" "libmbedtls-dev"
- debconf: delaying package configuration, since apt-utils is not installed
- Selecting previously unselected package libmbedcrypto7:armhf.
- (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 18504 files and directories currently installed.)
- Preparing to unpack .../libmbedcrypto7_2.28.3-1_armhf.deb ...
- Unpacking libmbedcrypto7:armhf (2.28.3-1) ...
- Selecting previously unselected package libmbedx509-1:armhf.
- Preparing to unpack .../libmbedx509-1_2.28.3-1_armhf.deb ...
- Unpacking libmbedx509-1:armhf (2.28.3-1) ...
- Selecting previously unselected package libmbedtls14:armhf.
- Preparing to unpack .../libmbedtls14_2.28.3-1_armhf.deb ...
- Unpacking libmbedtls14:armhf (2.28.3-1) ...
- Selecting previously unselected package libmbedtls-dev:armhf.
- Preparing to unpack .../libmbedtls-dev_2.28.3-1_armhf.deb ...
- Unpacking libmbedtls-dev:armhf (2.28.3-1) ...
- Setting up libmbedcrypto7:armhf (2.28.3-1) ...
- Setting up libmbedx509-1:armhf (2.28.3-1) ...
- Setting up libmbedtls14:armhf (2.28.3-1) ...
- Setting up libmbedtls-dev:armhf (2.28.3-1) ...
- Processing triggers for libc-bin (2.36-9+deb12u9) ...

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved conf-mbedtls.2  (cached)
-> installed conf-mbedtls.2
Done.
# To update the current shell environment, run: eval $(opam env)
2025-02-10 16:35.52 ---> saved as "d7c6111408f7fc15edb3fb00b4a94d0d40141dd7a559f580e3a505a3302acc1c"
Job succeeded
2025-02-10 16:36.00: Job succeeded