(for PR #29258)

2026-01-21 13:57.59: New job: build reason.3.17.3, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29258/head (1254c043ffa352731f4d34dd88feacb6acdb9f33)
                              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/29258/head" && git reset --hard 1254c043
git fetch origin master
git merge --no-edit 10a02a697b08f6d78a6c4c2cb9a76136afc7776d
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:ubuntu-24.04-ocaml-4.14@sha256:f20ef09e777da135c4ee8d0398873c087223035afd7a128f8bfd33dd9b8f4966
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 reason.3.17.3 3.17.3
RUN opam reinstall reason.3.17.3; \
    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" != 'reason.3.17.3' && 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-21 13:57.59: Using cache hint "ocaml/opam:ubuntu-24.04-ocaml-4.14@sha256:f20ef09e777da135c4ee8d0398873c087223035afd7a128f8bfd33dd9b8f4966-reason.3.17.3-1254c043ffa352731f4d34dd88feacb6acdb9f33"
2026-01-21 13:57.59: Using OBuilder spec:
((from ocaml/opam:ubuntu-24.04-ocaml-4.14@sha256:f20ef09e777da135c4ee8d0398873c087223035afd7a128f8bfd33dd9b8f4966)
 (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 reason.3.17.3 3.17.3"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall reason.3.17.3;\
             \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\" != 'reason.3.17.3' && 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-21 13:57.59: Waiting for resource in pool OCluster
2026-01-21 13:58.00: Waiting for worker…
2026-01-21 13:58.00: Got resource from pool OCluster
Building on riscv-bm-02.sw.ci.dev
Updating files:  14% (2721/19234)
Updating files:  15% (2886/19234)
Updating files:  16% (3078/19234)
Updating files:  17% (3270/19234)
Updating files:  18% (3463/19234)
Updating files:  19% (3655/19234)
Updating files:  20% (3847/19234)
Updating files:  21% (4040/19234)
Updating files:  22% (4232/19234)
Updating files:  23% (4424/19234)
Updating files:  24% (4617/19234)
Updating files:  25% (4809/19234)
Updating files:  26% (5001/19234)
Updating files:  27% (5194/19234)
Updating files:  27% (5269/19234)
Updating files:  28% (5386/19234)
Updating files:  29% (5578/19234)
Updating files:  30% (5771/19234)
Updating files:  31% (5963/19234)
Updating files:  32% (6155/19234)
Updating files:  33% (6348/19234)
Updating files:  34% (6540/19234)
Updating files:  35% (6732/19234)
Updating files:  36% (6925/19234)
Updating files:  37% (7117/19234)
Updating files:  38% (7309/19234)
Updating files:  39% (7502/19234)
Updating files:  39% (7660/19234)
Updating files:  40% (7694/19234)
Updating files:  41% (7886/19234)
Updating files:  42% (8079/19234)
Updating files:  43% (8271/19234)
Updating files:  44% (8463/19234)
Updating files:  45% (8656/19234)
Updating files:  46% (8848/19234)
Updating files:  47% (9040/19234)
Updating files:  48% (9233/19234)
Updating files:  49% (9425/19234)
Updating files:  50% (9617/19234)
Updating files:  51% (9810/19234)
Updating files:  51% (9924/19234)
Updating files:  52% (10002/19234)
Updating files:  53% (10195/19234)
Updating files:  54% (10387/19234)
Updating files:  55% (10579/19234)
Updating files:  56% (10772/19234)
Updating files:  57% (10964/19234)
Updating files:  58% (11156/19234)
Updating files:  59% (11349/19234)
Updating files:  60% (11541/19234)
Updating files:  61% (11733/19234)
Updating files:  62% (11926/19234)
Updating files:  63% (12118/19234)
Updating files:  63% (12309/19234)
Updating files:  64% (12310/19234)
Updating files:  65% (12503/19234)
Updating files:  66% (12695/19234)
Updating files:  67% (12887/19234)
Updating files:  68% (13080/19234)
Updating files:  69% (13272/19234)
Updating files:  70% (13464/19234)
Updating files:  71% (13657/19234)
Updating files:  72% (13849/19234)
Updating files:  73% (14041/19234)
Updating files:  74% (14234/19234)
Updating files:  75% (14426/19234)
Updating files:  76% (14618/19234)
Updating files:  76% (14710/19234)
Updating files:  77% (14811/19234)
Updating files:  78% (15003/19234)
Updating files:  79% (15195/19234)
Updating files:  80% (15388/19234)
Updating files:  81% (15580/19234)
Updating files:  82% (15772/19234)
Updating files:  83% (15965/19234)
Updating files:  84% (16157/19234)
Updating files:  85% (16349/19234)
Updating files:  86% (16542/19234)
Updating files:  87% (16734/19234)
Updating files:  88% (16926/19234)
Updating files:  88% (17090/19234)
Updating files:  89% (17119/19234)
Updating files:  90% (17311/19234)
Updating files:  91% (17503/19234)
Updating files:  92% (17696/19234)
Updating files:  93% (17888/19234)
Updating files:  94% (18080/19234)
Updating files:  95% (18273/19234)
Updating files:  96% (18465/19234)
Updating files:  97% (18657/19234)
Updating files:  98% (18850/19234)
Updating files:  99% (19042/19234)
Updating files: 100% (19234/19234)
Updating files: 100% (19234/19234), done.
HEAD is now at d2d2eaffa0 [new release] camels (1.0.0)
HEAD is now at 10a02a697b Merge pull request #29249 from panglesd/release-slipshow-v0.8.0
Updating 10a02a697b..1254c043ff
Fast-forward
 packages/reason/reason.3.17.3/opam | 52 ++++++++++++++++++++++++++++++++++++++
 packages/rtop/rtop.3.17.3/opam     | 45 +++++++++++++++++++++++++++++++++
 2 files changed, 97 insertions(+)
 create mode 100644 packages/reason/reason.3.17.3/opam
 create mode 100644 packages/rtop/rtop.3.17.3/opam

(from ocaml/opam:ubuntu-24.04-ocaml-4.14@sha256:f20ef09e777da135c4ee8d0398873c087223035afd7a128f8bfd33dd9b8f4966)
2026-01-21 13:58.26 ---> using "4626d4a5a131a88d02479f5c3b21defc447f75fbe8e0dea7762a8bf70d192939" 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-21 13:58.26 ---> using "2cf77de0c9217b9f307fb96292f7e750553dddea1ae1c3af3d877c5064cd48be" 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-21 13:58.26 ---> using "e97b1f5b3923c1d4406517373572055c44243d2c7e5d515860195f8caac29ab2" 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-21 13:58.26 ---> using "7446a1617c0a540a3bcb1fa66767241aea48568e6441847fecb4c62276a88c16" 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-21 13:58.26 ---> using "6a1c59d3cd71ed778ec1a09ca3f6c9b8135cf735686be40ac73fa2d2fb3e5849" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2026-01-21 13:58.52 ---> saved as "0c72ed5742cb1b2f85fda22c27d589c2657b4d216cd768a41b690d91a4609b7b"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2026-01-21 14:00.31 ---> saved as "3b1f127f90e0390f43dbdfc103f114df436a0b81714ba11bbae45167076f6a59"

/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/main riscv64 Packages [908 kB]
- Get:6 http://ports.ubuntu.com/ubuntu-ports noble-updates/universe riscv64 Packages [1479 kB]
- Get:7 http://ports.ubuntu.com/ubuntu-ports noble-security/universe riscv64 Packages [931 kB]
- Get:8 http://ports.ubuntu.com/ubuntu-ports noble-security/main riscv64 Packages [585 kB]
- Fetched 4282 kB in 2s (1745 kB/s)
- Reading package lists...
- 
2026-01-21 14:00.39 ---> saved as "bfc9a7694f7e657bd27b2a11d837e03e4ed5c4139ccfdd982ada3a172fb672dc"

/home/opam: (run (shell "opam pin add -k version -yn reason.3.17.3 3.17.3"))
reason is now pinned to version 3.17.3
2026-01-21 14:00.42 ---> saved as "c721f2ce4ad7640732a5cfb5382373b3fb72d38255ae1a0a64d0b71f33e7d733"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall reason.3.17.3;\
                        \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\" != 'reason.3.17.3' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
reason.3.17.3 is not installed. Install it? [Y/n] y
The following actions will be performed:
=== install 17 packages
  - install cmdliner            2.1.0           [required by reason]
  - install cppo                1.8.0           [required by reason]
  - install dune                3.21.0          [required by reason]
  - install dune-build-info     3.21.0          [required by reason]
  - install fix                 20250919        [required by reason]
  - install menhir              20250912        [required by reason]
  - install menhirCST           20250912        [required by menhir]
  - install menhirLib           20250912        [required by menhir]
  - install menhirSdk           20250912        [required by menhir]
  - install merlin-extend       0.6.2           [required by reason]
  - install ocaml-compiler-libs v0.12.4         [required by ppxlib]
  - install ocamlfind           1.9.8           [required by reason]
  - install ppx_derivers        1.2.1           [required by ppxlib]
  - install ppxlib              0.37.0          [required by reason]
  - install reason              3.17.3 (pinned)
  - install sexplib0            v0.17.0         [required by ppxlib]
  - install stdlib-shims        0.3.0           [required by ppxlib]

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved cmdliner.2.1.0  (cached)
-> retrieved cppo.1.8.0  (cached)
-> retrieved dune.3.21.0, dune-build-info.3.21.0  (cached)
-> retrieved fix.20250919  (cached)
-> retrieved menhir.20250912, menhirCST.20250912, menhirLib.20250912, menhirSdk.20250912  (cached)
-> installed cmdliner.2.1.0
-> retrieved merlin-extend.0.6.2  (cached)
-> retrieved ocaml-compiler-libs.v0.12.4  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved ppx_derivers.1.2.1  (cached)
-> retrieved ppxlib.0.37.0  (cached)
-> retrieved reason.3.17.3  (https://github.com/reasonml/reason/releases/download/3.17.3/reason-3.17.3.tbz)
-> retrieved sexplib0.v0.17.0  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> installed ocamlfind.1.9.8
-> installed dune.3.21.0
-> installed cppo.1.8.0
-> installed menhirCST.20250912
-> installed fix.20250919
-> installed dune-build-info.3.21.0
-> installed merlin-extend.0.6.2
-> installed menhirSdk.20250912
-> installed menhirLib.20250912
-> installed ppx_derivers.1.2.1
-> installed sexplib0.v0.17.0
-> installed stdlib-shims.0.3.0
-> installed ocaml-compiler-libs.v0.12.4
-> installed menhir.20250912
-> installed ppxlib.0.37.0
-> installed reason.3.17.3
Done.
# To update the current shell environment, run: eval $(opam env)
2026-01-21 14:10.46 ---> saved as "73ec4f959ed43cf5ba6ec95c67d7abcd0e33d22a836aa157a7707b9181c3dc7b"
Job succeeded
2026-01-21 14:11.23: Job succeeded