(for PR #29312)

2026-01-30 20:43.29: New job: build toffee.0.1.0, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29312/head (4219a994291bbd7606c64e62833ff523b0ca72c2)
                              on ubuntu-24.04-ocaml-4.14/riscv64

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:ubuntu-24.04-ocaml-4.14@sha256:f9fec8059f3b510b703a628032af0efc3934a77f7db71032798c756fa5a7da0d
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 "\"ubuntu-24.04\""; 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.29: Using cache hint "ocaml/opam:ubuntu-24.04-ocaml-4.14@sha256:f9fec8059f3b510b703a628032af0efc3934a77f7db71032798c756fa5a7da0d-toffee.0.1.0-4219a994291bbd7606c64e62833ff523b0ca72c2"
2026-01-30 20:43.29: Using OBuilder spec:
((from ocaml/opam:ubuntu-24.04-ocaml-4.14@sha256:f9fec8059f3b510b703a628032af0efc3934a77f7db71032798c756fa5a7da0d)
 (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 \"\\\"ubuntu-24.04\\\"\"; 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.29: Waiting for resource in pool OCluster
2026-01-30 20:43.29: Waiting for worker…
2026-01-30 22:37.03: Got resource from pool OCluster
Building on riscv-bm-01.sw.ci.dev
All commits already cached
Updating files:  14% (2713/19317)
Updating files:  15% (2898/19317)
Updating files:  16% (3091/19317)
Updating files:  17% (3284/19317)
Updating files:  18% (3478/19317)
Updating files:  19% (3671/19317)
Updating files:  20% (3864/19317)
Updating files:  21% (4057/19317)
Updating files:  22% (4250/19317)
Updating files:  23% (4443/19317)
Updating files:  24% (4637/19317)
Updating files:  25% (4830/19317)
Updating files:  26% (5023/19317)
Updating files:  27% (5216/19317)
Updating files:  27% (5306/19317)
Updating files:  28% (5409/19317)
Updating files:  29% (5602/19317)
Updating files:  30% (5796/19317)
Updating files:  31% (5989/19317)
Updating files:  32% (6182/19317)
Updating files:  33% (6375/19317)
Updating files:  34% (6568/19317)
Updating files:  35% (6761/19317)
Updating files:  36% (6955/19317)
Updating files:  37% (7148/19317)
Updating files:  38% (7341/19317)
Updating files:  39% (7534/19317)
Updating files:  40% (7727/19317)
Updating files:  40% (7787/19317)
Updating files:  41% (7920/19317)
Updating files:  42% (8114/19317)
Updating files:  43% (8307/19317)
Updating files:  44% (8500/19317)
Updating files:  45% (8693/19317)
Updating files:  46% (8886/19317)
Updating files:  47% (9079/19317)
Updating files:  48% (9273/19317)
Updating files:  49% (9466/19317)
Updating files:  50% (9659/19317)
Updating files:  51% (9852/19317)
Updating files:  52% (10045/19317)
Updating files:  52% (10160/19317)
Updating files:  53% (10239/19317)
Updating files:  54% (10432/19317)
Updating files:  55% (10625/19317)
Updating files:  56% (10818/19317)
Updating files:  57% (11011/19317)
Updating files:  58% (11204/19317)
Updating files:  59% (11398/19317)
Updating files:  60% (11591/19317)
Updating files:  61% (11784/19317)
Updating files:  62% (11977/19317)
Updating files:  63% (12170/19317)
Updating files:  64% (12363/19317)
Updating files:  65% (12557/19317)
Updating files:  65% (12612/19317)
Updating files:  66% (12750/19317)
Updating files:  67% (12943/19317)
Updating files:  68% (13136/19317)
Updating files:  69% (13329/19317)
Updating files:  70% (13522/19317)
Updating files:  71% (13716/19317)
Updating files:  72% (13909/19317)
Updating files:  73% (14102/19317)
Updating files:  74% (14295/19317)
Updating files:  75% (14488/19317)
Updating files:  76% (14681/19317)
Updating files:  77% (14875/19317)
Updating files:  77% (14909/19317)
Updating files:  78% (15068/19317)
Updating files:  79% (15261/19317)
Updating files:  80% (15454/19317)
Updating files:  81% (15647/19317)
Updating files:  82% (15840/19317)
Updating files:  83% (16034/19317)
Updating files:  84% (16227/19317)
Updating files:  85% (16420/19317)
Updating files:  86% (16613/19317)
Updating files:  87% (16806/19317)
Updating files:  88% (16999/19317)
Updating files:  89% (17193/19317)
Updating files:  89% (17346/19317)
Updating files:  90% (17386/19317)
Updating files:  91% (17579/19317)
Updating files:  92% (17772/19317)
Updating files:  93% (17965/19317)
Updating files:  94% (18158/19317)
Updating files:  95% (18352/19317)
Updating files:  96% (18545/19317)
Updating files:  97% (18738/19317)
Updating files:  98% (18931/19317)
Updating files:  99% (19124/19317)
Updating files: 100% (19317/19317)
Updating files: 100% (19317/19317), 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:ubuntu-24.04-ocaml-4.14@sha256:f9fec8059f3b510b703a628032af0efc3934a77f7db71032798c756fa5a7da0d)
2026-01-30 22:37.14 ---> using "472f2e20ca0970cbed312fcf3b341807bd41802bb4d2018af197f5f3deb36252" 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 22:37.14 ---> using "97a6e6ab2055dd5ceb4690e4667bc32fa028e417f6705131a862657a58102e09" 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-30 22:37.14 ---> using "63a2ce97837a7a84551b4d687239275d0971c4207c5e59be43f791c5cf591e76" 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=riscv64 os=linux os-distribution=ubuntu os-version=24.04
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 3
# 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 22:37.14 ---> using "c4bd4ca18e8051b72a3cdedbb1e0c50870c3223048ef7816f0cba0b8072fa22f" 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 22:37.14 ---> using "af52915c2c5c72ad4230c0294a44fcdf38496eec7bd80473c44f70112d341a49" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2026-01-30 22:37.41 ---> saved as "6657e7f34e71ec60c09dcc175eaca2f409c1330ef926864b44bdbc1d0d2d17e2"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2026-01-30 22:39.17 ---> saved as "deef850f5dfae064b13c556c5fe0946e15f67ef310c1905825d34acbe9d52274"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease
- Get:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease [126 kB]
- Get:3 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease [126 kB]
- Get:4 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease [126 kB]
- Get:5 http://ports.ubuntu.com/ubuntu-ports noble-updates/universe riscv64 Packages [1489 kB]
- Get:6 http://ports.ubuntu.com/ubuntu-ports noble-updates/main riscv64 Packages [915 kB]
- Get:7 http://ports.ubuntu.com/ubuntu-ports noble-security/universe riscv64 Packages [932 kB]
- Get:8 http://ports.ubuntu.com/ubuntu-ports noble-security/main riscv64 Packages [588 kB]
- Get:9 http://ports.ubuntu.com/ubuntu-ports noble-security/restricted riscv64 Packages [8717 B]
- Fetched 4310 kB in 2s (2116 kB/s)
- Reading package lists...
- 
2026-01-30 22:39.25 ---> saved as "054d8ef65f2a3d4012a5b3f674d7901b4888f4cf96b577695d730e3de7d6b33a"

/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 22:39.28 ---> saved as "970bb84be0c2eb811172d276c31dd32583dd17d8e9a36e306babef96084851a2"

/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 \"\\\"ubuntu-24.04\\\"\"; 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.6.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 "\"ubuntu-24.04\""; 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 22:40.47: Job failed: Failed: Build failed
2026-01-30 22:40.47: Log analysis:
2026-01-30 22:40.47: >>> 
No solution found, exiting
 (score = 100)
2026-01-30 22:40.47: [SKIP] Package not available