(for PR #29248)

2026-01-19 18:14.36: New job: build ambient-context.0.1.1, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29248/head (9d61e8a449aa2436cbd9b390c4afa6b47e8ed0ba)
                              on centos-10-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/29248/head" && git reset --hard 9d61e8a4
git fetch origin master
git merge --no-edit 39960ffbaf3e5b50a1e354d4c99bfecc01e358ca
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:centos-10-ocaml-5.4@sha256:c17f277bfdb5ce974e215efc418394d65afe1e9baf8b1f97b1443064136eb2f0
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 ambient-context.0.1.1 0.1.1
RUN opam reinstall ambient-context.0.1.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-10\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'ambient-context.0.1.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-01-19 18:14.36: Using cache hint "ocaml/opam:centos-10-ocaml-5.4@sha256:c17f277bfdb5ce974e215efc418394d65afe1e9baf8b1f97b1443064136eb2f0-ambient-context.0.1.1-9d61e8a449aa2436cbd9b390c4afa6b47e8ed0ba"
2026-01-19 18:14.36: Using OBuilder spec:
((from ocaml/opam:centos-10-ocaml-5.4@sha256:c17f277bfdb5ce974e215efc418394d65afe1e9baf8b1f97b1443064136eb2f0)
 (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 ambient-context.0.1.1 0.1.1"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall ambient-context.0.1.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-10\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'ambient-context.0.1.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-01-19 18:14.36: Waiting for resource in pool OCluster
2026-01-19 18:14.37: Waiting for worker…
2026-01-19 18:14.45: Got resource from pool OCluster
Building on asteria.caelum.ci.dev
All commits already cached
HEAD is now at 39960ffbaf Merge pull request #29193 from recoules/release-binsec-0.11.0
Updating 39960ffbaf..9d61e8a449
Fast-forward
 .../ambient-context-eio.0.1.1/opam                 | 42 +++++++++++++++++++++
 .../ambient-context-lwt.0.1.1/opam                 | 42 +++++++++++++++++++++
 .../ambient-context/ambient-context.0.1.1/opam     | 43 ++++++++++++++++++++++
 3 files changed, 127 insertions(+)
 create mode 100644 packages/ambient-context-eio/ambient-context-eio.0.1.1/opam
 create mode 100644 packages/ambient-context-lwt/ambient-context-lwt.0.1.1/opam
 create mode 100644 packages/ambient-context/ambient-context.0.1.1/opam

(from ocaml/opam:centos-10-ocaml-5.4@sha256:c17f277bfdb5ce974e215efc418394d65afe1e9baf8b1f97b1443064136eb2f0)
Unable to find image 'ocaml/opam:centos-10-ocaml-5.4@sha256:c17f277bfdb5ce974e215efc418394d65afe1e9baf8b1f97b1443064136eb2f0' locally
docker.io/ocaml/opam@sha256:c17f277bfdb5ce974e215efc418394d65afe1e9baf8b1f97b1443064136eb2f0: Pulling from ocaml/opam
d897ea1522f3: Already exists
956670845d9e: Pulling fs layer
0fa47a9454e6: Pulling fs layer
d69d804f204c: Pulling fs layer
f62c547b8ee0: Pulling fs layer
c8c663c962b6: Pulling fs layer
d69d804f204c: Waiting
c8c663c962b6: Waiting
f62c547b8ee0: Waiting
956670845d9e: Verifying Checksum
956670845d9e: Download complete
956670845d9e: Pull complete
d69d804f204c: Download complete
f62c547b8ee0: Download complete
c8c663c962b6: Download complete
0fa47a9454e6: Verifying Checksum
0fa47a9454e6: Download complete
0fa47a9454e6: Pull complete
d69d804f204c: Pull complete
f62c547b8ee0: Pull complete
c8c663c962b6: Pull complete
Digest: sha256:c17f277bfdb5ce974e215efc418394d65afe1e9baf8b1f97b1443064136eb2f0
Status: Downloaded newer image for ocaml/opam@sha256:c17f277bfdb5ce974e215efc418394d65afe1e9baf8b1f97b1443064136eb2f0
2026-01-19 18:17.28 ---> saved as "a8eedf93348ad63ddfde6541c40fc5d9d1eeedd4141bcb2a30da4688374d1e94"

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2026-01-19 18:17.28 ---> saved as "92e77c467c14e5fa7088294ab3a881294e793855b7fd75e0c02adf37f5360120"

/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
[NOTE] The 'jobs' option was reset, its value was 71 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=71 --global
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2026-01-19 18:17.53 ---> saved as "0e301bb300f703eaeaf41ee92411abab3589e5ed985c86ab55d6e4d970452d9b"

/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=10
# 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
2026-01-19 18:17.54 ---> saved as "3ce4f500636b3e2bd697cce39a72a2a34661ded684d12bfcd163728807b4d0f3"

/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-01-19 18:18.07 ---> saved as "6f545a46bedcdeeb9c47f268c5e20c799a1fd351b12697bfdb51d33230a18fe1"

/home/opam: (copy (src .) (dst opam-repository/))
2026-01-19 18:19.01 ---> saved as "476fe26dd48e62727586d308c468ba8e53c2defb2c4878adceb6ac0e67888c90"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2026-01-19 18:19.20 ---> saved as "6c0f7f81de5ee9db70f231c40cde23cbc825cc6863d471b64e971fc8888cdc4a"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "yum" "makecache"
- CentOS Stream 10 - BaseOS                        55 kB/s |  14 kB     00:00    
Fatal error: System package update failed with exit code 1 at command:
    sudo yum makecache
- CentOS Stream 10 - BaseOS                       292  B/s | 3.9 kB     00:13    
- Errors during downloading metadata for repository 'baseos':
-   - Downloading successful, but checksum doesn't match. Calculated: 70ab77b42becc0d5a5053f26e821932f533f11a7f4b85bc5b34e88aa727a2ee09d37b479662357b2f22e0ca89905cae350f22166248e4db630cc50eace2e5d43(sha512)  Expected: 935a9946fc41ff7383c6c2a2fd0c43f91ebe56fa5ff0779a60e2e7203198e88ef51aac0a98d7681dd1fec1982448d54147cdc0862df236572d6238f4a78c0a1a(sha512) 
- Error: Failed to download metadata for repo 'baseos': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
2026-01-19 18:19.34 ---> saved as "0dd6163fcd9a4b0ba035a9a3b3b3b5f9ef79a3807955a34fad812a870df22581"

/home/opam: (run (shell "opam pin add -k version -yn ambient-context.0.1.1 0.1.1"))
ambient-context is now pinned to version 0.1.1
2026-01-19 18:19.35 ---> saved as "786e485a7211a4cc0a4fb92fa6523ad3c97279060b53766ef7cdb006da1e55a3"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall ambient-context.0.1.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-10\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'ambient-context.0.1.1' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
ambient-context.0.1.1 is not installed. Install it? [Y/n] y
The following actions will be performed:
=== install 2 packages
  - install ambient-context 0.1.1 (pinned)
  - install dune            3.21.0         [required by ambient-context]

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved ambient-context.0.1.1  (cached)
-> retrieved dune.3.21.0  (cached)
-> installed dune.3.21.0
-> installed ambient-context.0.1.1
Done.
# To update the current shell environment, run: eval $(opam env)
2026-01-19 18:20.03 ---> saved as "52eca650ebbff6dc5110b1204673f0401a8da64acf5552548803c9864995199d"
Job succeeded
2026-01-19 18:20.37: Job succeeded