(for PR #26912)

2025-04-03 13:30.26: New job: build mlgmpidl.1.2.15-1, using opam 2.1
                              from https://github.com/ocaml/opam-repository.git#refs/pull/26912/head (8f78ac65ee262835b31990fcdf159b4ccdca7c5f)
                              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/26912/head" && git reset --hard 8f78ac65
git fetch origin master
git merge --no-edit ecbfc6754f6e95544eb1eab71c162099f77308bf
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-4.14@sha256:f8002afc27455d9a42ad6e5ac109d5b3009a6a9e0c45f4a6e6165369724e9a6a
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 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 "\"debian-12\""; 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:debian-12-ocaml-4.14@sha256:f8002afc27455d9a42ad6e5ac109d5b3009a6a9e0c45f4a6e6165369724e9a6a-mlgmpidl.1.2.15-1-8f78ac65ee262835b31990fcdf159b4ccdca7c5f"
2025-04-03 13:30.26: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.14@sha256:f8002afc27455d9a42ad6e5ac109d5b3009a6a9e0c45f4a6e6165369724e9a6a)
 (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 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 \"\\\"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\" != '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:21.40: Waiting for worker…
2025-04-03 16:25.47: Got resource from pool OCluster
Building on toxis.caelum.ci.dev
All commits already cached
Updating files:  94% (21627/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:debian-12-ocaml-4.14@sha256:f8002afc27455d9a42ad6e5ac109d5b3009a6a9e0c45f4a6e6165369724e9a6a)
2025-04-03 16:25.52 ---> using "b617ded97c02792844cd815fc0d5dbfa5315de7a9ffc498142bf1c821d4cda58" 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-04-03 16:25.52 ---> using "38b02156cf2f15dc637ae96a9fd914f62770b1a9a7194cc8daa78a6e35c39437" 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 ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
2025-04-03 16:25.52 ---> using "373353364b0816fec09053f8a6c1fcc018edee7ff3725cda80e16af4caf8273f" 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)
# pinned               1 (version)
# current-switch       4.14
# 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.52 ---> using "0af9b186d3a139aec90faac93d65ddbd4db9ce6a501c2adbed1c7daa99c0cef1" 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.52 ---> using "6c2f485edb6ea1117e4e0fe1200eee41b658ae030d65918d09e7881be060e883" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-04-03 16:26.05 ---> saved as "1192e83ba278a16f85234d51d56b0a7fe8b7483fc8eff5645d5bc20f5bfd8673"

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

/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 [250 kB]
- Fetched 353 kB in 0s (1043 kB/s)
- Reading package lists...
- 
2025-04-03 16:26.21 ---> saved as "15b82141fa7c7333730e920ccf23b50da23c2914398936a8a04f852d3f97beb7"

/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.22 ---> saved as "ada59d9e66e39fc79803c603f159d4d1cb3f81195ff0231bd24540c37bbffa3c"

/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 \"\\\"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\" != '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 conf-perl       2         [required by mlgmpidl]
  - install conf-gmp        4         [required by mlgmpidl]
  - install conf-pkg-config 4         [required by conf-mpfr]
  - install ocamlfind       1.9.8     [required by mlgmpidl]
  - install camlidl         1.12      [required by mlgmpidl]
  - install dune            3.17.2    [required by bigarray-compat]
  - install conf-mpfr       3         [required by mlgmpidl]
  - install bigarray-compat 1.1.0     [required by mlgmpidl]
  - install mlgmpidl        1.2.15-1*
===== 9 to install =====

The following system packages will first need to be installed:
    libgmp-dev libmpfr-dev pkg-config

<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>
Let opam run your package manager to install the required system packages?
(answer 'n' for other options) [Y/n] y
+ /usr/bin/sudo "apt-get" "install" "-qq" "-yy" "libgmp-dev" "libmpfr-dev" "pkg-config"
- debconf: delaying package configuration, since apt-utils is not installed
- Selecting previously unselected package libgmpxx4ldbl:amd64.
- (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 ... 18747 files and directories currently installed.)
- Preparing to unpack .../0-libgmpxx4ldbl_2%3a6.2.1+dfsg1-1.1_amd64.deb ...
- Unpacking libgmpxx4ldbl:amd64 (2:6.2.1+dfsg1-1.1) ...
- Selecting previously unselected package libgmp-dev:amd64.
- Preparing to unpack .../1-libgmp-dev_2%3a6.2.1+dfsg1-1.1_amd64.deb ...
- Unpacking libgmp-dev:amd64 (2:6.2.1+dfsg1-1.1) ...
- Selecting previously unselected package libmpfr-dev:amd64.
- Preparing to unpack .../2-libmpfr-dev_4.2.0-1_amd64.deb ...
- Unpacking libmpfr-dev:amd64 (4.2.0-1) ...
- Selecting previously unselected package libpkgconf3:amd64.
- Preparing to unpack .../3-libpkgconf3_1.8.1-1_amd64.deb ...
- Unpacking libpkgconf3:amd64 (1.8.1-1) ...
- Selecting previously unselected package pkgconf-bin.
- Preparing to unpack .../4-pkgconf-bin_1.8.1-1_amd64.deb ...
- Unpacking pkgconf-bin (1.8.1-1) ...
- Selecting previously unselected package pkgconf:amd64.
- Preparing to unpack .../5-pkgconf_1.8.1-1_amd64.deb ...
- Unpacking pkgconf:amd64 (1.8.1-1) ...
- Selecting previously unselected package pkg-config:amd64.
- Preparing to unpack .../6-pkg-config_1.8.1-1_amd64.deb ...
- Unpacking pkg-config:amd64 (1.8.1-1) ...
- Setting up libpkgconf3:amd64 (1.8.1-1) ...
- Setting up libgmpxx4ldbl:amd64 (2:6.2.1+dfsg1-1.1) ...
- Setting up pkgconf-bin (1.8.1-1) ...
- Setting up libgmp-dev:amd64 (2:6.2.1+dfsg1-1.1) ...
- Setting up libmpfr-dev:amd64 (4.2.0-1) ...
- Setting up pkgconf:amd64 (1.8.1-1) ...
- Setting up pkg-config:amd64 (1.8.1-1) ...
- Processing triggers for libc-bin (2.36-9+deb12u10) ...

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