(for PR #28777)

2025-11-10 16:53.37: New job: build otp.0.2, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/28777/head (d2eb184985510985f5dcca90f4246ce82b21b3cc)
                              on debian-13-ocaml-5.2/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/28777/head" && git reset --hard d2eb1849
git fetch origin master
git merge --no-edit b6a264c784afa1e19f7a926fc10d49010ad12be4
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-13-ocaml-5.2@sha256:21a5dbaf0132e392da5b14997c3e0e60655b38b457e6ed7afeb672d388abbc18
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 otp.0.2 0.2
RUN opam reinstall otp.0.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-13\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'otp.0.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-11-10 16:53.37: Using cache hint "ocaml/opam:debian-13-ocaml-5.2@sha256:21a5dbaf0132e392da5b14997c3e0e60655b38b457e6ed7afeb672d388abbc18-otp.0.2-d2eb184985510985f5dcca90f4246ce82b21b3cc"
2025-11-10 16:53.37: Using OBuilder spec:
((from ocaml/opam:debian-13-ocaml-5.2@sha256:21a5dbaf0132e392da5b14997c3e0e60655b38b457e6ed7afeb672d388abbc18)
 (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 otp.0.2 0.2"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall otp.0.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-13\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'otp.0.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-11-10 16:53.37: Waiting for resource in pool OCluster
2025-11-10 20:11.14: Waiting for worker…
2025-11-10 20:14.43: Got resource from pool OCluster
Building on bremusa.ocamllabs.io
All commits already cached
Updating files:  63% (11790/18705)
Updating files:  64% (11972/18705)
Updating files:  65% (12159/18705)
Updating files:  66% (12346/18705)
Updating files:  67% (12533/18705)
Updating files:  68% (12720/18705)
Updating files:  69% (12907/18705)
Updating files:  70% (13094/18705)
Updating files:  71% (13281/18705)
Updating files:  72% (13468/18705)
Updating files:  73% (13655/18705)
Updating files:  74% (13842/18705)
Updating files:  75% (14029/18705)
Updating files:  76% (14216/18705)
Updating files:  77% (14403/18705)
Updating files:  78% (14590/18705)
Updating files:  79% (14777/18705)
Updating files:  80% (14964/18705)
Updating files:  81% (15152/18705)
Updating files:  82% (15339/18705)
Updating files:  83% (15526/18705)
Updating files:  84% (15713/18705)
Updating files:  85% (15900/18705)
Updating files:  86% (16087/18705)
Updating files:  87% (16274/18705)
Updating files:  88% (16461/18705)
Updating files:  89% (16648/18705)
Updating files:  90% (16835/18705)
Updating files:  91% (17022/18705)
Updating files:  92% (17209/18705)
Updating files:  93% (17396/18705)
Updating files:  94% (17583/18705)
Updating files:  95% (17770/18705)
Updating files:  96% (17957/18705)
Updating files:  97% (18144/18705)
Updating files:  98% (18331/18705)
Updating files:  99% (18518/18705)
Updating files: 100% (18705/18705)
Updating files: 100% (18705/18705), done.
HEAD is now at b6a264c784 Merge pull request #28853 from AltGr/catala100
Merge made by the 'ort' strategy.
 packages/otp/otp.0.2/opam | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(from ocaml/opam:debian-13-ocaml-5.2@sha256:21a5dbaf0132e392da5b14997c3e0e60655b38b457e6ed7afeb672d388abbc18)
2025-11-10 20:15.15 ---> saved as "0efe32f3080b7b674e0ace2da5efac9f766f1da12c1b2a72a5e4df386eb0ed98"

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2025-11-10 20:15.15 ---> saved as "f36123c7da35ed02836f1e389522bb1017f9c32f2b0cbddc184904b39694e6af"

/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 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] Initialised
2025-11-10 20:15.50 ---> saved as "87f15187e32f6303ed357dee8430c597a4bb439be3ea8de953a4f0edabfa1695"

/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.5.0~alpha1
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=debian os-version=13
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 71
# repositories         1 (version-controlled)
# pinned               1 (version)
# current-switch       5.2
# invariant            ["ocaml-base-compiler" {= "5.2.1"}]
# compiler-packages    ocaml-base-compiler.5.2.1, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/5.2/lib/ocaml/stublibs:/home/opam/.opam/5.2/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       5.2.1
2025-11-10 20:15.50 ---> saved as "ab7c539537ffe1e455f10660d73954d6212435da69c67d7ca3f9f4518230d389"

/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-11-10 20:15.59 ---> saved as "a5bbc1dfcd07cee3c10641c2a14dd8c93e775b009b07ea238626c232ad0c95c4"

/home/opam: (copy (src .) (dst opam-repository/))
2025-11-10 20:16.09 ---> saved as "e7508edb746d1e90bd082bf30fc320a4b39d880315811a145d8f00b5fa2dbc52"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-11-10 20:16.35 ---> saved as "fd396e70c4d50cd294f317156907a80cbd327eda11011c890e5e7581e2761543"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian trixie InRelease
- Get:2 http://deb.debian.org/debian trixie-updates InRelease [47.3 kB]
- Get:3 http://deb.debian.org/debian-security trixie-security InRelease [43.4 kB]
- Get:4 http://deb.debian.org/debian-security trixie-security/main amd64 Packages [69.3 kB]
- Fetched 160 kB in 0s (1348 kB/s)
- Reading package lists...
- 
2025-11-10 20:16.36 ---> saved as "74570131dc727e132ba859b238ac72dbee2bcb0b0f739cc2913205c1f2f394ae"

/home/opam: (run (shell "opam pin add -k version -yn otp.0.2 0.2"))
otp is now pinned to version 0.2
2025-11-10 20:16.37 ---> saved as "36cf4506aec27c6c37207661b091752a4b82f7fdea586bc02ca8f9bb83502f40"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall otp.0.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-13\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'otp.0.2' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
otp.0.2 is not installed. Install it? [Y/n] y
The following actions will be performed:
=== install 22 packages
  - install base32            1.0.0        [required by otp]
  - install conf-gmp          5            [required by otp]
  - install conf-gmp-powm-sec 4            [required by otp]
  - install conf-pkg-config   4            [required by conf-zlib, zarith]
  - install conf-zlib         1            [required by cryptokit]
  - install cryptokit         1.20         [required by otp]
  - install csexp             1.5.2        [required by dune-configurator]
  - install cstruct           6.2.0        [required by hex]
  - install dune              3.20.2       [required by otp]
  - install dune-configurator 3.20.2       [required by cryptokit]
  - install fmt               0.11.0       [required by cstruct]
  - install hex               1.5.0        [required by otp]
  - install ocamlbuild        0.16.1       [required by qrc]
  - install ocamlfind         1.9.8        [required by otp]
  - install otp               0.2 (pinned)
  - install ounit2            2.2.7        [required by otp]
  - install qrc               0.2.0        [required by otp]
  - install seq               base         [required by ounit2]
  - install stdint            0.7.2        [required by otp]
  - install stdlib-shims      0.3.0        [required by ounit2]
  - install topkg             1.1.1        [required by qrc]
  - install zarith            1.14         [required by cryptokit]

The following system packages will first need to be installed:
    libgmp-dev pkg-config zlib1g-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" "libgmp-dev" "pkg-config" "zlib1g-dev"
- 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 ... 20653 files and directories currently installed.)
- Preparing to unpack .../0-libgmpxx4ldbl_2%3a6.3.0+dfsg-3_amd64.deb ...
- Unpacking libgmpxx4ldbl:amd64 (2:6.3.0+dfsg-3) ...
- Selecting previously unselected package libgmp-dev:amd64.
- Preparing to unpack .../1-libgmp-dev_2%3a6.3.0+dfsg-3_amd64.deb ...
- Unpacking libgmp-dev:amd64 (2:6.3.0+dfsg-3) ...
- Selecting previously unselected package libpkgconf3:amd64.
- Preparing to unpack .../2-libpkgconf3_1.8.1-4_amd64.deb ...
- Unpacking libpkgconf3:amd64 (1.8.1-4) ...
- Selecting previously unselected package pkgconf-bin.
- Preparing to unpack .../3-pkgconf-bin_1.8.1-4_amd64.deb ...
- Unpacking pkgconf-bin (1.8.1-4) ...
- Selecting previously unselected package pkgconf:amd64.
- Preparing to unpack .../4-pkgconf_1.8.1-4_amd64.deb ...
- Unpacking pkgconf:amd64 (1.8.1-4) ...
- Selecting previously unselected package pkg-config:amd64.
- Preparing to unpack .../5-pkg-config_1.8.1-4_amd64.deb ...
- Unpacking pkg-config:amd64 (1.8.1-4) ...
- Selecting previously unselected package zlib1g-dev:amd64.
- Preparing to unpack .../6-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1+b1_amd64.deb ...
- Unpacking zlib1g-dev:amd64 (1:1.3.dfsg+really1.3.1-1+b1) ...
- Setting up libpkgconf3:amd64 (1.8.1-4) ...
- Setting up libgmpxx4ldbl:amd64 (2:6.3.0+dfsg-3) ...
- Setting up pkgconf-bin (1.8.1-4) ...
- Setting up zlib1g-dev:amd64 (1:1.3.dfsg+really1.3.1-1+b1) ...
- Setting up libgmp-dev:amd64 (2:6.3.0+dfsg-3) ...
- Setting up pkgconf:amd64 (1.8.1-4) ...
- Setting up pkg-config:amd64 (1.8.1-4) ...
- Processing triggers for libc-bin (2.41-12) ...

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved base32.1.0.0  (cached)
-> retrieved conf-gmp.5  (cached)
-> retrieved conf-gmp-powm-sec.4  (cached)
-> retrieved cryptokit.1.20  (cached)
-> retrieved csexp.1.5.2  (cached)
-> installed conf-pkg-config.4
-> installed conf-gmp.5
-> retrieved cstruct.6.2.0  (cached)
-> installed conf-zlib.1
-> installed conf-gmp-powm-sec.4
-> retrieved dune.3.20.2, dune-configurator.3.20.2  (cached)
-> retrieved fmt.0.11.0  (cached)
-> retrieved hex.1.5.0  (cached)
-> retrieved ocamlbuild.0.16.1  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved otp.0.2  (cached)
-> retrieved ounit2.2.2.7  (cached)
-> retrieved qrc.0.2.0  (cached)
-> retrieved seq.base  (cached)
-> installed seq.base
-> retrieved stdint.0.7.2  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> retrieved topkg.1.1.1  (cached)
-> retrieved zarith.1.14  (cached)
-> installed ocamlfind.1.9.8
-> installed ocamlbuild.0.16.1
-> installed zarith.1.14
-> installed topkg.1.1.1
-> installed qrc.0.2.0
-> installed fmt.0.11.0
-> installed dune.3.20.2
-> installed base32.1.0.0
-> installed stdlib-shims.0.3.0
-> installed csexp.1.5.2
-> installed cstruct.6.2.0
-> installed stdint.0.7.2
-> installed ounit2.2.2.7
-> installed hex.1.5.0
-> installed dune-configurator.3.20.2
-> installed cryptokit.1.20
-> installed otp.0.2
Done.
# To update the current shell environment, run: eval $(opam env)
2025-11-10 20:17.20 ---> saved as "1650141dc73bb6e717c574d632050aad2834386fc9d3c6ab63674ea8830e86d8"
Job succeeded
2025-11-10 20:17.28: Job succeeded