(for PR #29211)

2026-01-18 13:43.31: New job: build menhirLib.20260112, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29211/head (40f2d815046034974151fd6cb87d492d7533b91e)
                              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/29211/head" && git reset --hard 40f2d815
git fetch origin master
git merge --no-edit 5a5103c1c342a572f3174f77c2bf2a3883cd4a69
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:ubuntu-24.04-ocaml-5.4@sha256:d162f5bab9b92be895e174d1b119d59ff46cc7db2cb00b4e92b44fe4216e5ab1
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 menhirLib.20260112 20260112
RUN opam reinstall menhirLib.20260112; \
    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" != 'menhirLib.20260112' && 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-18 13:43.31: Using cache hint "ocaml/opam:ubuntu-24.04-ocaml-5.4@sha256:d162f5bab9b92be895e174d1b119d59ff46cc7db2cb00b4e92b44fe4216e5ab1-menhirLib.20260112-40f2d815046034974151fd6cb87d492d7533b91e"
2026-01-18 13:43.31: Using OBuilder spec:
((from ocaml/opam:ubuntu-24.04-ocaml-5.4@sha256:d162f5bab9b92be895e174d1b119d59ff46cc7db2cb00b4e92b44fe4216e5ab1)
 (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 menhirLib.20260112 20260112"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall menhirLib.20260112;\
             \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\" != 'menhirLib.20260112' && 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-18 13:43.31: Waiting for resource in pool OCluster
2026-01-18 13:43.34: Waiting for worker…
2026-01-18 13:52.13: Got resource from pool OCluster
Building on riscv-bm-03.sw.ci.dev
Updating files:  12% (2355/19223)
Updating files:  13% (2499/19223)
Updating files:  14% (2692/19223)
Updating files:  15% (2884/19223)
Updating files:  16% (3076/19223)
Updating files:  17% (3268/19223)
Updating files:  18% (3461/19223)
Updating files:  19% (3653/19223)
Updating files:  20% (3845/19223)
Updating files:  21% (4037/19223)
Updating files:  22% (4230/19223)
Updating files:  23% (4422/19223)
Updating files:  24% (4614/19223)
Updating files:  25% (4806/19223)
Updating files:  25% (4832/19223)
Updating files:  26% (4998/19223)
Updating files:  27% (5191/19223)
Updating files:  28% (5383/19223)
Updating files:  29% (5575/19223)
Updating files:  30% (5767/19223)
Updating files:  31% (5960/19223)
Updating files:  32% (6152/19223)
Updating files:  33% (6344/19223)
Updating files:  34% (6536/19223)
Updating files:  35% (6729/19223)
Updating files:  36% (6921/19223)
Updating files:  37% (7113/19223)
Updating files:  38% (7305/19223)
Updating files:  38% (7398/19223)
Updating files:  39% (7497/19223)
Updating files:  40% (7690/19223)
Updating files:  41% (7882/19223)
Updating files:  42% (8074/19223)
Updating files:  43% (8266/19223)
Updating files:  43% (8294/19223)
Updating files:  44% (8459/19223)
Updating files:  45% (8651/19223)
Updating files:  46% (8843/19223)
Updating files:  47% (9035/19223)
Updating files:  48% (9228/19223)
Updating files:  49% (9420/19223)
Updating files:  50% (9612/19223)
Updating files:  51% (9804/19223)
Updating files:  52% (9996/19223)
Updating files:  53% (10189/19223)
Updating files:  54% (10381/19223)
Updating files:  54% (10451/19223)
Updating files:  55% (10573/19223)
Updating files:  56% (10765/19223)
Updating files:  57% (10958/19223)
Updating files:  58% (11150/19223)
Updating files:  59% (11342/19223)
Updating files:  60% (11534/19223)
Updating files:  61% (11727/19223)
Updating files:  62% (11919/19223)
Updating files:  63% (12111/19223)
Updating files:  64% (12303/19223)
Updating files:  65% (12495/19223)
Updating files:  66% (12688/19223)
Updating files:  66% (12783/19223)
Updating files:  67% (12880/19223)
Updating files:  68% (13072/19223)
Updating files:  69% (13264/19223)
Updating files:  70% (13457/19223)
Updating files:  71% (13649/19223)
Updating files:  72% (13841/19223)
Updating files:  73% (14033/19223)
Updating files:  74% (14226/19223)
Updating files:  75% (14418/19223)
Updating files:  76% (14610/19223)
Updating files:  77% (14802/19223)
Updating files:  78% (14994/19223)
Updating files:  78% (15109/19223)
Updating files:  79% (15187/19223)
Updating files:  80% (15379/19223)
Updating files:  81% (15571/19223)
Updating files:  82% (15763/19223)
Updating files:  83% (15956/19223)
Updating files:  84% (16148/19223)
Updating files:  85% (16340/19223)
Updating files:  86% (16532/19223)
Updating files:  87% (16725/19223)
Updating files:  88% (16917/19223)
Updating files:  89% (17109/19223)
Updating files:  90% (17301/19223)
Updating files:  90% (17468/19223)
Updating files:  91% (17493/19223)
Updating files:  92% (17686/19223)
Updating files:  93% (17878/19223)
Updating files:  94% (18070/19223)
Updating files:  95% (18262/19223)
Updating files:  96% (18455/19223)
Updating files:  97% (18647/19223)
Updating files:  98% (18839/19223)
Updating files:  99% (19031/19223)
Updating files: 100% (19223/19223)
Updating files: 100% (19223/19223), done.
HEAD is now at d4cd733d95 Package ufind.0.2.0
HEAD is now at 5a5103c1c3 Merge pull request #29240 from sanette/opam-publish-ufind.0.2.0
Updating 5a5103c1c3..40f2d81504
Fast-forward
 packages/menhir/menhir.20260112/opam       | 32 ++++++++++++++++++++++++++++++
 packages/menhirCST/menhirCST.20260112/opam | 30 ++++++++++++++++++++++++++++
 packages/menhirGLR/menhirGLR.20260112/opam | 30 ++++++++++++++++++++++++++++
 packages/menhirLib/menhirLib.20260112/opam | 31 +++++++++++++++++++++++++++++
 packages/menhirSdk/menhirSdk.20260112/opam | 31 +++++++++++++++++++++++++++++
 5 files changed, 154 insertions(+)
 create mode 100644 packages/menhir/menhir.20260112/opam
 create mode 100644 packages/menhirCST/menhirCST.20260112/opam
 create mode 100644 packages/menhirGLR/menhirGLR.20260112/opam
 create mode 100644 packages/menhirLib/menhirLib.20260112/opam
 create mode 100644 packages/menhirSdk/menhirSdk.20260112/opam

(from ocaml/opam:ubuntu-24.04-ocaml-5.4@sha256:d162f5bab9b92be895e174d1b119d59ff46cc7db2cb00b4e92b44fe4216e5ab1)
2026-01-18 13:52.43 ---> using "e6d25a681a2839b9759c5ab76e7fc37d65a3a1681d1dd6a25eff6d306e5b002f" 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-18 13:52.43 ---> using "f94728a3897568e3a7759826588216c63a3b89bd0663181aa99bddde4facc7c9" 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-18 13:52.43 ---> using "e6cfbe27a3c7e265ded57a9000a356597d5dfbdd03f7660dee29c304960f0626" 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-18 13:52.43 ---> using "c8ba0107694140cd095b41f9f249c2013cd515bee398d7be9528c65cc18ba180" 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-18 13:52.43 ---> using "54067164ef27cf4f5ad1fc92e3c4c83398f26196cbb8b27c986ef7868389bd7d" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2026-01-18 13:53.08 ---> saved as "7765f9a5153888df3f94023c2ded97c771c3e2215f4e831cba0685a69014fb62"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2026-01-18 13:54.45 ---> saved as "1fd5cd5b4a66a33072eade1faf82aa6c8d50a8d6d0e8b7b2bbbe8610717a5879"

/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 [1473 kB]
- Get:6 http://ports.ubuntu.com/ubuntu-ports noble-updates/main riscv64 Packages [903 kB]
- Get:7 http://ports.ubuntu.com/ubuntu-ports noble-security/universe riscv64 Packages [929 kB]
- Get:8 http://ports.ubuntu.com/ubuntu-ports noble-security/main riscv64 Packages [581 kB]
- Fetched 4264 kB in 2s (1936 kB/s)
- Reading package lists...
- 
2026-01-18 13:54.54 ---> saved as "d645c8b90b8557b25df3df21d60fab023e83bf0576f9e2d9bcaa0d596041f330"

/home/opam: (run (shell "opam pin add -k version -yn menhirLib.20260112 20260112"))
menhirLib is now pinned to version 20260112
2026-01-18 13:54.56 ---> saved as "ea4aa1439fe3495bab90c399f5d572303027c0fc06e8ef832989edc76b784abf"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall menhirLib.20260112;\
                        \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\" != 'menhirLib.20260112' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
menhirLib.20260112 is not installed. Install it? [Y/n] y
The following actions will be performed:
=== install 2 packages
  - install dune      3.21.0            [required by menhirLib]
  - install menhirLib 20260112 (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved dune.3.21.0  (cached)
-> retrieved menhirLib.20260112  (cached)
-> installed dune.3.21.0
-> installed menhirLib.20260112
Done.
# To update the current shell environment, run: eval $(opam env)
2026-01-18 13:59.51 ---> saved as "ad4303c01d518a851f1b89bc4e2762b087b8ba7680ab0135b0b6caf2b0ad570b"
Job succeeded
2026-01-18 14:00.26: Job succeeded