(for PR #29199)

2026-01-08 10:46.46: New job: build canary.0.0.4, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29199/head (be591f42548c59a230f63d940107d64de3c89e82)
                              on debian-13-ocaml-5.4/i386

To reproduce locally:

cd $(mktemp -d)
git clone --recursive "https://github.com/ocaml/opam-repository.git" && cd "opam-repository" && git fetch origin "refs/pull/29199/head" && git reset --hard be591f42
git fetch origin master
git merge --no-edit c12c1ea9e7887cc07f2ab967d2eb85c54386ae57
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-13-ocaml-5.4@sha256:1f0f0b1e5ea28bca67235e7935a96cf2a510dbd39b2c072948a15a41fe7b8913
SHELL [ "/usr/bin/linux32", "/bin/sh", "-c" ]
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 canary.0.0.4 0.0.4
RUN opam reinstall canary.0.0.4; \
    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" != 'canary.0.0.4' && 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-08 10:46.46: Using cache hint "ocaml/opam:debian-13-ocaml-5.4@sha256:1f0f0b1e5ea28bca67235e7935a96cf2a510dbd39b2c072948a15a41fe7b8913-canary.0.0.4-be591f42548c59a230f63d940107d64de3c89e82"
2026-01-08 10:46.46: Using OBuilder spec:
((from ocaml/opam:debian-13-ocaml-5.4@sha256:1f0f0b1e5ea28bca67235e7935a96cf2a510dbd39b2c072948a15a41fe7b8913)
 (shell /usr/bin/linux32 /bin/sh -c)
 (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 canary.0.0.4 0.0.4"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall canary.0.0.4;\
             \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\" != 'canary.0.0.4' && 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-08 10:46.46: Waiting for resource in pool OCluster
2026-01-08 10:46.46: Waiting for worker…
2026-01-08 10:46.47: Got resource from pool OCluster
Building on eumache
All commits already cached
Updating files:  94% (18075/19149)
Updating files:  95% (18192/19149)
Updating files:  96% (18384/19149)
Updating files:  97% (18575/19149)
Updating files:  98% (18767/19149)
Updating files:  99% (18958/19149)
Updating files: 100% (19149/19149)
Updating files: 100% (19149/19149), done.
HEAD is now at c12c1ea9e7 Merge pull request #29156 from raphael-proust/kinetic-client-001-build-fail
Updating c12c1ea9e7..be591f4254
Fast-forward
 packages/canary/canary.0.0.4/opam | 57 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)
 create mode 100644 packages/canary/canary.0.0.4/opam

(from ocaml/opam:debian-13-ocaml-5.4@sha256:1f0f0b1e5ea28bca67235e7935a96cf2a510dbd39b2c072948a15a41fe7b8913)
Unable to find image 'ocaml/opam:debian-13-ocaml-5.4@sha256:1f0f0b1e5ea28bca67235e7935a96cf2a510dbd39b2c072948a15a41fe7b8913' locally
docker.io/ocaml/opam@sha256:1f0f0b1e5ea28bca67235e7935a96cf2a510dbd39b2c072948a15a41fe7b8913: Pulling from ocaml/opam
7ba68d5e03a0: Already exists
07b8ed5c5fc7: Already exists
58593d382636: Already exists
0ac347eff7cb: Already exists
9e0dce827f6c: Already exists
59412abebd11: Already exists
6f40c6b8e49d: Already exists
d425252fe4ce: Already exists
d2fd5628395f: Already exists
1afdf15deb97: Already exists
b0f895c507c7: Already exists
008ad3ebfa79: Already exists
2c2f57579aeb: Already exists
d53c2fa82d21: Already exists
e4d849d21609: Already exists
105c7911a399: Already exists
cffce0974ee5: Already exists
2592e9c0b5c6: Already exists
e781106bd8eb: Already exists
a92c4ad367c1: Already exists
a5032c647546: Already exists
db024d7ceed7: Already exists
4f4fb700ef54: Already exists
b736586eae86: Already exists
0793122c5463: Already exists
d43d7e0d3789: Already exists
524f31350c16: Already exists
834542d0184a: Already exists
92a1bdddbb21: Already exists
db8f6f57c096: Already exists
8b21ba328ac8: Already exists
b62a644fd3ae: Already exists
74df08082153: Already exists
4544a2d99dec: Already exists
f1c2491fd607: Already exists
b65b8b420dec: Already exists
b7d2dd83e3d1: Already exists
2705612c6e82: Already exists
296f4af8d4cd: Already exists
6858402c6fe2: Already exists
a04f04ce7fcc: Already exists
91d4a726377c: Already exists
d00b82ade35e: Already exists
a0753987c7c1: Already exists
fe4e08258b65: Already exists
810890259cc3: Already exists
a8378ff06e69: Already exists
995a6beb057b: Already exists
Digest: sha256:1f0f0b1e5ea28bca67235e7935a96cf2a510dbd39b2c072948a15a41fe7b8913
Status: Downloaded newer image for ocaml/opam@sha256:1f0f0b1e5ea28bca67235e7935a96cf2a510dbd39b2c072948a15a41fe7b8913
2026-01-08 10:48.24 ---> saved as "69cdc841404901a469c1696bcc1bb4860cfbf93d8bb71cbd8d79aded069cd577"

/: (shell /usr/bin/linux32 /bin/sh -c)

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2026-01-08 10:48.24 ---> saved as "a9640ab6e956dadbc2b4f50518c76b75157570311b174afe3a7482467ab94293"

/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-08 10:49.15 ---> saved as "da528fc5c4b75980b700d0790ce5ebcf71e7563267bed96a09df9d5ccd003d9b"

/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_32 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       5.4
# invariant            ["ocaml-base-compiler" {>= "5.4.0"}]
# compiler-packages    ocaml-base-compiler.5.4.0, ocaml-compiler.5.4.0, ocaml-option-bytecode-only.1, ocaml-options-vanilla.1
# ocaml:native         false
# ocaml:native-tools   false
# ocaml:native-dynlink false
# 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+bytecode-only
2026-01-08 10:49.16 ---> saved as "1b08a0d9137210c542b156b6f82a5915a8568eeef98e03fd7d8a429d1903acfb"

/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-08 10:49.26 ---> saved as "c9588b84fd43367de35112dc3ff507b0bbddedb502eb55070fe49451d4cf70d8"

/home/opam: (copy (src .) (dst opam-repository/))
2026-01-08 10:49.39 ---> saved as "81b9e0bfe519fa4c21d1a7cb3288b7af150af10f30db6ae8bc9fa474d0c440b3"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2026-01-08 10:50.16 ---> saved as "7da9b10f62eb3af4c1616e4ad0a4a343e317c4a742009cded982ec0488e69152"

/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 i386 Packages [86.3 kB]
- Fetched 177 kB in 0s (1435 kB/s)
- Reading package lists...
- 
2026-01-08 10:50.19 ---> saved as "f0ed7d7d490d3aa09bb834bf28acabf0d0a0f500a314fc3efd5e093d41de2347"

/home/opam: (run (shell "opam pin add -k version -yn canary.0.0.4 0.0.4"))
canary is now pinned to version 0.0.4
2026-01-08 10:50.19 ---> saved as "b7af25393284a2a4089f1ae1db0a8cba9bb795d70e4abddaa33847c7ca375b47"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall canary.0.0.4;\
                        \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\" != 'canary.0.0.4' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
canary.0.0.4 is not installed. Install it? [Y/n] y
  * Incompatible packages:
    - (invariant) -> ocaml-base-compiler >= 5.4.0
    - canary >= 0.0.4 -> cohttp-lwt -> sexplib0 < v0.15 -> ocaml < 5.0 -> dkml-base-compiler
    You can temporarily relax the switch invariant with `--update-invariant'
  * Incompatible packages:
    - (invariant) -> ocaml-base-compiler >= 5.4.0
    - canary >= 0.0.4 -> cohttp-lwt -> sexplib0 < v0.15 -> ocaml < 5.0 -> ocaml-variants
  * Incompatible packages:
    - (invariant) -> ocaml-base-compiler >= 5.4.0 -> ocaml-compiler = 5.4.0 -> base-effects
    - canary >= 0.0.4 -> cohttp-lwt -> ppx_sexp_conv >= v0.13.0 -> ppxlib < 0.36.0
  * Incompatible packages:
    - (invariant) -> ocaml-base-compiler >= 5.4.0 -> ocaml-compiler = 5.4.0 -> base-effects
    - canary >= 0.0.4 -> cohttp-lwt -> ppx_sexp_conv >= v0.13.0 -> ppxlib < 0.15.0 -> ocaml-migrate-parsetree >= 1.3.1
  * Missing dependency:
    - canary >= 0.0.4 -> cohttp-lwt -> ppx_sexp_conv >= v0.13.0 -> base < v0.14 -> ocaml < 4.10.0 -> ocaml-base-compiler (<= 3.07+1 | = 3.07+2 | = 3.08.0 | = 3.08.1 | = 3.08.2 | = 3.08.3 | = 3.08.4 | = 3.09.0) | ocaml-system (<= 3.07+1 | = 3.07+2 | >= 3.08.0) | ocaml-variants < 3.09.1~
    not available because the package is pinned to version 5.4.0
    unmet availability conditions, e.g. 'sys-ocaml-version = "5.4.0" & (os != "win32" | sys-ocaml-libc = "msvc")'
    no matching version
  * Missing dependency:
    - canary >= 0.0.4 -> cohttp-lwt -> sexplib0 < v0.15 -> ocaml < 5.0 -> ocaml-variants -> ocaml-beta
    unmet availability conditions: 'enable-ocaml-beta-repository'
  * Missing dependency:
    - canary >= 0.0.4 -> cohttp-lwt -> sexplib0 < v0.15 -> ocaml < 5.0 -> ocaml-variants -> system-msvc
    unmet availability conditions: 'os = "win32"'

No solution found, exiting
"/usr/bin/linux32" "/bin/sh" "-c" "opam reinstall canary.0.0.4;
        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" != 'canary.0.0.4' && partial_fails="$partial_fails $pkg";
        done;
        test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}";
        exit 1" failed with exit status 20
2026-01-08 10:50.43: Job failed: Failed: Build failed
2026-01-08 10:50.43: Log analysis:
2026-01-08 10:50.43: >>> 
No solution found, exiting
 (score = 100)
2026-01-08 10:50.43: [SKIP] Package not available