(for PR #27494)

2025-02-24 08:20.03: New job: test ocamlmod.0.1.0, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/27494/head (0def47e7b511023db693d6098b7284568d1f56f0)
                              on debian-12-ocaml-4.14/ppc64le

To reproduce locally:

cd $(mktemp -d)
git clone --recursive "https://github.com/ocaml/opam-repository.git" && cd "opam-repository" && git fetch origin "refs/pull/27494/head" && git reset --hard 0def47e7
git fetch origin master
git merge --no-edit 4022a684b64be8161a05cf897f492f8680792469
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-4.14@sha256:d813a078248c2c477430256ef1df70ffd19dc0506d97f404ba1800d4338bf608
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 ocamlmod.0.1.0 0.1.0
RUN opam reinstall ocamlmod.0.1.0; \
    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" != 'ocamlmod.0.1.0' && 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 ocamlmod.0.1.0) || true
RUN opam reinstall --with-test --verbose ocamlmod.0.1.0; \
    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" != 'ocamlmod.0.1.0' && 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-24 08:20.03: Using cache hint "ocaml/opam:debian-12-ocaml-4.14@sha256:d813a078248c2c477430256ef1df70ffd19dc0506d97f404ba1800d4338bf608-ocamlmod.0.1.0-0def47e7b511023db693d6098b7284568d1f56f0"
2025-02-24 08:20.03: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.14@sha256:d813a078248c2c477430256ef1df70ffd19dc0506d97f404ba1800d4338bf608)
 (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 ocamlmod.0.1.0 0.1.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall ocamlmod.0.1.0;\
             \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\" != 'ocamlmod.0.1.0' && 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 ocamlmod.0.1.0) || true"))
 (run (shell  "opam reinstall --with-test --verbose ocamlmod.0.1.0;\
             \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\" != 'ocamlmod.0.1.0' && 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-24 08:20.03: Waiting for resource in pool OCluster
2025-02-24 08:20.04: Waiting for worker…
2025-02-24 08:20.05: Got resource from pool OCluster
Building on orithia.caelum.ci.dev
All commits already cached
Updating files:  32% (7307/22467)
Updating files:  33% (7415/22467)
Updating files:  34% (7639/22467)
Updating files:  35% (7864/22467)
Updating files:  36% (8089/22467)
Updating files:  37% (8313/22467)
Updating files:  38% (8538/22467)
Updating files:  39% (8763/22467)
Updating files:  40% (8987/22467)
Updating files:  41% (9212/22467)
Updating files:  42% (9437/22467)
Updating files:  43% (9661/22467)
Updating files:  44% (9886/22467)
Updating files:  45% (10111/22467)
Updating files:  46% (10335/22467)
Updating files:  46% (10440/22467)
Updating files:  47% (10560/22467)
Updating files:  48% (10785/22467)
Updating files:  49% (11009/22467)
Updating files:  50% (11234/22467)
Updating files:  51% (11459/22467)
Updating files:  52% (11683/22467)
Updating files:  53% (11908/22467)
Updating files:  54% (12133/22467)
Updating files:  55% (12357/22467)
Updating files:  56% (12582/22467)
Updating files:  57% (12807/22467)
Updating files:  58% (13031/22467)
Updating files:  59% (13256/22467)
Updating files:  60% (13481/22467)
Updating files:  61% (13705/22467)
Updating files:  62% (13930/22467)
Updating files:  63% (14155/22467)
Updating files:  64% (14379/22467)
Updating files:  65% (14604/22467)
Updating files:  66% (14829/22467)
Updating files:  67% (15053/22467)
Updating files:  68% (15278/22467)
Updating files:  69% (15503/22467)
Updating files:  69% (15621/22467)
Updating files:  70% (15727/22467)
Updating files:  71% (15952/22467)
Updating files:  72% (16177/22467)
Updating files:  73% (16401/22467)
Updating files:  74% (16626/22467)
Updating files:  75% (16851/22467)
Updating files:  76% (17075/22467)
Updating files:  77% (17300/22467)
Updating files:  78% (17525/22467)
Updating files:  79% (17749/22467)
Updating files:  80% (17974/22467)
Updating files:  81% (18199/22467)
Updating files:  82% (18423/22467)
Updating files:  83% (18648/22467)
Updating files:  84% (18873/22467)
Updating files:  85% (19097/22467)
Updating files:  86% (19322/22467)
Updating files:  87% (19547/22467)
Updating files:  88% (19771/22467)
Updating files:  89% (19996/22467)
Updating files:  90% (20221/22467)
Updating files:  91% (20445/22467)
Updating files:  92% (20670/22467)
Updating files:  93% (20895/22467)
Updating files:  94% (21119/22467)
Updating files:  95% (21344/22467)
Updating files:  95% (21486/22467)
Updating files:  96% (21569/22467)
Updating files:  97% (21793/22467)
Updating files:  98% (22018/22467)
Updating files:  99% (22243/22467)
Updating files: 100% (22467/22467)
Updating files: 100% (22467/22467), done.
HEAD is now at 4022a684b6 Merge pull request #27464 from hannesm/release-crunch-v4.0.0
Updating 4022a684b6..0def47e7b5
Fast-forward
 packages/ocamlmod/ocamlmod.0.1.0/opam | 37 +++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 packages/ocamlmod/ocamlmod.0.1.0/opam

(from ocaml/opam:debian-12-ocaml-4.14@sha256:d813a078248c2c477430256ef1df70ffd19dc0506d97f404ba1800d4338bf608)
Unable to find image 'ocaml/opam:debian-12-ocaml-4.14@sha256:d813a078248c2c477430256ef1df70ffd19dc0506d97f404ba1800d4338bf608' locally
docker.io/ocaml/opam@sha256:d813a078248c2c477430256ef1df70ffd19dc0506d97f404ba1800d4338bf608: Pulling from ocaml/opam
Digest: sha256:d813a078248c2c477430256ef1df70ffd19dc0506d97f404ba1800d4338bf608
Status: Downloaded newer image for ocaml/opam@sha256:d813a078248c2c477430256ef1df70ffd19dc0506d97f404ba1800d4338bf608
2025-02-24 08:20.29 ---> using "4a5dee19b061192e44bc3350f022379d81f3846e6fafcb7f2003f2f5589f82cd" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2025-02-24 08:20.29 ---> using "fa0ffdd30744956ac38f270e0cf2a87cc04c167e7ceccc59a47285e73c48bbd7" 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 ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[opam-repository-archive] synchronised from git+https://github.com/ocaml/opam-repository-archive
[default] synchronised from file:///home/opam/opam-repository
2025-02-24 08:20.29 ---> using "61e9c411b56473e9c67dc96da65842f8bd5e4325a611a69c830d9007b285839b" 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 (34b7b4ec4af0ebd3c8fc4aee8088471be2ad48c7)
# self-upgrade         no
# system               arch=ppc64 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                 175
# repositories         1 (local), 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-02-24 08:20.29 ---> using "4ac2f0a1ffa502a8ac29eb3f56f467933bfdeee63dd8269f77b6edc1f993b4dd" 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-24 08:20.29 ---> using "95329112a6a8511aff045976d681a82a39ffc28e40609eb9c0e5e109f20cbc1e" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-02-24 08:21.22 ---> saved as "bf33fb32cf0963347cd887a9ff691384317e4ab7d43825b1e898410a50700f00"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-02-24 08:22.19 ---> saved as "9683c95fe8c397038a6654b242959d26558b8460ee965aac8b4704366f72871f"

/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 ppc64el Packages [232 kB]
- Fetched 335 kB in 0s (773 kB/s)
- Reading package lists...
- 
2025-02-24 08:22.21 ---> saved as "59ec6f0d4d51f30a6fc59fa3894593e70c320ef19d991a268674fb9d16127fe1"

/home/opam: (run (shell "opam pin add -k version -yn ocamlmod.0.1.0 0.1.0"))
ocamlmod is now pinned to version 0.1.0
2025-02-24 08:22.22 ---> saved as "5c8c3d0087170ae848fc3206ff785ac966438cf3025a11f336fa91e48f55cb16"

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

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved dune.3.17.2  (cached)
-> retrieved ocamlmod.0.1.0  (https://github.com/gildor478/ocamlmod/releases/download/v0.1.0/ocamlmod-0.1.0.tbz)
-> installed dune.3.17.2
-> installed ocamlmod.0.1.0
Done.
# To update the current shell environment, run: eval $(opam env)
2025-02-24 08:22.53 ---> saved as "89713fc521983c7ba8a9a83895c7e0a9a08c14ab6227f91dff28a070a63d456e"

/home/opam: (run (network host)
                 (shell "(opam reinstall --with-test ocamlmod.0.1.0) || true"))
The following actions will be performed:
=== recompile 1 package
  - recompile ocamlmod     0.1.0 (pinned)
=== install 3 packages
  - install   ounit2       2.2.7          [required by ocamlmod]
  - install   seq          base           [required by ounit2]
  - install   stdlib-shims 0.3.0          [required by ounit2]

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved ounit2.2.2.7  (https://github.com/gildor478/ounit/releases/download/v2.2.7/ounit-2.2.7.tbz)
-> retrieved seq.base  (2 extra sources)
-> retrieved seq.base  (2 extra sources)
-> installed seq.base
-> retrieved stdlib-shims.0.3.0  (https://github.com/ocaml/stdlib-shims/releases/download/0.3.0/stdlib-shims-0.3.0.tbz)
-> removed   ocamlmod.0.1.0
-> installed stdlib-shims.0.3.0
-> installed ounit2.2.2.7
-> installed ocamlmod.0.1.0
Done.
# To update the current shell environment, run: eval $(opam env)
2025-02-24 08:23.03 ---> saved as "49b2d6cf82ad064c8105de9fc16a3625e54e9947325bbb674b29bb97fb31584b"

/home/opam: (run (shell  "opam reinstall --with-test --verbose ocamlmod.0.1.0;\
                        \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\" != 'ocamlmod.0.1.0' && 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 ocamlmod 0.1.0 (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  2/4: [ocamlmod: dune build]
+ /home/opam/.opam/opam-init/hooks/sandbox.sh "build" "dune" "build" "-p" "ocamlmod" "-j" "175" "@install" "@runtest" (CWD=/home/opam/.opam/4.14/.opam-switch/build/ocamlmod.0.1.0)
- (cd _build/default/test && ./test.exe)
- .
- Ran: 1 tests in: 0.11 seconds.
- OK
-> compiled  ocamlmod.0.1.0
-> removed   ocamlmod.0.1.0
-> installed ocamlmod.0.1.0
Done.
# To update the current shell environment, run: eval $(opam env)
2025-02-24 08:23.10 ---> saved as "730d744baab68e876f852e18b41ede85da6377689aea35f442beb942faac0e51"
Job succeeded
2025-02-24 08:23.33: Job succeeded