(for PR #29484)

2026-03-12 11:12.27: New job: build colibrilib.0.5, using opam 2.0
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29484/head (1b330fadfbca45ff79eea30cec2cd15a1b2a42b9)
                              on debian-13-ocaml-5.4/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/29484/head" && git reset --hard 1b330fad
git fetch origin master
git merge --no-edit 6d75ddf1d37818547f88125983edb2e55e55ed23
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-13-ocaml-5.4@sha256:bd342cbd7766c453282fdafbc2e565ae3361320ec344722cf4372b782e4a97f6
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 colibrilib.0.5 0.5
RUN opam depext colibrilib.0.5 && opam reinstall colibrilib.0.5; \
    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" != 'colibrilib.0.5' && 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-03-12 11:12.27: Using cache hint "ocaml/opam:debian-13-ocaml-5.4@sha256:bd342cbd7766c453282fdafbc2e565ae3361320ec344722cf4372b782e4a97f6-colibrilib.0.5-1b330fadfbca45ff79eea30cec2cd15a1b2a42b9"
2026-03-12 11:12.27: Using OBuilder spec:
((from ocaml/opam:debian-13-ocaml-5.4@sha256:bd342cbd7766c453282fdafbc2e565ae3361320ec344722cf4372b782e4a97f6)
 (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 colibrilib.0.5 0.5"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam depext colibrilib.0.5 && opam reinstall colibrilib.0.5;\
             \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\" != 'colibrilib.0.5' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2026-03-12 11:12.27: Waiting for resource in pool OCluster
2026-03-12 11:12.33: Waiting for worker…
2026-03-12 11:14.27: Got resource from pool OCluster
Building on eumache
All commits already cached
Updating files:  80% (14927/18436)
Updating files:  81% (14934/18436)
Updating files:  82% (15118/18436)
Updating files:  83% (15302/18436)
Updating files:  84% (15487/18436)
Updating files:  85% (15671/18436)
Updating files:  86% (15855/18436)
Updating files:  87% (16040/18436)
Updating files:  88% (16224/18436)
Updating files:  89% (16409/18436)
Updating files:  90% (16593/18436)
Updating files:  91% (16777/18436)
Updating files:  92% (16962/18436)
Updating files:  93% (17146/18436)
Updating files:  94% (17330/18436)
Updating files:  95% (17515/18436)
Updating files:  96% (17699/18436)
Updating files:  97% (17883/18436)
Updating files:  98% (18068/18436)
Updating files:  99% (18252/18436)
Updating files: 100% (18436/18436)
Updating files: 100% (18436/18436), done.
HEAD is now at 6d75ddf1d3 Merge pull request #29495 from toots/opam-publish-posix-bindings.4.0.2
Merge made by the 'ort' strategy.
Auto packing the repository in the background for optimum performance.
See "git help gc" for manual housekeeping.
warning: The last gc run reported the following. Please correct the root cause
and remove .git/gc.log
Automatic cleanup will not be performed until the file is removed.

warning: There are too many unreachable loose objects; run 'git prune' to remove them.

 packages/colibri2/colibri2.0.5/opam               | 70 +++++++++++++++++++++++
 packages/colibrics/colibrics.0.5/opam             | 50 ++++++++++++++++
 packages/colibrilib-why3/colibrilib-why3.0.5/opam | 40 +++++++++++++
 packages/colibrilib/colibrilib.0.5/opam           | 40 +++++++++++++
 4 files changed, 200 insertions(+)
 create mode 100644 packages/colibri2/colibri2.0.5/opam
 create mode 100644 packages/colibrics/colibrics.0.5/opam
 create mode 100644 packages/colibrilib-why3/colibrilib-why3.0.5/opam
 create mode 100644 packages/colibrilib/colibrilib.0.5/opam

(from ocaml/opam:debian-13-ocaml-5.4@sha256:bd342cbd7766c453282fdafbc2e565ae3361320ec344722cf4372b782e4a97f6)
2026-03-12 11:14.29 ---> using "41eea30e3f639c18d8cf57c309ec76919ec7b2398036f7e41744cbce59a133d3" 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-03-12 11:14.29 ---> using "41b749af2f977b0d27050ddb13db47406d94530853b7be39988044ee4e817c82" 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-03-12 11:14.29 ---> using "a1ca45db8f90fe6efd21fd8d46b8f2a4cb5d1ef5bbb5d9aafbd920a9435d03ae" 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    5.4
2026-03-12 11:14.29 ---> using "6c47ad3815293a4c6139e38cf4688714f95f13425af2434d0537277ff2a53c43" 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-03-12 11:14.29 ---> using "3a172977adb40597910315b682600ca9e6438d170b899639afdd63ae01bff079" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2026-03-12 11:14.37 ---> saved as "e657a914ff277529c48ad6e20fc790959b9eb60444eb54350dc416f278e211dd"

/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-03-12 11:14.54 ---> saved as "0c8a6f58c780a5234c8ad9c5838762445a288c0d0027ee0d630d1e016ea60b51"

/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
Hit:1 http://deb.debian.org/debian trixie InRelease
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-security trixie-security/main amd64 Packages [109 kB]
Fetched 199 kB in 0s (1700 kB/s)
Reading package lists...
# OS package update successful
2026-03-12 11:14.57 ---> saved as "4d58d5c4833ec25e4c04627e0c6122bcb55dcff0163e822950ab1c957753f5af"

/home/opam: (run (shell "opam pin add -k version -yn colibrilib.0.5 0.5"))
colibrilib is now pinned to version 0.5
2026-03-12 11:14.59 ---> saved as "edb74abe8e6bdb49b10eec8d3408844f9f7c1291e0a0af7da604c6e524a777b4"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam depext colibrilib.0.5 && opam reinstall colibrilib.0.5;\
                        \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\" != 'colibrilib.0.5' && 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
# The following system packages are needed:
libgmp-dev
pkg-config
The following command needs to be run through "sudo":
    apt-get install -qq -yy libgmp-dev pkg-config
Selecting previously unselected package libgmpxx4ldbl:amd64.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 20654 files and directories currently installed.)
Preparing to unpack .../0-libgmpxx4ldbl_2%3a6.3.0+dfsg-3_amd64.deb ...
Unpacking libgmpxx4ldbl:amd64 (2:6.3.0+dfsg-3) ...
Selecting previously unselected package libgmp-dev:amd64.
Preparing to unpack .../1-libgmp-dev_2%3a6.3.0+dfsg-3_amd64.deb ...
Unpacking libgmp-dev:amd64 (2:6.3.0+dfsg-3) ...
Selecting previously unselected package libpkgconf3:amd64.
Preparing to unpack .../2-libpkgconf3_1.8.1-4_amd64.deb ...
Unpacking libpkgconf3:amd64 (1.8.1-4) ...
Selecting previously unselected package pkgconf-bin.
Preparing to unpack .../3-pkgconf-bin_1.8.1-4_amd64.deb ...
Unpacking pkgconf-bin (1.8.1-4) ...
Selecting previously unselected package pkgconf:amd64.
Preparing to unpack .../4-pkgconf_1.8.1-4_amd64.deb ...
Unpacking pkgconf:amd64 (1.8.1-4) ...
Selecting previously unselected package pkg-config:amd64.
Preparing to unpack .../5-pkg-config_1.8.1-4_amd64.deb ...
Unpacking pkg-config:amd64 (1.8.1-4) ...
Setting up libpkgconf3:amd64 (1.8.1-4) ...
Setting up libgmpxx4ldbl:amd64 (2:6.3.0+dfsg-3) ...
Setting up pkgconf-bin (1.8.1-4) ...
Setting up libgmp-dev:amd64 (2:6.3.0+dfsg-3) ...
Setting up pkgconf:amd64 (1.8.1-4) ...
Setting up pkg-config:amd64 (1.8.1-4) ...
Processing triggers for libc-bin (2.41-12+deb13u1) ...
# OS packages installation successful
colibrilib.0.5 is not installed. Install it? [Y/n] y
The following actions will be performed:
  - install ocamlfind  1.9.8  [required by zarith]
  - install conf-gmp   5      [required by zarith]
  - install dune       3.21.1 [required by colibrilib]
  - install zarith     1.13   [required by colibrilib]
  - install colibrilib 0.5*
===== 5 to install =====

<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[colibrilib.0.5] found in cache
[dune.3.21.1] found in cache
[ocamlfind.1.9.8] found in cache
[zarith.1.13] found in cache

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed conf-gmp.5
-> installed ocamlfind.1.9.8
-> installed zarith.1.13
-> installed dune.3.21.1
-> installed colibrilib.0.5
Done.
# Run eval $(opam env) to update the current shell environment
2026-03-12 11:16.14 ---> saved as "28da10d4b659bedd40d4921298da1a4ecd9b33f5a0b64dc3e090501768c7afa4"
Job succeeded
2026-03-12 11:16.24: Job succeeded