(for PR #29312)

2026-01-30 20:43.28: New job: build toffee.0.1.0, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29312/head (4219a994291bbd7606c64e62833ff523b0ca72c2)
                              on archlinux-ocaml-4.14/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/29312/head" && git reset --hard 4219a994
git fetch origin master
git merge --no-edit 0758d335cb8d1367e501844fb86be0b07e4918ac
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:archlinux-ocaml-4.14@sha256:4a21b7f2553409451d89f26931de7f087b5866cb367f324a5f54caa676b05d6a
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 toffee.0.1.0 0.1.0
RUN opam reinstall toffee.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" != 'toffee.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-01-30 20:43.28: Using cache hint "ocaml/opam:archlinux-ocaml-4.14@sha256:4a21b7f2553409451d89f26931de7f087b5866cb367f324a5f54caa676b05d6a-toffee.0.1.0-4219a994291bbd7606c64e62833ff523b0ca72c2"
2026-01-30 20:43.28: Using OBuilder spec:
((from ocaml/opam:archlinux-ocaml-4.14@sha256:4a21b7f2553409451d89f26931de7f087b5866cb367f324a5f54caa676b05d6a)
 (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 toffee.0.1.0 0.1.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall toffee.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\" != 'toffee.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-01-30 20:43.28: Waiting for resource in pool OCluster
2026-01-30 20:59.58: Waiting for worker…
2026-01-30 21:01.49: Got resource from pool OCluster
Building on eumache
All commits already cached
Updating files:  65% (12620/19320)
Updating files:  66% (12752/19320)
Updating files:  67% (12945/19320)
Updating files:  68% (13138/19320)
Updating files:  69% (13331/19320)
Updating files:  70% (13524/19320)
Updating files:  71% (13718/19320)
Updating files:  72% (13911/19320)
Updating files:  73% (14104/19320)
Updating files:  74% (14297/19320)
Updating files:  75% (14490/19320)
Updating files:  76% (14684/19320)
Updating files:  77% (14877/19320)
Updating files:  78% (15070/19320)
Updating files:  79% (15263/19320)
Updating files:  80% (15456/19320)
Updating files:  81% (15650/19320)
Updating files:  82% (15843/19320)
Updating files:  83% (16036/19320)
Updating files:  84% (16229/19320)
Updating files:  85% (16422/19320)
Updating files:  86% (16616/19320)
Updating files:  87% (16809/19320)
Updating files:  88% (17002/19320)
Updating files:  89% (17195/19320)
Updating files:  90% (17388/19320)
Updating files:  91% (17582/19320)
Updating files:  92% (17775/19320)
Updating files:  93% (17968/19320)
Updating files:  94% (18161/19320)
Updating files:  95% (18354/19320)
Updating files:  96% (18548/19320)
Updating files:  97% (18741/19320)
Updating files:  98% (18934/19320)
Updating files:  99% (19127/19320)
Updating files: 100% (19320/19320)
Updating files: 100% (19320/19320), done.
HEAD is now at 0758d335cb Merge pull request #29298 from raphael-proust/opam-publish-lwt_ppx.5.9.3
Updating 0758d335cb..4219a99429
Fast-forward
 packages/matrix/matrix.0.1.0/opam | 42 +++++++++++++++++++++++++++++++++++
 packages/mosaic/mosaic.0.1.0/opam | 46 +++++++++++++++++++++++++++++++++++++++
 packages/toffee/toffee.0.1.0/opam | 41 ++++++++++++++++++++++++++++++++++
 3 files changed, 129 insertions(+)
 create mode 100644 packages/matrix/matrix.0.1.0/opam
 create mode 100644 packages/mosaic/mosaic.0.1.0/opam
 create mode 100644 packages/toffee/toffee.0.1.0/opam

(from ocaml/opam:archlinux-ocaml-4.14@sha256:4a21b7f2553409451d89f26931de7f087b5866cb367f324a5f54caa676b05d6a)
Unable to find image 'ocaml/opam:archlinux-ocaml-4.14@sha256:4a21b7f2553409451d89f26931de7f087b5866cb367f324a5f54caa676b05d6a' locally
docker.io/ocaml/opam@sha256:4a21b7f2553409451d89f26931de7f087b5866cb367f324a5f54caa676b05d6a: Pulling from ocaml/opam
0085e6dc1230: Already exists
5f45b7fb9d52: Already exists
080d1d0ece8a: Already exists
f786911b9fa1: Already exists
c3bb0640f7e5: Already exists
Digest: sha256:4a21b7f2553409451d89f26931de7f087b5866cb367f324a5f54caa676b05d6a
Status: Downloaded newer image for ocaml/opam@sha256:4a21b7f2553409451d89f26931de7f087b5866cb367f324a5f54caa676b05d6a
2026-01-30 21:02.21 ---> using "e3931c8fa2be7211bb39f45c8759c7413d4fe35de381afc5ecee7c39a3c84e0e" 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-30 21:02.21 ---> using "8d0f5c8a616ce1803e5bf99ebbca107c96bf010ee183bee033b00f2c46680263" 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.

Continue? [Y/n] y
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.

Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2026-01-30 21:02.21 ---> using "3cdf03264089ea4dbbea9ed69100ca900b92894f450f42dea27557d460433e08" 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=arch os-version=20260111.0.480139
# 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.14
# invariant            ["ocaml-base-compiler" {= "4.14.2"}]
# compiler-packages    ocaml-base-compiler.4.14.2, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/4.14/lib/ocaml/stublibs:/home/opam/.opam/4.14/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       4.14.2
2026-01-30 21:02.21 ---> using "45d74c5c63ec2ab779b4804d8963623ecefcdfeb0a456beb616411747c7290b9" 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-30 21:02.21 ---> using "bac0433fd5554e545fbc660d90739255be4e125eafb9ff5a27de48db6eadb48c" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2026-01-30 21:02.42 ---> saved as "c734fb4a17366a2ad13aa3e03d2e6e48c2ad460280f3dc97c996dd9c35e9c767"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2026-01-30 21:03.06 ---> saved as "07899da2d8839ab6939984f185eb2cc6e69718e7480ff7ccdc9383db25ad56b4"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/sbin/sudo "pacman" "-Sy"
- :: Synchronizing package databases...
-  core downloading...
-  extra downloading...
2026-01-30 21:03.07 ---> saved as "161b2a9a0da9e9c6208e2f410eed27309df94ee44409560a0794a391402690c1"

/home/opam: (run (shell "opam pin add -k version -yn toffee.0.1.0 0.1.0"))
toffee is now pinned to version 0.1.0
2026-01-30 21:03.09 ---> saved as "7baa7534053575770d4d3880fd213109d32e5325720b8cb9683b97ac52d6530f"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall toffee.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\" != 'toffee.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"))
toffee.0.1.0 is not installed. Install it? [Y/n] y
  * Incompatible packages:
    - (invariant) → ocaml-base-compiler = 4.14.2
    - toffee → ocaml >= 5.1 → ocaml-variants < 5.4.1~
    You can temporarily relax the switch invariant with `--update-invariant'
  * Missing dependency:
    - toffee → ocaml >= 5.1 → ocaml-variants < 5.1.1~ → ocaml-beta
    unmet availability conditions: 'enable-ocaml-beta-repository'
  * Missing dependency:
    - toffee → ocaml >= 5.1 → ocaml-variants < 5.2.1~ → system-msvc
    unmet availability conditions: 'os = "win32"'

No solution found, exiting
"/usr/bin/env" "bash" "-c" "opam reinstall toffee.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" != 'toffee.0.1.0' && 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-30 21:03.33: Job failed: Failed: Build failed
2026-01-30 21:03.33: Log analysis:
2026-01-30 21:03.33: >>> 
No solution found, exiting
 (score = 100)
2026-01-30 21:03.33: [SKIP] Package not available