(for PR #29117)

2025-12-20 10:17.06: New job: build ocaml-index.5.6.1-504, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29117/head (c3b5c54904ea4308c605e1c3272dbdeb71bfdb08)
                              on opensuse-tumbleweed-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/29117/head" && git reset --hard c3b5c549
git fetch origin master
git merge --no-edit 55b1099664cdc48c71e3d01d8fdaef4b376ade70
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:opensuse-tumbleweed-ocaml-4.14@sha256:a2d14193cbcc0cfa9ce3d7a2ddfa65539a7e2a34879fdd10680fcb9a2017ecbf
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 ocaml-index.5.6.1-504 5.6.1-504
RUN opam reinstall ocaml-index.5.6.1-504; \
    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 "\"opensuse-tumbleweed\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'ocaml-index.5.6.1-504' && 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-12-20 10:17.06: Using cache hint "ocaml/opam:opensuse-tumbleweed-ocaml-4.14@sha256:a2d14193cbcc0cfa9ce3d7a2ddfa65539a7e2a34879fdd10680fcb9a2017ecbf-ocaml-index.5.6.1-504-c3b5c54904ea4308c605e1c3272dbdeb71bfdb08"
2025-12-20 10:17.06: Using OBuilder spec:
((from ocaml/opam:opensuse-tumbleweed-ocaml-4.14@sha256:a2d14193cbcc0cfa9ce3d7a2ddfa65539a7e2a34879fdd10680fcb9a2017ecbf)
 (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 ocaml-index.5.6.1-504 5.6.1-504"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall ocaml-index.5.6.1-504;\
             \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 \"\\\"opensuse-tumbleweed\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'ocaml-index.5.6.1-504' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-12-20 10:17.06: Waiting for resource in pool OCluster
2025-12-20 10:17.44: Waiting for worker…
2025-12-20 10:22.49: Got resource from pool OCluster
Building on asteria.caelum.ci.dev
All commits already cached
HEAD is now at 55b1099664 Merge pull request #29100 from samoht/release-cohttp-v6.2.1
Updating 55b1099664..c3b5c54904
Fast-forward
 .../dot-merlin-reader.5.6.1-504/opam               | 31 +++++++++
 packages/merlin-lib/merlin-lib.5.6.1-504/opam      | 36 ++++++++++
 packages/merlin/merlin.5.6.1-504/opam              | 81 ++++++++++++++++++++++
 packages/ocaml-index/ocaml-index.5.6.1-504/opam    | 42 +++++++++++
 4 files changed, 190 insertions(+)
 create mode 100644 packages/dot-merlin-reader/dot-merlin-reader.5.6.1-504/opam
 create mode 100644 packages/merlin-lib/merlin-lib.5.6.1-504/opam
 create mode 100644 packages/merlin/merlin.5.6.1-504/opam
 create mode 100644 packages/ocaml-index/ocaml-index.5.6.1-504/opam

(from ocaml/opam:opensuse-tumbleweed-ocaml-4.14@sha256:a2d14193cbcc0cfa9ce3d7a2ddfa65539a7e2a34879fdd10680fcb9a2017ecbf)
Unable to find image 'ocaml/opam:opensuse-tumbleweed-ocaml-4.14@sha256:a2d14193cbcc0cfa9ce3d7a2ddfa65539a7e2a34879fdd10680fcb9a2017ecbf' locally
docker.io/ocaml/opam@sha256:a2d14193cbcc0cfa9ce3d7a2ddfa65539a7e2a34879fdd10680fcb9a2017ecbf: Pulling from ocaml/opam
7c7778523c68: Already exists
7761868ce687: Already exists
6ab92093b356: Already exists
3f457f5bb952: Already exists
f826c7e28c0d: Already exists
6870a01388ba: Already exists
45acf0215c20: Already exists
fabf30871a0a: Already exists
5eeaf9da6ba6: Already exists
a60073d3a7ef: Already exists
5a75ce3edee6: Already exists
f0df475778c1: Already exists
b2845cf9abed: Already exists
6b32d374eaf5: Already exists
ea97784c19e4: Already exists
e93b95808560: Already exists
db14ad82a9e0: Already exists
fa9f73020fa0: Already exists
f05982243de1: Already exists
4f4fb700ef54: Already exists
acc1180f5ed4: Already exists
6dd58485c5da: Already exists
39773dff844c: Already exists
bad27291ba2f: Already exists
d68d50384e87: Already exists
200560b77191: Already exists
c3d9996446a2: Already exists
48395663a300: Already exists
a40dbacc0dcb: Already exists
2d99ad292e67: Already exists
bb2b77fb1aad: Already exists
8ab6c873bb39: Already exists
19a9e05fa251: Already exists
a721328e507f: Already exists
9d4811ef132a: Already exists
9287b75c7661: Already exists
84387a428483: Already exists
f380463763f6: Already exists
8cf65288c72e: Pulling fs layer
62f9bdfcb4c7: Pulling fs layer
5d020f12528b: Pulling fs layer
8cf65288c72e: Waiting
9854f839c8b4: Pulling fs layer
62f9bdfcb4c7: Waiting
5d020f12528b: Waiting
9854f839c8b4: Waiting
62f9bdfcb4c7: Verifying Checksum
62f9bdfcb4c7: Download complete
5d020f12528b: Verifying Checksum
5d020f12528b: Download complete
8cf65288c72e: Verifying Checksum
8cf65288c72e: Download complete
8cf65288c72e: Pull complete
62f9bdfcb4c7: Pull complete
5d020f12528b: Pull complete
9854f839c8b4: Pull complete
Digest: sha256:a2d14193cbcc0cfa9ce3d7a2ddfa65539a7e2a34879fdd10680fcb9a2017ecbf
Status: Downloaded newer image for ocaml/opam@sha256:a2d14193cbcc0cfa9ce3d7a2ddfa65539a7e2a34879fdd10680fcb9a2017ecbf
2025-12-20 10:26.07 ---> saved as "5ec7d883dbac0f1e9ef886bb7c4fd9e5abc96e6c6c5ea6c3c263270cfe935d1a"

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2025-12-20 10:26.07 ---> saved as "d35092987f57487bddf27e718edab0c4382c3934c35d03a1f9ff1f896b049f49"

/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-12-20 10:26.37 ---> saved as "44bbf63004ad83dc117cff80921c479c2c939d89fea8e4ea97b7d42367a8e7ca"

/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=opensuse-tumbleweed os-version=20251211
# 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-12-20 10:26.38 ---> saved as "ce1bf979ed66d034d61fc5e0a5fec79ee3de6b73f39ad9f3935ce917a85329d6"

/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-12-20 10:26.55 ---> saved as "927aa28188edfa06f942ff5c6a37c21da8fce3b41003c524feda8d98a4be23a2"

/home/opam: (copy (src .) (dst opam-repository/))
2025-12-20 10:27.14 ---> saved as "38b3015b45c9a7e50f216d75f9f44dd32011fa6a541366a0b2fcf2ce8bbe90b8"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-12-20 10:27.34 ---> saved as "484b96c65f0595219cc05caef1fa989f3c83243446ec8c32029da229d0ef7b69"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "zypper" "--non-interactive" "refresh"
- Repository 'openSUSE-Tumbleweed-Update' is up to date.
- Retrieving repository 'openSUSE-Tumbleweed-Non-Oss' metadata [...
- Looking for gpg keys in repository openSUSE-Tumbleweed-Non-Oss.
-   gpgkey=http://download.opensuse.org/tumbleweed/repo/non-oss/repodata/repomd.xml.key
- ...
- ....done]
- Building repository 'openSUSE-Tumbleweed-Non-Oss' cache [....done]
- Retrieving repository 'openSUSE-Tumbleweed-Oss' metadata [...
- Looking for gpg keys in repository openSUSE-Tumbleweed-Oss.
-   gpgkey=http://download.opensuse.org/tumbleweed/repo/oss/repodata/repomd.xml.key
- .....
- .........
- ...........
- ..........
- .........
- ..........
- .........
- ..........
- .........
- ......done]
- Building repository 'openSUSE-Tumbleweed-Oss' cache [..
- ..done]
- All repositories have been refreshed.
2025-12-20 10:27.50 ---> saved as "afdaf8a03f553aa18bc9431ddba0d2ad4e97d50d450817d321518b34a993b70c"

/home/opam: (run (shell "opam pin add -k version -yn ocaml-index.5.6.1-504 5.6.1-504"))
ocaml-index is now pinned to version 5.6.1-504
2025-12-20 10:27.51 ---> saved as "d393e6ac09db54d0d277088a656ce5b4583ab27d5d47c662a500e3b158ee3b63"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall ocaml-index.5.6.1-504;\
                        \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 \"\\\"opensuse-tumbleweed\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'ocaml-index.5.6.1-504' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
ocaml-index.5.6.1-504 is not installed. Install it? [Y/n] y
  * No agreement on the version of ocaml:
    - (invariant) -> ocaml-base-compiler = 4.14.2 -> ocaml = 4.14.2
    - ocaml-index >= 5.6.1-504 -> ocaml >= 5.4
    You can temporarily relax the switch invariant with `--update-invariant'
  * Incompatible packages:
    - (invariant) -> ocaml-base-compiler = 4.14.2
    - ocaml-index >= 5.6.1-504 -> ocaml >= 5.4 -> ocaml-variants >= 5.5.0~

No solution found, exiting
"/usr/bin/env" "bash" "-c" "opam reinstall ocaml-index.5.6.1-504;
        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 "\"opensuse-tumbleweed\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'ocaml-index.5.6.1-504' && 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
2025-12-20 10:28.13: Job failed: Failed: Build failed
2025-12-20 10:28.13: Log analysis:
2025-12-20 10:28.13: >>> 
No solution found, exiting
 (score = 100)
2025-12-20 10:28.13: [SKIP] Package not available