(for PR #29568)

2026-03-23 09:19.16: New job: build ocamlformat-lib.0.25.1, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29568/head (353fd9234f0397ed1edb6d612e5b9da8472dea1c)
                              on centos-9-ocaml-5.4/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/29568/head" && git reset --hard 353fd923
git fetch origin master
git merge --no-edit 63b7ba71be83567e54bb667df0f2bb374d74fb61
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:centos-9-ocaml-5.4@sha256:4aa844f3e0fcf82e7150a5346c293d808e7d7d667a9afd9a2b5e32b3078970cd
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 ocamlformat-lib.0.25.1 0.25.1
RUN opam reinstall ocamlformat-lib.0.25.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 "\"centos-9\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'ocamlformat-lib.0.25.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 .

2026-03-23 09:19.16: Using cache hint "ocaml/opam:centos-9-ocaml-5.4@sha256:4aa844f3e0fcf82e7150a5346c293d808e7d7d667a9afd9a2b5e32b3078970cd-ocamlformat-lib.0.25.1-353fd9234f0397ed1edb6d612e5b9da8472dea1c"
2026-03-23 09:19.16: Using OBuilder spec:
((from ocaml/opam:centos-9-ocaml-5.4@sha256:4aa844f3e0fcf82e7150a5346c293d808e7d7d667a9afd9a2b5e32b3078970cd)
 (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 ocamlformat-lib.0.25.1 0.25.1"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall ocamlformat-lib.0.25.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 \"\\\"centos-9\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'ocamlformat-lib.0.25.1' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2026-03-23 09:19.16: Waiting for resource in pool OCluster
2026-03-23 09:27.14: Waiting for worker…
2026-03-23 09:30.53: Got resource from pool OCluster
Building on phoebe
All commits already cached
HEAD is now at 63b7ba71be Merge pull request #29573 from davesnx/release-parseff-0.2.0
Merge made by the 'ort' strategy.
 packages/ocamlformat-lib/ocamlformat-lib.0.25.1/opam | 1 +
 packages/ocamlformat-lib/ocamlformat-lib.0.26.0/opam | 1 +
 packages/ocamlformat-lib/ocamlformat-lib.0.26.1/opam | 1 +
 packages/ocamlformat-lib/ocamlformat-lib.0.26.2/opam | 1 +
 packages/ocamlformat-lib/ocamlformat-lib.0.27.0/opam | 1 +
 packages/ocamlformat-lib/ocamlformat-lib.0.28.1/opam | 1 +
 packages/ocamlformat-lib/ocamlformat-lib.0.29.0/opam | 1 +
 packages/ocamlformat/ocamlformat.0.24.1/opam         | 1 +
 8 files changed, 8 insertions(+)

(from ocaml/opam:centos-9-ocaml-5.4@sha256:4aa844f3e0fcf82e7150a5346c293d808e7d7d667a9afd9a2b5e32b3078970cd)
2026-03-23 09:33.17 ---> saved as "0e7e56f63340dc297b4fb11a5934361b3e78854b8ddde6f0f1f7157f70706e63"

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2026-03-23 09:33.18 ---> saved as "55e830bab986365cd29692a64f776700643ff81244472a9b8f9217f41a1fd79b"

/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
2026-03-23 09:34.12 ---> saved as "0da06b537cdccb2fa4c5074db691eb9229490349e6d7a77fd50474275ca3c357"

/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
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=centos os-version=9
# 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.4
# invariant            ["ocaml-base-compiler" {= "5.4.0"}]
# compiler-packages    ocaml-base-compiler.5.4.0, ocaml-compiler.5.4.0, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/5.4/lib/ocaml/stublibs:/home/opam/.opam/5.4/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       5.4.0
2026-03-23 09:34.14 ---> saved as "8c66e02ad0de47b3f6679d7b052c6244fefd4ea1838533dd95b13ece61f41869"

/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/"))
2026-03-23 09:34.32 ---> saved as "38f9681f07c57f4eda5c80903f6564607721ae16d33473bfc6484b94e7d97ac1"

/home/opam: (copy (src .) (dst opam-repository/))
2026-03-23 09:35.06 ---> saved as "84a5be28388517de0051592bdd00a9fcedea5c534851628d7212f3d7b47df18c"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2026-03-23 09:35.34 ---> saved as "4cc3352c8fa7bf4632b07c29d82022d28246f767e264d2fb3bc72fd916f23b60"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "yum" "makecache"
- CentOS Stream 9 - BaseOS                         99 kB/s |  15 kB     00:00    
- CentOS Stream 9 - BaseOS                         11 MB/s | 8.9 MB     00:00    
- CentOS Stream 9 - AppStream                     103 kB/s |  16 kB     00:00    
- CentOS Stream 9 - AppStream                      13 MB/s |  27 MB     00:02    
- CentOS Stream 9 - CRB                            92 kB/s |  15 kB     00:00    
- CentOS Stream 9 - CRB                           8.9 MB/s | 8.0 MB     00:00    
- CentOS Stream 9 - Extras packages               108 kB/s |  17 kB     00:00    
- Last metadata expiration check: 0:00:01 ago on Mon Mar 23 09:35:52 2026.
- Metadata cache created.
2026-03-23 09:36.00 ---> saved as "bc0c8fe6d689b0dc6363a8a63b4f15678af120a461e3816a9d653dca6264ab41"

/home/opam: (run (shell "opam pin add -k version -yn ocamlformat-lib.0.25.1 0.25.1"))
ocamlformat-lib is now pinned to version 0.25.1
2026-03-23 09:36.01 ---> saved as "0879467e54c634481426f5440805b45acc326695afd6053c15c501334e0c216b"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall ocamlformat-lib.0.25.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 \"\\\"centos-9\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'ocamlformat-lib.0.25.1' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
ocamlformat-lib.0.25.1 is not installed. Install it? [Y/n] y
  * Incompatible packages:
    - (invariant) -> ocaml-base-compiler = 5.4.0
    - ocamlformat-lib < 0.26.0 -> ocaml < 5.2 -> dkml-base-compiler
    You can temporarily relax the switch invariant with `--update-invariant'
  * Incompatible packages:
    - (invariant) -> ocaml-base-compiler = 5.4.0
    - ocamlformat-lib < 0.26.0 -> ocaml < 5.2 -> ocaml-variants
  * Missing dependency:
    - ocamlformat-lib < 0.26.0 -> ocaml < 5.2 -> ocaml-base-compiler (<= 3.07+1 | = 3.07+2 | = 3.08.0 | = 3.08.1 | = 3.08.2 | = 3.08.3 | = 3.08.4 | = 3.09.0) | ocaml-system (<= 3.07+1 | = 3.07+2 | >= 3.08.0) | ocaml-variants < 3.09.1~
    not available because the package is pinned to version 5.4.0
    unmet availability conditions, e.g. 'sys-ocaml-version = "5.4.1" & (os != "win32" | sys-ocaml-libc = "msvc")'
    no matching version
  * Missing dependency:
    - ocamlformat-lib < 0.26.0 -> ocaml < 5.2 -> ocaml-variants -> ocaml-beta
    unmet availability conditions: 'enable-ocaml-beta-repository'
  * Missing dependency:
    - ocamlformat-lib < 0.26.0 -> ocaml < 5.2 -> ocaml-variants -> system-msvc
    unmet availability conditions: 'os = "win32"'

No solution found, exiting
"/usr/bin/env" "bash" "-c" "opam reinstall ocamlformat-lib.0.25.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 "\"centos-9\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'ocamlformat-lib.0.25.1' && partial_fails="$partial_fails $pkg";
        done;
        test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}";
        exit 1" failed with exit status 20
2026-03-23 09:36.48: Job failed: Failed: Build failed
2026-03-23 09:36.48: Log analysis:
2026-03-23 09:36.48: >>> 
No solution found, exiting
 (score = 100)
2026-03-23 09:36.48: [SKIP] Package not available