(for PR #28777)

2025-11-10 16:53.37: New job: test otp.0.2, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/28777/head (d2eb184985510985f5dcca90f4246ce82b21b3cc)
                              on fedora-42-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/28777/head" && git reset --hard d2eb1849
git fetch origin master
git merge --no-edit b6a264c784afa1e19f7a926fc10d49010ad12be4
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:fedora-42-ocaml-4.14@sha256:d6344a03c7dd73cf1f8acd87060e455ef56dd7e025c8a03e1073f1795f459313
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 "\"fedora-42\""; 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
RUN (opam reinstall --with-test otp.0.2) || true
RUN opam reinstall --with-test --verbose 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 "\"fedora-42\""; 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:fedora-42-ocaml-4.14@sha256:d6344a03c7dd73cf1f8acd87060e455ef56dd7e025c8a03e1073f1795f459313-otp.0.2-d2eb184985510985f5dcca90f4246ce82b21b3cc"
2025-11-10 16:53.37: Using OBuilder spec:
((from ocaml/opam:fedora-42-ocaml-4.14@sha256:d6344a03c7dd73cf1f8acd87060e455ef56dd7e025c8a03e1073f1795f459313)
 (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 \"\\\"fedora-42\\\"\"; 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"))
 (run (network host)
      (shell "(opam reinstall --with-test otp.0.2) || true"))
 (run (shell  "opam reinstall --with-test --verbose 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 \"\\\"fedora-42\\\"\"; 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:12.01: Waiting for worker…
2025-11-10 20:16.00: Got resource from pool OCluster
Building on doris.caelum.ci.dev
All commits already cached
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:fedora-42-ocaml-4.14@sha256:d6344a03c7dd73cf1f8acd87060e455ef56dd7e025c8a03e1073f1795f459313)
Unable to find image 'ocaml/opam:fedora-42-ocaml-4.14@sha256:d6344a03c7dd73cf1f8acd87060e455ef56dd7e025c8a03e1073f1795f459313' locally
docker.io/ocaml/opam@sha256:d6344a03c7dd73cf1f8acd87060e455ef56dd7e025c8a03e1073f1795f459313: Pulling from ocaml/opam
a534787e6fcf: Pulling fs layer
a534787e6fcf: Waiting
a534787e6fcf: Verifying Checksum
a534787e6fcf: Download complete
a534787e6fcf: Pull complete
Digest: sha256:d6344a03c7dd73cf1f8acd87060e455ef56dd7e025c8a03e1073f1795f459313
Status: Downloaded newer image for ocaml/opam@sha256:d6344a03c7dd73cf1f8acd87060e455ef56dd7e025c8a03e1073f1795f459313
2025-11-10 20:20.01 ---> saved as "b0b7f9f0e97c317448cfec36dd0c4fa6e5a90602f94003ee98ef677446a93a41"

/: (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:20.04 ---> saved as "9e3d4d6e84a133d60c37d9656abc1e9965285e436dd8f6845e767b076261f977"

/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
[NOTE] The 'jobs' option was reset, its value was 71 and its new value will vary according to the current number of cores on your machine. You can restore the fixed value using:
           opam option jobs=71 --global
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-11-10 20:20.27 ---> saved as "3c0939f81de8cc60382675c57086f2de7b337c035651824439944b3632f5c3cb"

/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=fedora os-version=42
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 255
# repositories         1 (version-controlled)
# 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-11-10 20:20.28 ---> saved as "a5f6bcc12f6d9aa36d5d0bd41ea6cee8cf2ad858bdb749fa277098a1854428b6"

/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:20.43 ---> saved as "befc24de06d3f9eb27955e2cbfba6dfdde9059cb4c4386f98e2a974f3e2fa03a"

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

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

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/sbin/sudo "yum" "makecache"
- Updating and loading repositories:
-  Fedora 42 - x86_64 - Updates           100% |  61.5 KiB/s |  18.4 KiB |  00m00s
- Repositories loaded.
- Metadata cache created.
2025-11-10 20:21.15 ---> saved as "678a7ff7646465ad3094c2e12ee6c4bb370b78b4cacd96dfe6241b819d74068b"

/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:21.16 ---> saved as "40d0b67835d489bf4d145bfe5f9d5e9a115c6c8b97970ccc84d37e4c55c9e6e6"

/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 \"\\\"fedora-42\\\"\"; 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:
    gmp-devel zlib-ng-compat-devel

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

opam believes some required external dependencies are missing. opam can:
> 1. Run yum to install them (may need root/sudo access)
  2. Display the recommended yum 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/sbin/sudo "yum" "install" "-y" "gmp-devel" "zlib-ng-compat-devel"
- Updating and loading repositories:
- Repositories loaded.
- Package               Arch   Version        Repository      Size
- Installing:
-  gmp-devel            x86_64 1:6.3.0-4.fc42 fedora     352.3 KiB
-  zlib-ng-compat-devel x86_64 2.2.5-2.fc42   updates    107.0 KiB
- Installing dependencies:
-  cmake-filesystem     x86_64 3.31.6-2.fc42  fedora       0.0   B
-  gmp-c++              x86_64 1:6.3.0-4.fc42 fedora      27.6 KiB
- 
- Transaction Summary:
-  Installing:         4 packages
- 
- Total size of inbound packages is 249 KiB. Need to download 249 KiB.
- After this operation, 487 KiB extra will be used (install 487 KiB, remove 0 B).
- [1/4] gmp-c++-1:6.3.0-4.fc42.x86_64     100% | 393.5 KiB/s |  18.5 KiB |  00m00s
- [2/4] cmake-filesystem-0:3.31.6-2.fc42. 100% |   1.2 MiB/s |  17.6 KiB |  00m00s
- [3/4] zlib-ng-compat-devel-0:2.2.5-2.fc 100% | 183.4 KiB/s |  38.3 KiB |  00m00s
- [4/4] gmp-devel-1:6.3.0-4.fc42.x86_64   100% | 453.0 KiB/s | 174.4 KiB |  00m00s
- --------------------------------------------------------------------------------
- [4/4] Total                             100% | 161.5 KiB/s | 248.8 KiB |  00m02s
- Running transaction
- [1/6] Verify package files              100% |   3.9 KiB/s |   4.0   B |  00m00s
- [2/6] Prepare transaction               100% |  95.0   B/s |   4.0   B |  00m00s
- [3/6] Installing cmake-filesystem-0:3.3 100% |   1.5 MiB/s |   7.6 KiB |  00m00s
- [4/6] Installing gmp-c++-1:6.3.0-4.fc42 100% |  27.8 MiB/s |  28.5 KiB |  00m00s
- [5/6] Installing gmp-devel-1:6.3.0-4.fc 100% | 172.9 MiB/s | 354.1 KiB |  00m00s
- [6/6] Installing zlib-ng-compat-devel-0 100% |   2.4 MiB/s | 108.5 KiB |  00m00s
- Complete!
+ /usr/sbin/rpm "-q" "--whatprovides" "gmp-devel" "zlib-ng-compat-devel"
- gmp-devel-6.3.0-4.fc42.x86_64
- zlib-ng-compat-devel-2.2.5-2.fc42.x86_64

<><> 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)
-> retrieved cstruct.6.2.0  (cached)
-> installed conf-gmp.5
-> installed conf-pkg-config.4
-> installed conf-gmp-powm-sec.4
-> installed conf-zlib.1
-> 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 csexp.1.5.2
-> installed cstruct.6.2.0
-> installed stdint.0.7.2
-> installed stdlib-shims.0.3.0
-> installed hex.1.5.0
-> installed ounit2.2.2.7
-> 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:21.50 ---> saved as "03a45a551d96b23499642af87a4f98eb38a9811cf0860229fb4f82c71909664c"

/home/opam: (run (network host)
                 (shell "(opam reinstall --with-test otp.0.2) || true"))
The following actions will be performed:
=== recompile 1 package
  - recompile otp 0.2 (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> removed   otp.0.2
-> installed otp.0.2
Done.
# To update the current shell environment, run: eval $(opam env)
2025-11-10 20:21.53 ---> saved as "a3d4b2116c081190933ab4457ec6aaae62910fc2d3f6022ebd92c20652aeb4e4"

/home/opam: (run (shell  "opam reinstall --with-test --verbose 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 \"\\\"fedora-42\\\"\"; 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"))
The following actions will be performed:
=== recompile 1 package
  - recompile otp 0.2 (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  2/4: [otp: dune build]
+ /home/opam/.opam/opam-init/hooks/sandbox.sh "build" "dune" "build" "-p" "otp" "-j" "255" "@install" "@runtest" (CWD=/home/opam/.opam/4.14/.opam-switch/build/otp.0.2)
- (cd _build/default/test && ./test_OTP.exe)
- ...............
- Ran: 15 tests in: 0.11 seconds.
- OK
-> compiled  otp.0.2
-> removed   otp.0.2
-> installed otp.0.2
Done.
# To update the current shell environment, run: eval $(opam env)
2025-11-10 20:21.57 ---> saved as "c9dbc8f69e58160347a5aba0ee93986e2f3ece8f5da64929ccee849e19e8c5eb"
Job succeeded
2025-11-10 20:22.03: Job succeeded