(for PR #29258)

2026-01-21 13:57.59: New job: build reason.3.17.3, using opam 2.0
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29258/head (1254c043ffa352731f4d34dd88feacb6acdb9f33)
                              on debian-13-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/29258/head" && git reset --hard 1254c043
git fetch origin master
git merge --no-edit 10a02a697b08f6d78a6c4c2cb9a76136afc7776d
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-13-ocaml-4.14@sha256:423b7147c04b7e40a2168c2d5b3c2e77064aa5b144995d90eb305e6eb6874610
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-2.0 /usr/bin/opam
RUN opam init --reinit -ni
RUN 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 depext -u || true
RUN opam pin add -k version -yn reason.3.17.3 3.17.3
RUN opam depext reason.3.17.3 && 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 "\"debian-13\""; 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:debian-13-ocaml-4.14@sha256:423b7147c04b7e40a2168c2d5b3c2e77064aa5b144995d90eb305e6eb6874610-reason.3.17.3-1254c043ffa352731f4d34dd88feacb6acdb9f33"
2026-01-21 13:57.59: Using OBuilder spec:
((from ocaml/opam:debian-13-ocaml-4.14@sha256:423b7147c04b7e40a2168c2d5b3c2e77064aa5b144995d90eb305e6eb6874610)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "sudo ln -f /usr/bin/opam-2.0 /usr/bin/opam"))
 (run (network host)
      (shell "opam init --reinit --config .opamrc-sandbox -ni"))
 (run (shell "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 depext -u || 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 depext reason.3.17.3 && 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 \"\\\"debian-13\\\"\"; 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 14:01.52: Got resource from pool OCluster
Building on odawa.caelum.ci.dev
All commits already cached
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:debian-13-ocaml-4.14@sha256:423b7147c04b7e40a2168c2d5b3c2e77064aa5b144995d90eb305e6eb6874610)
2026-01-21 14:01.56 ---> using "af1ebcbd2c0e8a2a9bd41972ff6b1f2b27bf9dd52d9b45e003eb0eaad274be03" from cache

/: (user (uid 1000) (gid 1000))

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.0 /usr/bin/opam"))
2026-01-21 14:01.56 ---> using "1915fe0ebcf17e16f2849ce2902f1a7180323360514d269c12b56b364868d5ea" from cache

/home/opam: (run (network host)
                 (shell "opam init --reinit --config .opamrc-sandbox -ni"))
[NOTE] Will configure 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.

[WARNING] Recommended dependencies -- most packages rely on these:
  - m4

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
default (at git+file:///home/opam/opam-repository): 
    [INFO] opam 2.1 and 2.2 include many performance and security improvements over 2.0; please consider upgrading (https://opam.ocaml.org/doc/Install.html)

2026-01-21 14:01.56 ---> using "b834a09d4d003d9d54d03f8e6105734517e6e0d09259d6e48c591049cf7a1841" from cache

/home/opam: (run (shell "opam config report"))
# opam config report
# opam-version      2.0.10 (adc1e1829a2bef5b240746df80341b508290fe3b) 
# self-upgrade      no
# system            arch=x86_64 os=linux os-distribution=debian os-version=13
# solver            builtin-mccs+glpk
# install-criteria  -removed,-count[version-lag,request],-count[version-lag,changed],-changed
# upgrade-criteria  -removed,-count[version-lag,solution],-new
# jobs              71
# repositories      1 (version-controlled)
# pinned            1 (version)
# current-switch    4.14
2026-01-21 14:01.56 ---> using "0b257ea3efea6094ad4dc7022aafd1dfa6a33fd096b6fce5d5584ca3e8724594" 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 14:01.56 ---> using "c51601865a9b07aaf55b6c3c084a393b4a05bb439d41737576e02a73358455d8" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2026-01-21 14:02.05 ---> saved as "6e5be701e91ca4c7ecc891cf0bd862b4235c4ee0a218bde2c3b45adf73ee9bf5"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
default (at file:///home/opam/opam-repository): 
    [INFO] opam 2.1 and 2.2 include many performance and security improvements over 2.0; please consider upgrading (https://opam.ocaml.org/doc/Install.html)

2026-01-21 14:02.17 ---> saved as "0e701d86b19b228cc5db9c22a464717f510720200df159939cedb6936c407900"

/home/opam: (run (network host)
                 (shell "opam depext -u || true"))
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# No extra OS packages requirements found.
# All required OS packages found.
The following command needs to be run through "sudo":
    apt-get update
Get:1 http://deb.debian.org/debian trixie InRelease [140 kB]
Get:2 http://deb.debian.org/debian trixie-updates InRelease [47.3 kB]
Get:3 http://deb.debian.org/debian-security trixie-security InRelease [43.4 kB]
Get:4 http://deb.debian.org/debian trixie/main amd64 Packages [9670 kB]
Get:5 http://deb.debian.org/debian-security trixie-security/main amd64 Packages [96.3 kB]
Fetched 9998 kB in 1s (11.5 MB/s)
Reading package lists...
# OS package update successful
2026-01-21 14:02.19 ---> saved as "7a01fb31a932070d835cd02c9e5fb91baa87fba113e1ffdad891ebc9459779bc"

/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:02.20 ---> saved as "a71a94cfd4493300e9919988ea5cc230a133db7a7049100829337ff8a156fb07"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam depext reason.3.17.3 && 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 \"\\\"debian-13\\\"\"; 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"))
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# No extra OS packages requirements found.
# All required OS packages found.
reason.3.17.3 is not installed. Install it? [Y/n] y
The following actions will be performed:
  - install ocamlbuild          0.16.1   [required by menhir]
  - install dune                3.21.0   [required by reason]
  - install ocamlfind           1.9.8    [required by reason]
  - install cmdliner            2.1.0    [required by reason]
  - install stdlib-shims        0.3.0    [required by ppxlib]
  - install sexplib0            v0.17.0  [required by ppxlib]
  - install ppx_derivers        1.2.1    [required by ppxlib]
  - install ocaml-compiler-libs v0.12.4  [required by ppxlib]
  - install fix                 20250919 [required by reason]
  - install dune-build-info     3.21.0   [required by reason]
  - install cppo                1.8.0    [required by reason]
  - install menhir              20190924 [required by reason]
  - install ppxlib              0.37.0   [required by reason]
  - install merlin-extend       0.6.2    [required by reason]
  - install reason              3.17.3*
===== 15 to install =====

<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[cmdliner.2.1.0] found in cache
[cppo.1.8.0] found in cache
[dune.3.21.0] found in cache
[dune-build-info.3.21.0] found in cache
[fix.20250919] found in cache
[menhir.20190924] found in cache
[merlin-extend.0.6.2] found in cache
[ocaml-compiler-libs.v0.12.4] found in cache
[ocamlbuild.0.16.1] found in cache
[ocamlfind.1.9.8] found in cache
[ppx_derivers.1.2.1] found in cache
[ppxlib.0.37.0] found in cache
[reason.3.17.3] found in cache
[sexplib0.v0.17.0] found in cache
[stdlib-shims.0.3.0] found in cache

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed cmdliner.2.1.0
-> installed ocamlfind.1.9.8
-> installed ocamlbuild.0.16.1
-> installed dune.3.21.0
-> installed ppx_derivers.1.2.1
-> installed cppo.1.8.0
-> installed stdlib-shims.0.3.0
-> installed fix.20250919
-> installed ocaml-compiler-libs.v0.12.4
-> installed sexplib0.v0.17.0
-> installed dune-build-info.3.21.0
-> installed merlin-extend.0.6.2
-> installed menhir.20190924
-> installed ppxlib.0.37.0
-> installed reason.3.17.3
Done.
# Run eval $(opam env) to update the current shell environment
2026-01-21 14:03.13 ---> saved as "378850965ffb639f280084405fc1d713889077098e1b0059034e90e438647c94"
Job succeeded
2026-01-21 14:03.18: Job succeeded