(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-5.4/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-5.4@sha256:20cfe0b35a2232fcb56c341e470708e5a88be8670d8773c9eb443df68e8d639a
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-5.4@sha256:20cfe0b35a2232fcb56c341e470708e5a88be8670d8773c9eb443df68e8d639a-toffee.0.1.0-4219a994291bbd7606c64e62833ff523b0ca72c2"
2026-01-30 20:43.29: Using OBuilder spec:
((from ocaml/opam:ubuntu-24.04-ocaml-5.4@sha256:20cfe0b35a2232fcb56c341e470708e5a88be8670d8773c9eb443df68e8d639a)
 (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:26.24: Got resource from pool OCluster
Building on riscv-bm-03.sw.ci.dev
All commits already cached
Updating files:  13% (2697/19317)
Updating files:  14% (2705/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% (5287/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:  39% (7636/19317)
Updating files:  40% (7727/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:  51% (10002/19317)
Updating files:  52% (10045/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:  63% (12216/19317)
Updating files:  64% (12363/19317)
Updating files:  65% (12557/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:  75% (14633/19317)
Updating files:  76% (14681/19317)
Updating files:  77% (14875/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:  88% (17045/19317)
Updating files:  89% (17193/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:  99% (19311/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-5.4@sha256:20cfe0b35a2232fcb56c341e470708e5a88be8670d8773c9eb443df68e8d639a)
2026-01-30 22:26.36 ---> using "da5b432da8439e2e1820afecf9f63a502791989c129b99f95dd532f06b564e82" 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:26.36 ---> using "49b1910a58c3f01d38ef8d81d7f33cf1c83053919ebd503d00a5824894f3faea" 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:26.36 ---> using "793f4b8d5f71080a5a639a82d901f7e536473ebbcb50f4c84348b8d347aeea1e" 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       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-30 22:26.36 ---> using "2a9e3284deaefddd24d69d9c2c404e93d91f6bfe3c64927066af666425aec6cf" 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:26.36 ---> using "c8189e463c9de00c307dd3069a791d8fb77128f43f3b3f9fb1c863060ae22610" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2026-01-30 22:27.03 ---> saved as "88298a9c87deb528c005559ca989399e6b9907ab4826c94b11071ec10a387ff9"

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

/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 (1775 kB/s)
- Reading package lists...
- 
2026-01-30 22:28.49 ---> saved as "3a22f744e1e5304110a3802057026ddd60650e6777594944184dab42f53b83f9"

/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:28.52 ---> saved as "8b5f9216d408102c4f5b6d24468ef39ce0d53fdc12c646a022b07a82e4bc24d4"

/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
The following actions will be performed:
=== install 2 packages
  - install dune   3.21.0         [required by toffee]
  - install toffee 0.1.0 (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved dune.3.21.0  (cached)
-> retrieved toffee.0.1.0  (https://github.com/tmattio/mosaic/releases/download/0.1.0/mosaic-0.1.0.tbz)
-> installed dune.3.21.0
-> installed toffee.0.1.0
Done.
# To update the current shell environment, run: eval $(opam env)
2026-01-30 22:34.05 ---> saved as "c0379e9aa78d3afc9a5f5eb40f59bc0b694e8b5e44ee613b3d46d7edb9f2e11d"
Job succeeded
2026-01-30 22:34.37: Job succeeded