(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 debian-unstable-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:debian-unstable-ocaml-5.4@sha256:a5a8d9093619faf17b2a7115c41cb0ec925e867fe031aadbb0f1635650a70cf9
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 "\"debian-unstable\""; 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:debian-unstable-ocaml-5.4@sha256:a5a8d9093619faf17b2a7115c41cb0ec925e867fe031aadbb0f1635650a70cf9-ambient-context.0.1.1-9d61e8a449aa2436cbd9b390c4afa6b47e8ed0ba"
2026-01-19 18:14.36: Using OBuilder spec:
((from ocaml/opam:debian-unstable-ocaml-5.4@sha256:a5a8d9093619faf17b2a7115c41cb0ec925e867fe031aadbb0f1635650a70cf9)
 (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 \"\\\"debian-unstable\\\"\"; 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.41: Got resource from pool OCluster
Building on odawa.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:debian-unstable-ocaml-5.4@sha256:a5a8d9093619faf17b2a7115c41cb0ec925e867fe031aadbb0f1635650a70cf9)
Unable to find image 'ocaml/opam:debian-unstable-ocaml-5.4@sha256:a5a8d9093619faf17b2a7115c41cb0ec925e867fe031aadbb0f1635650a70cf9' locally
docker.io/ocaml/opam@sha256:a5a8d9093619faf17b2a7115c41cb0ec925e867fe031aadbb0f1635650a70cf9: Pulling from ocaml/opam
8e36c1fbb8f9: Already exists
c20c78184d0b: Already exists
0ab87efdff82: Already exists
c7b76e160f19: Already exists
0f33b0437075: Already exists
44cfe50ed87a: Already exists
3d8bc88e8e4c: Already exists
031ad32a4764: Already exists
295120677902: Already exists
cabfd3ab2227: Already exists
3ec86e62252b: Already exists
f2d973a9ea0c: Already exists
e142f6d653d9: Already exists
bfa8af2cae08: Already exists
2fb4252d438b: Already exists
3dc003ec4a15: Already exists
a1c5fc4b0323: Already exists
a1c5fc4b0323: Already exists
27c2974c0836: Already exists
0adec8edeba9: Already exists
1ee2afe62a1f: Already exists
320d8966c06c: Already exists
4f4fb700ef54: Already exists
6f46e7a21dfb: Already exists
75f876a0c9c9: Already exists
7adc49118e74: Already exists
6fa679934aac: Already exists
3c2cea696b77: Already exists
946ea8df89a5: Already exists
ea4ceee206ec: Already exists
af006056acfa: Already exists
f2f172888897: Already exists
b9eb7fecff88: Already exists
4f6f96a895ac: Already exists
37ea2e18a637: Already exists
1973f0a82dbc: Already exists
89bfe5027abd: Already exists
3618e70065f5: Already exists
f559d3f65047: Already exists
9de533cb491e: Already exists
f28ff1d1a83b: Already exists
01594d191918: Pulling fs layer
63f5edccddc5: Pulling fs layer
01594d191918: Waiting
57639f805c37: Pulling fs layer
63f5edccddc5: Waiting
c497f5a0273b: Pulling fs layer
57639f805c37: Waiting
f8e78355b81e: Pulling fs layer
c497f5a0273b: Waiting
6845ddad7894: Pulling fs layer
99ab32625f27: Pulling fs layer
99ab32625f27: Waiting
f8e78355b81e: Waiting
6845ddad7894: Waiting
01594d191918: Verifying Checksum
01594d191918: Download complete
01594d191918: Pull complete
63f5edccddc5: Verifying Checksum
63f5edccddc5: Download complete
63f5edccddc5: Pull complete
57639f805c37: Verifying Checksum
57639f805c37: Download complete
57639f805c37: Pull complete
c497f5a0273b: Verifying Checksum
c497f5a0273b: Download complete
f8e78355b81e: Verifying Checksum
f8e78355b81e: Download complete
6845ddad7894: Verifying Checksum
6845ddad7894: Download complete
c497f5a0273b: Pull complete
f8e78355b81e: Pull complete
6845ddad7894: Pull complete
99ab32625f27: Verifying Checksum
99ab32625f27: Download complete
99ab32625f27: Pull complete
Digest: sha256:a5a8d9093619faf17b2a7115c41cb0ec925e867fe031aadbb0f1635650a70cf9
Status: Downloaded newer image for ocaml/opam@sha256:a5a8d9093619faf17b2a7115c41cb0ec925e867fe031aadbb0f1635650a70cf9
2026-01-19 18:16.33 ---> using "9c22505434ca87c69f258589f4b6f66546def8f55e936e12dc50458c76224a9d" 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-01-19 18:16.33 ---> using "4c6e903c9e5e5c1fcbbffb98046295f286734e7f85a5541cce2f173bfe78e5fe" 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.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-01-19 18:16.33 ---> using "ce012fbc42ebe88e766017c024d47597bc6e3fedb32bce51eb287c6eabcbcf76" 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.0
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=debian os-version=unknown
# 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:16.33 ---> using "5308975b48fa55f23aabc053d45c3bcc7717e8ce6cd73bf740219045f9a3f066" 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-01-19 18:16.33 ---> using "9b2d42dddbf79c4309f8abd4ba83d820895471638bd8635284014a328ed658f3" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2026-01-19 18:16.37 ---> saved as "5e7f4549697fbca03bd2ed6e898b1e410289f02b69a83ef56dee525fd6c7d4d8"

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

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Get:1 http://deb.debian.org/debian unstable InRelease [187 kB]
- Get:2 http://deb.debian.org/debian unstable/main amd64 Packages.diff/Index [63.6 kB]
- Get:3 http://deb.debian.org/debian unstable/main amd64 Packages T-2026-01-19-1447.19-F-2026-01-16-2009.15.pdiff [666 kB]
- Get:3 http://deb.debian.org/debian unstable/main amd64 Packages T-2026-01-19-1447.19-F-2026-01-16-2009.15.pdiff [666 kB]
- Fetched 917 kB in 1s (648 kB/s)
- Reading package lists...
2026-01-19 18:16.56 ---> saved as "2b8aed0b2c69a326ffcf047ef87163e09354c8df6906884902e9ec25260a0562"

/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:16.57 ---> saved as "ebe2f83067d655c32342b2d3135ef9545c5c83221d931423660e0c3e7feca680"

/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 \"\\\"debian-unstable\\\"\"; 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:17.20 ---> saved as "bc85d80ba7221338c234d1ae0624cd50c1580266b4d490bf2549fe0688fe7020"
Job succeeded
2026-01-19 18:17.27: Job succeeded