(for PR #26912)

2025-04-03 13:30.26: New job: build mlgmpidl.1.2.15-1, using opam 2.3
                              from https://github.com/ocaml/opam-repository.git#refs/pull/26912/head (8f78ac65ee262835b31990fcdf159b4ccdca7c5f)
                              on alpine-3.21-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/26912/head" && git reset --hard 8f78ac65
git fetch origin master
git merge --no-edit ecbfc6754f6e95544eb1eab71c162099f77308bf
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:alpine-3.21-ocaml-4.14@sha256:520f5507bfc2e23d223219927aad6af6763ef3f96f33d25c5bf69bc5026fdfcb
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-2.3 /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 mlgmpidl.1.2.15-1 1.2.15-1
RUN opam reinstall mlgmpidl.1.2.15-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 "\"alpine-3.21\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'mlgmpidl.1.2.15-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-04-03 13:30.26: Using cache hint "ocaml/opam:alpine-3.21-ocaml-4.14@sha256:520f5507bfc2e23d223219927aad6af6763ef3f96f33d25c5bf69bc5026fdfcb-mlgmpidl.1.2.15-1-8f78ac65ee262835b31990fcdf159b4ccdca7c5f"
2025-04-03 13:30.26: Using OBuilder spec:
((from ocaml/opam:alpine-3.21-ocaml-4.14@sha256:520f5507bfc2e23d223219927aad6af6763ef3f96f33d25c5bf69bc5026fdfcb)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "sudo ln -f /usr/bin/opam-2.3 /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 mlgmpidl.1.2.15-1 1.2.15-1"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall mlgmpidl.1.2.15-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 \"\\\"alpine-3.21\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'mlgmpidl.1.2.15-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-04-03 13:30.26: Connecting to build cluster…
2025-04-03 13:30.26: Waiting for resource in pool OCluster
2025-04-03 16:22.00: Waiting for worker…
2025-04-03 16:25.03: Got resource from pool OCluster
Building on x86-bm-c4.sw.ocaml.org
All commits already cached
Updating files:  86% (19615/22793)
Updating files:  87% (19830/22793)
Updating files:  88% (20058/22793)
Updating files:  89% (20286/22793)
Updating files:  90% (20514/22793)
Updating files:  91% (20742/22793)
Updating files:  92% (20970/22793)
Updating files:  93% (21198/22793)
Updating files:  94% (21426/22793)
Updating files:  95% (21654/22793)
Updating files:  96% (21882/22793)
Updating files:  97% (22110/22793)
Updating files:  98% (22338/22793)
Updating files:  99% (22566/22793)
Updating files: 100% (22793/22793)
Updating files: 100% (22793/22793), done.
HEAD is now at ecbfc6754f Merge pull request #27708 from ocaml/dependabot/github_actions/dot-github/workflows/tj-actions/changed-files-46
Merge made by the 'ort' strategy.
 packages/mlgmpidl/mlgmpidl.1.2.15-1/opam | 41 ++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 packages/mlgmpidl/mlgmpidl.1.2.15-1/opam

(from ocaml/opam:alpine-3.21-ocaml-4.14@sha256:520f5507bfc2e23d223219927aad6af6763ef3f96f33d25c5bf69bc5026fdfcb)
Unable to find image 'ocaml/opam:alpine-3.21-ocaml-4.14@sha256:520f5507bfc2e23d223219927aad6af6763ef3f96f33d25c5bf69bc5026fdfcb' locally
docker.io/ocaml/opam@sha256:520f5507bfc2e23d223219927aad6af6763ef3f96f33d25c5bf69bc5026fdfcb: Pulling from ocaml/opam
0018b1448179: Pulling fs layer
0018b1448179: Verifying Checksum
0018b1448179: Download complete
0018b1448179: Pull complete
Digest: sha256:520f5507bfc2e23d223219927aad6af6763ef3f96f33d25c5bf69bc5026fdfcb
Status: Downloaded newer image for ocaml/opam@sha256:520f5507bfc2e23d223219927aad6af6763ef3f96f33d25c5bf69bc5026fdfcb
2025-04-03 16:25.09 ---> using "45ae84ee8dc63a601d3657c674a582f48dc622401db02dafdffc65eece72decc" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam"))
2025-04-03 16:25.09 ---> using "fc911bd85cf83f3355c5df921ccd53c4171a6e530e9d2ee8f4ee459ff3c63eb6" 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.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] synchronised from file:///home/opam/opam-repository
2025-04-03 16:25.09 ---> using "2c7eaf10665e00d7917a06342bafd86cf1c50b1c13be95bcf94dac8a0920fe3f" 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.3.0 (35acd0c5abc5e66cdbd5be16ba77aa6c33a4c724)
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=alpine os-version=3.21.3
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 31
# repositories         1 (local)
# pinned               1 (version)
# current-switch       4.14
# invariant            ["ocaml-base-compiler" {= "4.14.2"}]
# compiler-packages    ocaml-base-compiler.4.14.2, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/4.14/lib/ocaml/stublibs:/home/opam/.opam/4.14/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       4.14.2
2025-04-03 16:25.09 ---> using "4b282e056736cfbcc87f56539d6c4ce9df5a810f1d97851b1da675d2d223203f" 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-04-03 16:25.09 ---> using "91f00ee2f81bc0bb38598f16f101f7fbab0687aedf7b518c1d5fafb26ca63527" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-04-03 16:25.13 ---> saved as "86b7096836362de0e056d8525afa097f0171accd63bbf995402bb2e7eb4688af"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-04-03 16:26.00 ---> saved as "d87af81aeb3673370ba52e9306a20e35c737a73116f4d3a2817fdcb928b5d3ac"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apk" "update"
- fetch https://dl-cdn.alpinelinux.org/alpine/v3.21/main/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/v3.21/community/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
- v3.21.3-264-gb0ede8eacde [https://dl-cdn.alpinelinux.org/alpine/v3.21/main]
- v3.21.3-267-gb1b14b7bf27 [https://dl-cdn.alpinelinux.org/alpine/v3.21/community]
- v20250108-5008-g7b35ad49079 [https://dl-cdn.alpinelinux.org/alpine/edge/main]
- v20250108-5024-g06bf30d6c71 [https://dl-cdn.alpinelinux.org/alpine/edge/community]
- v20250108-5020-g17f9df84bed [https://dl-cdn.alpinelinux.org/alpine/edge/testing]
- OK: 57494 distinct packages available
2025-04-03 16:26.02 ---> saved as "702366ce75d0553ff9c9086289e8c3c23a80994f9ebafe9ef83105e13654f341"

/home/opam: (run (shell "opam pin add -k version -yn mlgmpidl.1.2.15-1 1.2.15-1"))
mlgmpidl is now pinned to version 1.2.15-1
2025-04-03 16:26.02 ---> saved as "70afd7ae15399a62a0b403e47f1949416e6541bdfd58f97e07194c0921e2c3e3"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall mlgmpidl.1.2.15-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 \"\\\"alpine-3.21\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'mlgmpidl.1.2.15-1' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
mlgmpidl.1.2.15-1 is not installed. Install it? [y/n] y
The following actions will be performed:
=== install 9 packages
  - install bigarray-compat 1.1.0             [required by mlgmpidl]
  - install camlidl         1.12              [required by mlgmpidl]
  - install conf-gmp        4                 [required by mlgmpidl]
  - install conf-mpfr       3                 [required by mlgmpidl]
  - install conf-perl       2                 [required by mlgmpidl]
  - install conf-pkg-config 4                 [required by conf-mpfr]
  - install dune            3.17.2            [required by bigarray-compat]
  - install mlgmpidl        1.2.15-1 (pinned)
  - install ocamlfind       1.9.8             [required by mlgmpidl]

The following system packages will first need to be installed:
    gmp-dev mpfr-dev perl

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

opam believes some required external dependencies are missing. opam can:
> 1. Run apk to install them (may need root/sudo access)
  2. Display the recommended apk 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 "apk" "add" "gmp-dev" "mpfr-dev" "perl"
- (1/7) Installing libgmpxx (6.3.0-r2)
- (2/7) Installing gmp-dev (6.3.0-r2)
- (3/7) Installing mpfr-dev (4.2.1-r0)
- (4/7) Installing perl (5.40.1-r0)
- (5/7) Installing perl-error (0.17029-r2)
- (6/7) Installing perl-git (2.47.2-r0)
- (7/7) Installing git-perl (2.47.2-r0)
- Executing busybox-1.37.0-r12.trigger
- OK: 348 MiB in 108 packages

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved bigarray-compat.1.1.0  (cached)
-> retrieved camlidl.1.12  (cached)
-> retrieved conf-gmp.4  (cached)
-> retrieved conf-mpfr.3  (cached)
-> installed conf-pkg-config.4
-> installed conf-gmp.4
-> installed conf-perl.2
-> installed conf-mpfr.3
-> retrieved dune.3.17.2  (cached)
-> installed camlidl.1.12
-> retrieved mlgmpidl.1.2.15-1  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> installed ocamlfind.1.9.8
-> installed dune.3.17.2
-> installed bigarray-compat.1.1.0
-> installed mlgmpidl.1.2.15-1
Done.
# To update the current shell environment, run: eval $(opam env)
2025-04-03 16:26.44 ---> saved as "e0dad42033fadc018052599f5fb7e517d2af6ffd5c9b2e0e3b27f37c2c310a7d"
Job succeeded
2025-04-03 16:26.51: Job succeeded