(for PR #29952)

2026-05-25 04:39.58: New job: build contract.0.1.0, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29952/head (6bd94e649fd37e846e43afa12ad324faba41e969)
                              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/29952/head" && git reset --hard 6bd94e64
git fetch origin master
git merge --no-edit 856df280428c158a5bb0b3afce1bec956b10ae6f
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:archlinux-ocaml-5.4@sha256:ea3dc7f3cb3869562d18347ec23a40ff3cfad80b25e4f3e6c12a3c05311668e8
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 contract.0.1.0 0.1.0
RUN opam reinstall contract.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 "\"archlinux\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'contract.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 .

2026-05-25 04:39.58: Using cache hint "ocaml/opam:archlinux-ocaml-5.4@sha256:ea3dc7f3cb3869562d18347ec23a40ff3cfad80b25e4f3e6c12a3c05311668e8-contract.0.1.0-6bd94e649fd37e846e43afa12ad324faba41e969"
2026-05-25 04:39.58: Using OBuilder spec:
((from ocaml/opam:archlinux-ocaml-5.4@sha256:ea3dc7f3cb3869562d18347ec23a40ff3cfad80b25e4f3e6c12a3c05311668e8)
 (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 contract.0.1.0 0.1.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall contract.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 \"\\\"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\" != 'contract.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"))
)

2026-05-25 04:39.58: Waiting for resource in pool OCluster
2026-05-25 04:39.58: Waiting for worker…
2026-05-25 04:39.59: Got resource from pool OCluster
Building on eumache.caelum.ci.dev
All commits already cached
HEAD is now at 856df28042 Merge pull request #29946 from hannesm/release-mirage-net-solo5-v0.8.1
Updating 856df28042..6bd94e649f
Fast-forward
 packages/contract/contract.0.1.0/opam | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 packages/contract/contract.0.1.0/opam

(from ocaml/opam:archlinux-ocaml-5.4@sha256:ea3dc7f3cb3869562d18347ec23a40ff3cfad80b25e4f3e6c12a3c05311668e8)
Unable to find image 'ocaml/opam:archlinux-ocaml-5.4@sha256:ea3dc7f3cb3869562d18347ec23a40ff3cfad80b25e4f3e6c12a3c05311668e8' locally
docker.io/ocaml/opam@sha256:ea3dc7f3cb3869562d18347ec23a40ff3cfad80b25e4f3e6c12a3c05311668e8: Pulling from ocaml/opam
3d6f988521c0: Pulling fs layer
43eed74326c7: Pulling fs layer
135ed0624762: Pulling fs layer
a25071350c36: Pulling fs layer
2a87cccee01b: Pulling fs layer
d99f1b3cf5b7: Pulling fs layer
0641935c4366: Pulling fs layer
93b507984233: Pulling fs layer
952a77b4912a: Pulling fs layer
f3e75a87fea8: Pulling fs layer
1ec5bd03bdc8: Pulling fs layer
a25071350c36: Waiting
2e5bd3d5d518: Pulling fs layer
2a87cccee01b: Waiting
ae9634d20299: Pulling fs layer
8dd889cf5dc6: Pulling fs layer
4f4fb700ef54: Pulling fs layer
27c1e233e965: Pulling fs layer
45ffb06c1e63: Pulling fs layer
7b2be5b93c0d: Pulling fs layer
0641935c4366: Waiting
952a77b4912a: Waiting
7b0c2d0e00e1: Pulling fs layer
a916ae3c1f3e: Pulling fs layer
4f4fb700ef54: Waiting
8dd889cf5dc6: Waiting
408e42f4e68e: Pulling fs layer
7b2be5b93c0d: Waiting
f3e75a87fea8: Waiting
93b507984233: Waiting
ae9634d20299: Waiting
6682f8b4bf31: Pulling fs layer
7b0c2d0e00e1: Waiting
a9d12aa6e52a: Pulling fs layer
408e42f4e68e: Waiting
3296f9090a6b: Pulling fs layer
6682f8b4bf31: Waiting
a916ae3c1f3e: Waiting
a9d12aa6e52a: Waiting
2c5be8107ac6: Pulling fs layer
3296f9090a6b: Waiting
ba1fa29a2f2a: Pulling fs layer
2c5be8107ac6: Waiting
321d8da7ee63: Pulling fs layer
ba1fa29a2f2a: Waiting
a0d482fc0d4a: Pulling fs layer
45ffb06c1e63: Waiting
321d8da7ee63: Waiting
1ec5bd03bdc8: Waiting
f19f80f85c90: Pulling fs layer
2e5bd3d5d518: Waiting
86718ffbcc10: Pulling fs layer
a0d482fc0d4a: Waiting
d99f1b3cf5b7: Waiting
5d922cd12b9c: Pulling fs layer
f19f80f85c90: Waiting
c2986d627008: Pulling fs layer
86718ffbcc10: Waiting
548d292ab664: Pulling fs layer
c2986d627008: Waiting
af5aa33925cf: Pulling fs layer
5d922cd12b9c: Waiting
548d292ab664: Waiting
f5827d9fd7af: Pulling fs layer
af5aa33925cf: Waiting
57207ecda0b7: Pulling fs layer
f5827d9fd7af: Waiting
f534cd4c8886: Pulling fs layer
9c22241a3c3b: Pulling fs layer
57207ecda0b7: Waiting
f534cd4c8886: Waiting
9c22241a3c3b: Waiting
43eed74326c7: Verifying Checksum
43eed74326c7: Download complete
a25071350c36: Verifying Checksum
a25071350c36: Download complete
2a87cccee01b: Verifying Checksum
2a87cccee01b: Download complete
d99f1b3cf5b7: Verifying Checksum
d99f1b3cf5b7: Download complete
135ed0624762: Verifying Checksum
135ed0624762: Download complete
3d6f988521c0: Verifying Checksum
3d6f988521c0: Download complete
93b507984233: Download complete
0641935c4366: Verifying Checksum
0641935c4366: Download complete
952a77b4912a: Verifying Checksum
952a77b4912a: Download complete
1ec5bd03bdc8: Download complete
f3e75a87fea8: Verifying Checksum
f3e75a87fea8: Download complete
2e5bd3d5d518: Verifying Checksum
2e5bd3d5d518: Download complete
ae9634d20299: Download complete
8dd889cf5dc6: Download complete
4f4fb700ef54: Download complete
27c1e233e965: Verifying Checksum
27c1e233e965: Download complete
45ffb06c1e63: Download complete
7b2be5b93c0d: Download complete
a916ae3c1f3e: Verifying Checksum
a916ae3c1f3e: Download complete
408e42f4e68e: Verifying Checksum
408e42f4e68e: Download complete
7b0c2d0e00e1: Verifying Checksum
7b0c2d0e00e1: Download complete
6682f8b4bf31: Verifying Checksum
6682f8b4bf31: Download complete
a9d12aa6e52a: Download complete
3296f9090a6b: Verifying Checksum
3296f9090a6b: Download complete
2c5be8107ac6: Download complete
ba1fa29a2f2a: Verifying Checksum
ba1fa29a2f2a: Download complete
321d8da7ee63: Verifying Checksum
321d8da7ee63: Download complete
f19f80f85c90: Verifying Checksum
f19f80f85c90: Download complete
5d922cd12b9c: Verifying Checksum
5d922cd12b9c: Download complete
c2986d627008: Verifying Checksum
c2986d627008: Download complete
548d292ab664: Verifying Checksum
548d292ab664: Download complete
a0d482fc0d4a: Verifying Checksum
a0d482fc0d4a: Download complete
86718ffbcc10: Verifying Checksum
86718ffbcc10: Download complete
57207ecda0b7: Verifying Checksum
57207ecda0b7: Download complete
f534cd4c8886: Download complete
3d6f988521c0: Pull complete
43eed74326c7: Pull complete
9c22241a3c3b: Verifying Checksum
9c22241a3c3b: Download complete
f5827d9fd7af: Verifying Checksum
f5827d9fd7af: Download complete
af5aa33925cf: Verifying Checksum
af5aa33925cf: Download complete
135ed0624762: Pull complete
a25071350c36: Pull complete
2a87cccee01b: Pull complete
d99f1b3cf5b7: Pull complete
0641935c4366: Pull complete
93b507984233: Pull complete
952a77b4912a: Pull complete
f3e75a87fea8: Pull complete
1ec5bd03bdc8: Pull complete
2e5bd3d5d518: Pull complete
ae9634d20299: Pull complete
8dd889cf5dc6: Pull complete
4f4fb700ef54: Pull complete
27c1e233e965: Pull complete
45ffb06c1e63: Pull complete
7b2be5b93c0d: Pull complete
7b0c2d0e00e1: Pull complete
a916ae3c1f3e: Pull complete
408e42f4e68e: Pull complete
6682f8b4bf31: Pull complete
a9d12aa6e52a: Pull complete
3296f9090a6b: Pull complete
2c5be8107ac6: Pull complete
ba1fa29a2f2a: Pull complete
321d8da7ee63: Pull complete
a0d482fc0d4a: Pull complete
f19f80f85c90: Pull complete
86718ffbcc10: Pull complete
5d922cd12b9c: Pull complete
c2986d627008: Pull complete
548d292ab664: Pull complete
af5aa33925cf: Pull complete
f5827d9fd7af: Pull complete
57207ecda0b7: Pull complete
f534cd4c8886: Pull complete
9c22241a3c3b: Pull complete
Digest: sha256:ea3dc7f3cb3869562d18347ec23a40ff3cfad80b25e4f3e6c12a3c05311668e8
Status: Downloaded newer image for ocaml/opam@sha256:ea3dc7f3cb3869562d18347ec23a40ff3cfad80b25e4f3e6c12a3c05311668e8
2026-05-25 04:40.30 ---> using "187a599918fdf1ee631781288dcafefa31ed189965e0184153f46ac9e150db24" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2026-05-25 04:40.30 ---> using "34e2a7c756657c540996fbe6710a25298046528ba11ffa11e5d7d86a13da8142" 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 version of opam requires an update to the layout of /home/opam/.opam from version 2.1 to version 2.2, which can't be reverted.
You may want to back it up before going further.

[NOTE] The 'jobs' option was reset, its value was 1 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=1 --global
Continue? [Y/n] y
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] no changes from git+file:///home/opam/opam-repository
2026-05-25 04:40.30 ---> using "189c86e3ba476dd88acdddd3a5af1ad90111c2bb4bcbb76bb7787c72f3da9232" 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.5.1
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=arch os-version=20260510.0.525573
# 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.1"}]
# compiler-packages    ocaml-base-compiler.5.4.1, ocaml-compiler.5.4.1, 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.1
2026-05-25 04:40.30 ---> using "36f112a458c6b801af3d128ce34e5aac9eac35b983c89d4e57cf97559c906789" 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/"))
2026-05-25 04:40.30 ---> using "c46e737996fa62283d167b02f237137afc5ad84e80ab935e04ddaae60be96078" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2026-05-25 04:40.39 ---> saved as "a2017ea9a659f4463dba7d93387f7f40a74177ce64e49c225a166ec7e3d434f5"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2026-05-25 04:40.51 ---> saved as "50acbd680fa70e7fb2fa22fa8589da158f20382c97b65f8983e1d12ab744de16"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/sbin/sudo "pacman" "-Sy"
- :: Synchronizing package databases...
-  core downloading...
-  extra downloading...
2026-05-25 04:41.01 ---> saved as "6d4b22b61ef6914e619e25c0246ee8b407ba2a1f3f306ff3ef893a1da17a2290"

/home/opam: (run (shell "opam pin add -k version -yn contract.0.1.0 0.1.0"))
contract is now pinned to version 0.1.0
2026-05-25 04:41.02 ---> saved as "019d7ea2482c71556fcce3f621c2bc81f3ecc1a27e4a73774e7d88fdc15c2932"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall contract.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 \"\\\"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\" != 'contract.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"))
contract.0.1.0 is not installed. Install it? [Y/n] y
The following actions will be performed:
=== install 3 packages
  ∗ contract 0.1.0 (pinned)
  ∗ dune     3.23.1         [required by contract]
  ∗ yojson   3.0.0          [required by contract]

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
⬇ retrieved contract.0.1.0  (https://github.com/funwithcthulhu/contract/archive/refs/tags/0.1.0.tar.gz)
⬇ retrieved dune.3.23.1  (cached)
⬇ retrieved yojson.3.0.0  (cached)
∗ installed dune.3.23.1
∗ installed yojson.3.0.0
∗ installed contract.0.1.0
Done.
# To update the current shell environment, run: eval $(opam env)
2026-05-25 04:41.43 ---> saved as "838bc8adeb54c4a9a25edf34fc302564b5a0609697a8362f9ea19400f39b2f31"
Job succeeded
2026-05-25 04:41.47: Job succeeded