(for PR #27360)

2025-11-10 16:55.42: New job: build conf-rocksdb-ge-5-17-2.5.17.2, using opam 2.0
                              from https://github.com/ocaml/opam-repository.git#refs/pull/27360/head (879cce6341a5b8d26f5989e5001751782571cb8b)
                              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/27360/head" && git reset --hard 879cce63
git fetch origin master
git merge --no-edit b6a264c784afa1e19f7a926fc10d49010ad12be4
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-13-ocaml-5.4@sha256:0b68f45799a4ff0af182b78277d652e076097f37cbcb04aa9d74bfbd7d300e58
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 conf-rocksdb-ge-5-17-2.5.17.2 5.17.2
RUN opam depext conf-rocksdb-ge-5-17-2.5.17.2 && opam reinstall conf-rocksdb-ge-5-17-2.5.17.2; \
    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" != 'conf-rocksdb-ge-5-17-2.5.17.2' && 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 .

2025-11-10 16:55.42: Using cache hint "ocaml/opam:debian-13-ocaml-5.4@sha256:0b68f45799a4ff0af182b78277d652e076097f37cbcb04aa9d74bfbd7d300e58-conf-rocksdb-ge-5-17-2.5.17.2-879cce6341a5b8d26f5989e5001751782571cb8b"
2025-11-10 16:55.42: Using OBuilder spec:
((from ocaml/opam:debian-13-ocaml-5.4@sha256:0b68f45799a4ff0af182b78277d652e076097f37cbcb04aa9d74bfbd7d300e58)
 (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 conf-rocksdb-ge-5-17-2.5.17.2 5.17.2"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam depext conf-rocksdb-ge-5-17-2.5.17.2 && opam reinstall conf-rocksdb-ge-5-17-2.5.17.2;\
             \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\" != 'conf-rocksdb-ge-5-17-2.5.17.2' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-11-10 16:55.42: Waiting for resource in pool OCluster
2025-11-10 21:12.58: Waiting for worker…
2025-11-10 21:17.23: Got resource from pool OCluster
Building on toxis.caelum.ci.dev
All commits already cached
Updating files:  69% (13063/18707)
Updating files:  70% (13095/18707)
Updating files:  71% (13282/18707)
Updating files:  72% (13470/18707)
Updating files:  73% (13657/18707)
Updating files:  74% (13844/18707)
Updating files:  75% (14031/18707)
Updating files:  76% (14218/18707)
Updating files:  77% (14405/18707)
Updating files:  78% (14592/18707)
Updating files:  79% (14779/18707)
Updating files:  80% (14966/18707)
Updating files:  81% (15153/18707)
Updating files:  82% (15340/18707)
Updating files:  83% (15527/18707)
Updating files:  84% (15714/18707)
Updating files:  85% (15901/18707)
Updating files:  86% (16089/18707)
Updating files:  87% (16276/18707)
Updating files:  88% (16463/18707)
Updating files:  89% (16650/18707)
Updating files:  90% (16837/18707)
Updating files:  91% (17024/18707)
Updating files:  92% (17211/18707)
Updating files:  93% (17398/18707)
Updating files:  94% (17585/18707)
Updating files:  95% (17772/18707)
Updating files:  96% (17959/18707)
Updating files:  97% (18146/18707)
Updating files:  98% (18333/18707)
Updating files:  99% (18520/18707)
Updating files: 100% (18707/18707)
Updating files: 100% (18707/18707), done.
HEAD is now at b6a264c784 Merge pull request #28853 from AltGr/catala100
Merge made by the 'ort' strategy.
 .../conf-rocksdb-ge-5-17-2.5.17.2/opam             | 37 ++++++++++++++
 packages/ocaml-rocksdb/ocaml-rocksdb.0.02/opam     | 59 ++++++++++++++++++++++
 2 files changed, 96 insertions(+)
 create mode 100644 packages/conf-rocksdb-ge-5-17-2/conf-rocksdb-ge-5-17-2.5.17.2/opam
 create mode 100644 packages/ocaml-rocksdb/ocaml-rocksdb.0.02/opam

(from ocaml/opam:debian-13-ocaml-5.4@sha256:0b68f45799a4ff0af182b78277d652e076097f37cbcb04aa9d74bfbd7d300e58)
2025-11-10 21:17.53 ---> using "9f1bc9b76367c8d29be355965b06cbbd4aeb05818e6e1915136daad8eabad361" 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"))
2025-11-10 21:17.53 ---> using "a1c0137067bb65a7ea8b87822659c70b2e7625c63e777247ecbfd440eade9a03" 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)

2025-11-10 21:17.53 ---> using "3981b0163d70e751309abe78f1f944fd5f81637aff18daf7391d29368e139c92" 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
2025-11-10 21:17.53 ---> using "6970807530dfb28bb919a5c2853c913ca01ad902ac6a3dd382fa9ee453a7d5e3" 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/"))
2025-11-10 21:17.53 ---> using "893e81f316285f3d12c0ef7bd80e6bbb382f1b6b175c780336d3861edcb9ea21" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-11-10 21:17.54 ---> using "268cd222e2c58de4ae2c005244a556ebfb5c910358d32b6cffe2c01c4bf2918b" from cache

/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)

2025-11-10 21:17.54 ---> using "5577c39069a2253d599946c66fe84ec6227d0687ca2f5c748d67c49a772feb67" from cache

/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 [69.3 kB]
Fetched 160 kB in 0s (1167 kB/s)
Reading package lists...
# OS package update successful
2025-11-10 21:17.54 ---> using "24dbf2c1ab0768d5c1efa16c2b7f8ba5c562e4d2dedf1987e1b8d657c70c3b1c" from cache

/home/opam: (run (shell "opam pin add -k version -yn conf-rocksdb-ge-5-17-2.5.17.2 5.17.2"))
conf-rocksdb-ge-5-17-2 is now pinned to version 5.17.2
2025-11-10 21:17.59 ---> saved as "c52e43c3ec5d51c6846bbeb0a211287ae21e84db26106ae9717e76d58c6e18f4"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam depext conf-rocksdb-ge-5-17-2.5.17.2 && opam reinstall conf-rocksdb-ge-5-17-2.5.17.2;\
                        \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\" != 'conf-rocksdb-ge-5-17-2.5.17.2' && 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:
librocksdb-dev
pkg-config
The following command needs to be run through "sudo":
    apt-get install -qq -yy librocksdb-dev pkg-config
Selecting previously unselected package bzip2-doc.
(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 ... 20653 files and directories currently installed.)
Preparing to unpack .../00-bzip2-doc_1.0.8-6_all.deb ...
Unpacking bzip2-doc (1.0.8-6) ...
Selecting previously unselected package libbz2-dev:amd64.
Preparing to unpack .../01-libbz2-dev_1.0.8-6_amd64.deb ...
Unpacking libbz2-dev:amd64 (1.0.8-6) ...
Selecting previously unselected package libgflags2.2.
Preparing to unpack .../02-libgflags2.2_2.2.2-2_amd64.deb ...
Unpacking libgflags2.2 (2.2.2-2) ...
Selecting previously unselected package libgflags-dev.
Preparing to unpack .../03-libgflags-dev_2.2.2-2_amd64.deb ...
Unpacking libgflags-dev (2.2.2-2) ...
Selecting previously unselected package libxxhash-dev:amd64.
Preparing to unpack .../04-libxxhash-dev_0.8.3-2_amd64.deb ...
Unpacking libxxhash-dev:amd64 (0.8.3-2) ...
Selecting previously unselected package liblz4-dev:amd64.
Preparing to unpack .../05-liblz4-dev_1.10.0-4_amd64.deb ...
Unpacking liblz4-dev:amd64 (1.10.0-4) ...
Selecting previously unselected package libpkgconf3:amd64.
Preparing to unpack .../06-libpkgconf3_1.8.1-4_amd64.deb ...
Unpacking libpkgconf3:amd64 (1.8.1-4) ...
Selecting previously unselected package libsnappy1v5:amd64.
Preparing to unpack .../07-libsnappy1v5_1.2.2-1_amd64.deb ...
Unpacking libsnappy1v5:amd64 (1.2.2-1) ...
Selecting previously unselected package librocksdb9.10.
Preparing to unpack .../08-librocksdb9.10_9.10.0-1+b1_amd64.deb ...
Unpacking librocksdb9.10 (9.10.0-1+b1) ...
Selecting previously unselected package libsnappy-dev:amd64.
Preparing to unpack .../09-libsnappy-dev_1.2.2-1_amd64.deb ...
Unpacking libsnappy-dev:amd64 (1.2.2-1) ...
Selecting previously unselected package zlib1g-dev:amd64.
Preparing to unpack .../10-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1+b1_amd64.deb ...
Unpacking zlib1g-dev:amd64 (1:1.3.dfsg+really1.3.1-1+b1) ...
Selecting previously unselected package librocksdb-dev.
Preparing to unpack .../11-librocksdb-dev_9.10.0-1+b1_amd64.deb ...
Unpacking librocksdb-dev (9.10.0-1+b1) ...
Selecting previously unselected package pkgconf-bin.
Preparing to unpack .../12-pkgconf-bin_1.8.1-4_amd64.deb ...
Unpacking pkgconf-bin (1.8.1-4) ...
Selecting previously unselected package pkgconf:amd64.
Preparing to unpack .../13-pkgconf_1.8.1-4_amd64.deb ...
Unpacking pkgconf:amd64 (1.8.1-4) ...
Selecting previously unselected package pkg-config:amd64.
Preparing to unpack .../14-pkg-config_1.8.1-4_amd64.deb ...
Unpacking pkg-config:amd64 (1.8.1-4) ...
Setting up bzip2-doc (1.0.8-6) ...
Setting up libsnappy1v5:amd64 (1.2.2-1) ...
Setting up libpkgconf3:amd64 (1.8.1-4) ...
Setting up pkgconf-bin (1.8.1-4) ...
Setting up libxxhash-dev:amd64 (0.8.3-2) ...
Setting up zlib1g-dev:amd64 (1:1.3.dfsg+really1.3.1-1+b1) ...
Setting up libgflags2.2 (2.2.2-2) ...
Setting up libbz2-dev:amd64 (1.0.8-6) ...
Setting up libsnappy-dev:amd64 (1.2.2-1) ...
Setting up pkgconf:amd64 (1.8.1-4) ...
Setting up libgflags-dev (2.2.2-2) ...
Setting up liblz4-dev:amd64 (1.10.0-4) ...
Setting up pkg-config:amd64 (1.8.1-4) ...
Setting up librocksdb9.10 (9.10.0-1+b1) ...
Setting up librocksdb-dev (9.10.0-1+b1) ...
Processing triggers for libc-bin (2.41-12) ...
# OS packages installation successful
conf-rocksdb-ge-5-17-2.5.17.2 is not installed. Install it? [Y/n] y
The following actions will be performed:
  - install conf-rocksdb           1       [required by conf-rocksdb-ge-5-17-2]
  - install conf-pkg-config        4       [required by conf-rocksdb-ge-5-17-2]
  - install conf-rocksdb-ge-5-17-2 5.17.2*
===== 3 to install =====

<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed conf-pkg-config.4
-> installed conf-rocksdb.1
-> installed conf-rocksdb-ge-5-17-2.5.17.2
Done.
# Run eval $(opam env) to update the current shell environment
2025-11-10 21:18.18 ---> saved as "1251ada3cf3ea50c0972c819516afef3f35650895627175c18d5bdfd9349e65f"
Job succeeded
2025-11-10 21:18.28: Job succeeded