(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 archlinux-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/29117/head" && git reset --hard c3b5c549
git fetch origin master
git merge --no-edit 55b1099664cdc48c71e3d01d8fdaef4b376ade70
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:archlinux-ocaml-5.4@sha256:04982136c30ae913e66371bf586b53508972ad99b1b2c5235e8afa1acc8237dc
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 "\"archlinux\""; 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:archlinux-ocaml-5.4@sha256:04982136c30ae913e66371bf586b53508972ad99b1b2c5235e8afa1acc8237dc-ocaml-index.5.6.1-504-c3b5c54904ea4308c605e1c3272dbdeb71bfdb08"
2025-12-20 10:17.06: Using OBuilder spec:
((from ocaml/opam:archlinux-ocaml-5.4@sha256:04982136c30ae913e66371bf586b53508972ad99b1b2c5235e8afa1acc8237dc)
 (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 \"\\\"archlinux\\\"\"; 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.09: Waiting for worker…
2025-12-20 10:22.04: 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:archlinux-ocaml-5.4@sha256:04982136c30ae913e66371bf586b53508972ad99b1b2c5235e8afa1acc8237dc)
Unable to find image 'ocaml/opam:archlinux-ocaml-5.4@sha256:04982136c30ae913e66371bf586b53508972ad99b1b2c5235e8afa1acc8237dc' locally
docker.io/ocaml/opam@sha256:04982136c30ae913e66371bf586b53508972ad99b1b2c5235e8afa1acc8237dc: Pulling from ocaml/opam
a59b1e251b85: Pulling fs layer
849b0775ea0f: Pulling fs layer
dee5dc789dd8: Pulling fs layer
ad8f77a22e66: Pulling fs layer
6fd135abcd3e: Pulling fs layer
f49481a35f26: Pulling fs layer
422f2e46c0b2: Pulling fs layer
3b0e3b2b1672: Pulling fs layer
a59b1e251b85: Waiting
ad8f77a22e66: Waiting
dee5dc789dd8: Waiting
849b0775ea0f: Waiting
6fd135abcd3e: Waiting
f49481a35f26: Waiting
422f2e46c0b2: Waiting
3b0e3b2b1672: Waiting
cc3840998ae9: Pulling fs layer
13b46abdddf4: Pulling fs layer
87ed69d9e85f: Pulling fs layer
c4ae768c6121: Pulling fs layer
13b46abdddf4: Waiting
87ed69d9e85f: Waiting
779a7bb535da: Pulling fs layer
e5ee7c8dfef7: Pulling fs layer
c4ae768c6121: Waiting
779a7bb535da: Waiting
3cc69d026244: Pulling fs layer
4f4fb700ef54: Pulling fs layer
e5ee7c8dfef7: Waiting
3cc69d026244: Waiting
5811d2d37379: Pulling fs layer
4f4fb700ef54: Waiting
ca80c580d61a: Pulling fs layer
5811d2d37379: Waiting
712e2954fafd: Pulling fs layer
7ed08823dab3: Pulling fs layer
ca80c580d61a: Waiting
712e2954fafd: Waiting
74e1916f52e7: Pulling fs layer
5f4fb05914a8: Pulling fs layer
7ed08823dab3: Waiting
74e1916f52e7: Waiting
35849ba7bf61: Pulling fs layer
5f4fb05914a8: Waiting
fccf1ee4824b: Pulling fs layer
35849ba7bf61: Waiting
3771ac745c7a: Pulling fs layer
fccf1ee4824b: Waiting
058f96b6885b: Pulling fs layer
a9808004b394: Pulling fs layer
3771ac745c7a: Waiting
058f96b6885b: Waiting
94676de38f20: Pulling fs layer
a9808004b394: Waiting
f77541f83f3d: Pulling fs layer
a61d5a095db8: Pulling fs layer
94676de38f20: Waiting
e60ab9471c6a: Pulling fs layer
f77541f83f3d: Waiting
1e9ab255cf83: Pulling fs layer
a61d5a095db8: Waiting
e60ab9471c6a: Waiting
496e313808c8: Pulling fs layer
7dc23e7a5631: Pulling fs layer
3f90dfd28e67: Pulling fs layer
1e9ab255cf83: Waiting
36e46f8f42ff: Pulling fs layer
496e313808c8: Waiting
3f90dfd28e67: Waiting
7dc23e7a5631: Waiting
4c9fbb718eae: Pulling fs layer
c348501699c6: Pulling fs layer
36e46f8f42ff: Waiting
b30a48fde8c2: Pulling fs layer
c348501699c6: Waiting
4c9fbb718eae: Waiting
b30a48fde8c2: Waiting
a59b1e251b85: Verifying Checksum
a59b1e251b85: Download complete
849b0775ea0f: Verifying Checksum
849b0775ea0f: Download complete
ad8f77a22e66: Verifying Checksum
ad8f77a22e66: Download complete
6fd135abcd3e: Verifying Checksum
6fd135abcd3e: Download complete
f49481a35f26: Verifying Checksum
f49481a35f26: Download complete
422f2e46c0b2: Verifying Checksum
422f2e46c0b2: Download complete
cc3840998ae9: Verifying Checksum
cc3840998ae9: Download complete
3b0e3b2b1672: Verifying Checksum
3b0e3b2b1672: Download complete
13b46abdddf4: Verifying Checksum
13b46abdddf4: Download complete
c4ae768c6121: Download complete
779a7bb535da: Verifying Checksum
779a7bb535da: Download complete
87ed69d9e85f: Verifying Checksum
87ed69d9e85f: Download complete
e5ee7c8dfef7: Verifying Checksum
e5ee7c8dfef7: Download complete
dee5dc789dd8: Verifying Checksum
dee5dc789dd8: Download complete
3cc69d026244: Download complete
4f4fb700ef54: Verifying Checksum
4f4fb700ef54: Download complete
5811d2d37379: Verifying Checksum
5811d2d37379: Download complete
ca80c580d61a: Verifying Checksum
ca80c580d61a: Download complete
7ed08823dab3: Download complete
712e2954fafd: Download complete
74e1916f52e7: Verifying Checksum
74e1916f52e7: Download complete
35849ba7bf61: Download complete
5f4fb05914a8: Verifying Checksum
5f4fb05914a8: Download complete
fccf1ee4824b: Download complete
a9808004b394: Download complete
058f96b6885b: Verifying Checksum
058f96b6885b: Download complete
3771ac745c7a: Verifying Checksum
3771ac745c7a: Download complete
94676de38f20: Verifying Checksum
94676de38f20: Download complete
a61d5a095db8: Download complete
1e9ab255cf83: Verifying Checksum
1e9ab255cf83: Download complete
a59b1e251b85: Pull complete
849b0775ea0f: Pull complete
496e313808c8: Download complete
7dc23e7a5631: Verifying Checksum
7dc23e7a5631: Download complete
e60ab9471c6a: Verifying Checksum
e60ab9471c6a: Download complete
3f90dfd28e67: Verifying Checksum
3f90dfd28e67: Download complete
4c9fbb718eae: Verifying Checksum
4c9fbb718eae: Download complete
c348501699c6: Verifying Checksum
c348501699c6: Download complete
b30a48fde8c2: Verifying Checksum
b30a48fde8c2: Download complete
f77541f83f3d: Verifying Checksum
f77541f83f3d: Download complete
36e46f8f42ff: Verifying Checksum
36e46f8f42ff: Download complete
dee5dc789dd8: Pull complete
ad8f77a22e66: Pull complete
6fd135abcd3e: Pull complete
f49481a35f26: Pull complete
422f2e46c0b2: Pull complete
3b0e3b2b1672: Pull complete
cc3840998ae9: Pull complete
13b46abdddf4: Pull complete
87ed69d9e85f: Pull complete
c4ae768c6121: Pull complete
779a7bb535da: Pull complete
e5ee7c8dfef7: Pull complete
3cc69d026244: Pull complete
4f4fb700ef54: Pull complete
5811d2d37379: Pull complete
ca80c580d61a: Pull complete
712e2954fafd: Pull complete
7ed08823dab3: Pull complete
74e1916f52e7: Pull complete
5f4fb05914a8: Pull complete
35849ba7bf61: Pull complete
fccf1ee4824b: Pull complete
3771ac745c7a: Pull complete
058f96b6885b: Pull complete
a9808004b394: Pull complete
94676de38f20: Pull complete
f77541f83f3d: Pull complete
a61d5a095db8: Pull complete
e60ab9471c6a: Pull complete
1e9ab255cf83: Pull complete
496e313808c8: Pull complete
7dc23e7a5631: Pull complete
3f90dfd28e67: Pull complete
36e46f8f42ff: Pull complete
4c9fbb718eae: Pull complete
c348501699c6: Pull complete
b30a48fde8c2: Pull complete
Digest: sha256:04982136c30ae913e66371bf586b53508972ad99b1b2c5235e8afa1acc8237dc
Status: Downloaded newer image for ocaml/opam@sha256:04982136c30ae913e66371bf586b53508972ad99b1b2c5235e8afa1acc8237dc
2025-12-20 10:26.07 ---> saved as "8f70aa6204c467c667cb97679754d486a9cb695ba6f6b0da3b5b87ad349ca00d"

/: (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 "2c739950585bedccd80035701129df2b2311529217332942006fd683e884b22e"

/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 "5c4fd856cfbab3e245ae5cc22fbe6ce12407531fac0c309af1b09b79373203de"

/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=arch os-version=20251019.0.436919
# 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       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
2025-12-20 10:26.38 ---> saved as "3dfd92b7ad0b0cf53d0d472cb8ef45b8fb07ee4cbc05490fac6da29c4580a468"

/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:27.00 ---> saved as "d01cd0509cf4e0f06522cd6c7ff7d9d5da26e319090c221787981337e93b4820"

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

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

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/sbin/sudo "pacman" "-Sy"
- :: Synchronizing package databases...
-  core downloading...
-  extra downloading...
2025-12-20 10:27.35 ---> saved as "d90039e4f6e47e3194410de67786194ac18a8bfdade7255d4be6533fd75d379c"

/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.35 ---> saved as "a307703da10d1f1a951cf079c791c843bc43baef8f515efc755d2e5ca5cb3a5a"

/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 \"\\\"archlinux\\\"\"; 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
The following actions will be performed:
=== install 4 packages
  ∗ csexp       1.5.2              [required by merlin-lib]
  ∗ dune        3.20.2             [required by ocaml-index]
  ∗ merlin-lib  5.6.1-504          [required by ocaml-index]
  ∗ ocaml-index 5.6.1-504 (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
⬇ retrieved csexp.1.5.2  (cached)
⬇ retrieved dune.3.20.2  (cached)
⬇ retrieved merlin-lib.5.6.1-504, ocaml-index.5.6.1-504  (cached)
∗ installed dune.3.20.2
∗ installed csexp.1.5.2
∗ installed merlin-lib.5.6.1-504
∗ installed ocaml-index.5.6.1-504
Done.
# To update the current shell environment, run: eval $(opam env)
2025-12-20 10:28.15 ---> saved as "c5cd79fe5bbc090cbe231f7d6b8a7aae1823a74e98cd2b6b8122d7b1d4a1c286"
Job succeeded
2025-12-20 10:28.25: Job succeeded