(for PR #29248)

2026-01-19 18:14.36: New job: build ambient-context-lwt.0.1.1, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29248/head (9d61e8a449aa2436cbd9b390c4afa6b47e8ed0ba)
                              on debian-13-ocaml-4.09/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-13-ocaml-4.09@sha256:dad58ff31835ec6933b5e094aa2c4bba49eb1402565d0106c6db595ef539a0d7
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-lwt.0.1.1 0.1.1
RUN opam reinstall ambient-context-lwt.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-13\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'ambient-context-lwt.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-13-ocaml-4.09@sha256:dad58ff31835ec6933b5e094aa2c4bba49eb1402565d0106c6db595ef539a0d7-ambient-context-lwt.0.1.1-9d61e8a449aa2436cbd9b390c4afa6b47e8ed0ba"
2026-01-19 18:14.36: Using OBuilder spec:
((from ocaml/opam:debian-13-ocaml-4.09@sha256:dad58ff31835ec6933b5e094aa2c4bba49eb1402565d0106c6db595ef539a0d7)
 (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-lwt.0.1.1 0.1.1"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall ambient-context-lwt.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-13\\\"\"; 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-lwt.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.37: Got resource from pool OCluster
Building on toxis.caelum.ci.dev
HEAD is now at 50f45d837b Release patricia-tree.0.12.0
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-13-ocaml-4.09@sha256:dad58ff31835ec6933b5e094aa2c4bba49eb1402565d0106c6db595ef539a0d7)
Unable to find image 'ocaml/opam:debian-13-ocaml-4.09@sha256:dad58ff31835ec6933b5e094aa2c4bba49eb1402565d0106c6db595ef539a0d7' locally
docker.io/ocaml/opam@sha256:dad58ff31835ec6933b5e094aa2c4bba49eb1402565d0106c6db595ef539a0d7: Pulling from ocaml/opam
2ca1bfae7ba8: Pulling fs layer
3baeae2ed4cf: Pulling fs layer
b254ca288623: Pulling fs layer
745976a04e35: Pulling fs layer
a516242b2337: Pulling fs layer
9bb526cd9631: Pulling fs layer
3737e8f76884: Pulling fs layer
6a8811ebcb2c: Pulling fs layer
386dffb80382: Pulling fs layer
e04d691eea35: Pulling fs layer
bb72c0d1c3f0: Pulling fs layer
745976a04e35: Waiting
3a56fcb872cd: Pulling fs layer
3737e8f76884: Waiting
5abffa2313de: Pulling fs layer
a516242b2337: Waiting
7ed80bc2b055: Pulling fs layer
87c92835260d: Pulling fs layer
9bb526cd9631: Waiting
386dffb80382: Waiting
e04d691eea35: Waiting
bb72c0d1c3f0: Waiting
6a8811ebcb2c: Waiting
5624e0ee5ca5: Pulling fs layer
3a56fcb872cd: Waiting
96e54dc9b357: Pulling fs layer
5abffa2313de: Waiting
7ed80bc2b055: Waiting
96e54dc9b357: Waiting
7c484d393436: Pulling fs layer
5624e0ee5ca5: Waiting
16b8d7610542: Pulling fs layer
c5ac47ffe6ef: Pulling fs layer
7c484d393436: Waiting
16b8d7610542: Waiting
00cfb259c8ac: Pulling fs layer
4f4fb700ef54: Pulling fs layer
4658a16b5264: Pulling fs layer
7c82a6a00032: Pulling fs layer
b76e2612fc73: Pulling fs layer
00cfb259c8ac: Waiting
4658a16b5264: Waiting
da0741a07551: Pulling fs layer
102a21125d73: Pulling fs layer
b76e2612fc73: Waiting
d244b294335f: Pulling fs layer
102a21125d73: Waiting
e47a432b94fb: Pulling fs layer
6ee7cce1e23d: Pulling fs layer
d244b294335f: Waiting
e47a432b94fb: Waiting
2475e9cbd3e5: Pulling fs layer
6ee7cce1e23d: Waiting
4f8aac8ae1e5: Pulling fs layer
3e59226f7823: Pulling fs layer
2475e9cbd3e5: Waiting
4f8aac8ae1e5: Waiting
6d429b9a6ce7: Pulling fs layer
dc8bbbd9edf9: Pulling fs layer
3e59226f7823: Waiting
6d429b9a6ce7: Waiting
dc8bbbd9edf9: Waiting
66ec5629681d: Pulling fs layer
74661ee64965: Pulling fs layer
b3088c441ac7: Pulling fs layer
66ec5629681d: Waiting
11be3e645e01: Pulling fs layer
b3088c441ac7: Waiting
e9a0ff031006: Pulling fs layer
11be3e645e01: Waiting
eed5d4739172: Pulling fs layer
e9a0ff031006: Waiting
428142c12063: Pulling fs layer
9e1d883976ea: Pulling fs layer
428142c12063: Waiting
eed5d4739172: Waiting
f756efec0e3d: Pulling fs layer
9e1d883976ea: Waiting
f756efec0e3d: Waiting
3baeae2ed4cf: Verifying Checksum
3baeae2ed4cf: Download complete
b254ca288623: Verifying Checksum
b254ca288623: Download complete
a516242b2337: Download complete
2ca1bfae7ba8: Verifying Checksum
2ca1bfae7ba8: Download complete
3737e8f76884: Verifying Checksum
3737e8f76884: Download complete
6a8811ebcb2c: Verifying Checksum
6a8811ebcb2c: Download complete
2ca1bfae7ba8: Pull complete
3baeae2ed4cf: Pull complete
b254ca288623: Pull complete
386dffb80382: Verifying Checksum
386dffb80382: Download complete
e04d691eea35: Verifying Checksum
e04d691eea35: Download complete
bb72c0d1c3f0: Verifying Checksum
bb72c0d1c3f0: Download complete
3a56fcb872cd: Verifying Checksum
3a56fcb872cd: Download complete
5abffa2313de: Verifying Checksum
5abffa2313de: Download complete
745976a04e35: Verifying Checksum
745976a04e35: Download complete
7ed80bc2b055: Verifying Checksum
7ed80bc2b055: Download complete
5624e0ee5ca5: Verifying Checksum
5624e0ee5ca5: Download complete
87c92835260d: Download complete
745976a04e35: Pull complete
a516242b2337: Pull complete
7c484d393436: Verifying Checksum
7c484d393436: Download complete
16b8d7610542: Verifying Checksum
16b8d7610542: Download complete
96e54dc9b357: Verifying Checksum
96e54dc9b357: Download complete
c5ac47ffe6ef: Download complete
00cfb259c8ac: Verifying Checksum
00cfb259c8ac: Download complete
4f4fb700ef54: Download complete
4658a16b5264: Verifying Checksum
4658a16b5264: Download complete
7c82a6a00032: Verifying Checksum
7c82a6a00032: Download complete
b76e2612fc73: Verifying Checksum
102a21125d73: Download complete
d244b294335f: Download complete
e47a432b94fb: Verifying Checksum
e47a432b94fb: Download complete
da0741a07551: Verifying Checksum
da0741a07551: Download complete
6ee7cce1e23d: Download complete
2475e9cbd3e5: Verifying Checksum
2475e9cbd3e5: Download complete
4f8aac8ae1e5: Verifying Checksum
4f8aac8ae1e5: Download complete
6d429b9a6ce7: Verifying Checksum
6d429b9a6ce7: Download complete
3e59226f7823: Verifying Checksum
3e59226f7823: Download complete
66ec5629681d: Verifying Checksum
66ec5629681d: Download complete
dc8bbbd9edf9: Verifying Checksum
dc8bbbd9edf9: Download complete
b3088c441ac7: Download complete
11be3e645e01: Verifying Checksum
11be3e645e01: Download complete
e9a0ff031006: Verifying Checksum
e9a0ff031006: Download complete
eed5d4739172: Verifying Checksum
eed5d4739172: Download complete
428142c12063: Verifying Checksum
428142c12063: Download complete
9e1d883976ea: Verifying Checksum
9e1d883976ea: Download complete
f756efec0e3d: Verifying Checksum
f756efec0e3d: Download complete
9bb526cd9631: Download complete
9bb526cd9631: Pull complete
3737e8f76884: Pull complete
6a8811ebcb2c: Pull complete
386dffb80382: Pull complete
e04d691eea35: Pull complete
bb72c0d1c3f0: Pull complete
3a56fcb872cd: Pull complete
74661ee64965: Verifying Checksum
74661ee64965: Download complete
5abffa2313de: Pull complete
7ed80bc2b055: Pull complete
87c92835260d: Pull complete
5624e0ee5ca5: Pull complete
96e54dc9b357: Pull complete
7c484d393436: Pull complete
16b8d7610542: Pull complete
c5ac47ffe6ef: Pull complete
00cfb259c8ac: Pull complete
4f4fb700ef54: Pull complete
4658a16b5264: Pull complete
7c82a6a00032: Pull complete
b76e2612fc73: Pull complete
da0741a07551: Pull complete
102a21125d73: Pull complete
d244b294335f: Pull complete
e47a432b94fb: Pull complete
6ee7cce1e23d: Pull complete
2475e9cbd3e5: Pull complete
4f8aac8ae1e5: Pull complete
3e59226f7823: Pull complete
6d429b9a6ce7: Pull complete
dc8bbbd9edf9: Pull complete
66ec5629681d: Pull complete
74661ee64965: Pull complete
b3088c441ac7: Pull complete
11be3e645e01: Pull complete
e9a0ff031006: Pull complete
eed5d4739172: Pull complete
428142c12063: Pull complete
9e1d883976ea: Pull complete
f756efec0e3d: Pull complete
Digest: sha256:dad58ff31835ec6933b5e094aa2c4bba49eb1402565d0106c6db595ef539a0d7
Status: Downloaded newer image for ocaml/opam@sha256:dad58ff31835ec6933b5e094aa2c4bba49eb1402565d0106c6db595ef539a0d7
2026-01-19 18:14.40 ---> using "c32a5c78c36078ec5a7a48d51038f3e3d45c634549e9ab9c7e0955e860972789" 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:14.40 ---> using "bed6fbf8b428f4f1ac17f7727fbfef362720bc7feda359f7ec155d9e04d4b4e5" 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:14.40 ---> using "8d7b92f60a53ab184d32b87569a1dd6ac046c3f3cc22e86bac48de8e76be088f" 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=13
# 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       4.09
# invariant            ["ocaml-base-compiler" {= "4.09.1"}]
# compiler-packages    ocaml-base-compiler.4.09.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/4.09/lib/ocaml/stublibs:/home/opam/.opam/4.09/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       4.09.1
2026-01-19 18:14.40 ---> using "8192b57f0af7db1f16fa91213432a6242954afa1e7761b5c5b35460cccd273e3" 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:14.40 ---> using "dd6ccf71028ff36169deebf55ed846649e0fc4aefb57bdb8f6358fec316b5b78" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2026-01-19 18:14.54 ---> saved as "6f0ee6c2f46a8f316221c07228fae4c6cdac79872d79a10959011994f77c4aa7"

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

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian trixie InRelease
- Get:2 http://deb.debian.org/debian trixie-updates InRelease [47.3 kB]
- Get:3 http://deb.debian.org/debian-security trixie-security InRelease [43.4 kB]
- Get:4 http://deb.debian.org/debian-security trixie-security/main amd64 Packages [96.1 kB]
- Fetched 187 kB in 0s (1757 kB/s)
- Reading package lists...
2026-01-19 18:15.13 ---> saved as "56496ffd730b9539d057ff3142eb237846f39390b540c59320d0566a78063f75"

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

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall ambient-context-lwt.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-13\\\"\"; 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-lwt.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-lwt.0.1.1 is not installed. Install it? [Y/n] y
The following actions will be performed:
=== install 10 packages
  - install ambient-context     0.1.1          [required by ambient-context-lwt]
  - install ambient-context-lwt 0.1.1 (pinned)
  - install base-bytes          base           [required by ocplib-endian]
  - install cppo                1.8.0          [required by lwt]
  - install csexp               1.5.2          [required by dune-configurator]
  - install dune                3.21.0         [required by ambient-context-lwt]
  - install dune-configurator   3.21.0         [required by lwt]
  - install lwt                 5.9.2          [required by ambient-context-lwt]
  - install ocamlfind           1.9.8          [required by base-bytes]
  - install ocplib-endian       1.2            [required by lwt]

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved ambient-context.0.1.1, ambient-context-lwt.0.1.1  (https://github.com/ocaml-tracing/ambient-context/releases/download/v0.1.1/ambient-context-0.1.1.tbz)
-> retrieved cppo.1.8.0  (cached)
-> retrieved csexp.1.5.2  (cached)
-> retrieved dune.3.21.0, dune-configurator.3.21.0  (cached)
-> retrieved lwt.5.9.2  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved ocplib-endian.1.2  (cached)
-> installed ocamlfind.1.9.8
-> installed base-bytes.base
-> installed dune.3.21.0
-> installed csexp.1.5.2
-> installed ambient-context.0.1.1
-> installed cppo.1.8.0
-> installed ocplib-endian.1.2
-> installed dune-configurator.3.21.0
-> installed lwt.5.9.2
-> installed ambient-context-lwt.0.1.1
Done.
# To update the current shell environment, run: eval $(opam env)
2026-01-19 18:15.56 ---> saved as "07d111c5bcd4421c3fbbee4165ff489d1bf2d13fa227c4d67c12e01516adc0c3"
Job succeeded
2026-01-19 18:16.04: Job succeeded