(for PR #27360)

2025-10-17 13:54.18: New job: build conf-rocksdb-ge-5-17-2.5.17.2, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/27360/head (879cce6341a5b8d26f5989e5001751782571cb8b)
                              on debian-13-ocaml-5.4/arm64

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 5bf570252bd9fee71938b828ca0b86573c1e3355
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-13-ocaml-5.4@sha256:ea909386d7611ecac40f19fa964bcb6e5ca9c61edef813ccb5bdef707ead89c3
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 conf-rocksdb-ge-5-17-2.5.17.2 5.17.2
RUN 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-10-17 13:54.18: Using cache hint "ocaml/opam:debian-13-ocaml-5.4@sha256:ea909386d7611ecac40f19fa964bcb6e5ca9c61edef813ccb5bdef707ead89c3-conf-rocksdb-ge-5-17-2.5.17.2-879cce6341a5b8d26f5989e5001751782571cb8b"
2025-10-17 13:54.18: Using OBuilder spec:
((from ocaml/opam:debian-13-ocaml-5.4@sha256:ea909386d7611ecac40f19fa964bcb6e5ca9c61edef813ccb5bdef707ead89c3)
 (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 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 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-10-17 13:54.18: Connecting to build cluster…
2025-10-17 13:54.18: Waiting for resource in pool OCluster
2025-10-17 13:54.29: Waiting for worker…
2025-10-17 14:12.59: Got resource from pool OCluster
Building on okypous.caelum.ci.dev
All commits already cached
Updating files:  69% (12982/18563)
Updating files:  70% (12995/18563)
Updating files:  71% (13180/18563)
Updating files:  72% (13366/18563)
Updating files:  73% (13551/18563)
Updating files:  74% (13737/18563)
Updating files:  75% (13923/18563)
Updating files:  76% (14108/18563)
Updating files:  77% (14294/18563)
Updating files:  78% (14480/18563)
Updating files:  79% (14665/18563)
Updating files:  80% (14851/18563)
Updating files:  81% (15037/18563)
Updating files:  82% (15222/18563)
Updating files:  83% (15408/18563)
Updating files:  84% (15593/18563)
Updating files:  85% (15779/18563)
Updating files:  86% (15965/18563)
Updating files:  87% (16150/18563)
Updating files:  88% (16336/18563)
Updating files:  89% (16522/18563)
Updating files:  90% (16707/18563)
Updating files:  91% (16893/18563)
Updating files:  92% (17078/18563)
Updating files:  93% (17264/18563)
Updating files:  94% (17450/18563)
Updating files:  95% (17635/18563)
Updating files:  96% (17821/18563)
Updating files:  97% (18007/18563)
Updating files:  98% (18192/18563)
Updating files:  99% (18378/18563)
Updating files: 100% (18563/18563)
Updating files: 100% (18563/18563), done.
HEAD is now at 5bf570252b Merge pull request #28700 from drjdn/opam-publish-p5scm.0.5.0
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:ea909386d7611ecac40f19fa964bcb6e5ca9c61edef813ccb5bdef707ead89c3)
Unable to find image 'ocaml/opam:debian-13-ocaml-5.4@sha256:ea909386d7611ecac40f19fa964bcb6e5ca9c61edef813ccb5bdef707ead89c3' locally
docker.io/ocaml/opam@sha256:ea909386d7611ecac40f19fa964bcb6e5ca9c61edef813ccb5bdef707ead89c3: Pulling from ocaml/opam
Digest: sha256:ea909386d7611ecac40f19fa964bcb6e5ca9c61edef813ccb5bdef707ead89c3
Status: Downloaded newer image for ocaml/opam@sha256:ea909386d7611ecac40f19fa964bcb6e5ca9c61edef813ccb5bdef707ead89c3
2025-10-17 14:13.01 ---> using "c542b4b16164a3303c6821c1810100160f05db1b2f695927294116434f7dcfbe" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2025-10-17 14:13.01 ---> using "c29fa14b43a08ea6b81ef1cbb02fed5f98bee514773afcbe8f13d0d266d91bf9" 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
2025-10-17 14:13.01 ---> using "c68e2aa95eed4f0382087cd3e2134547bd32568761b2a270d39266bdb2cbd833" 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.4.1
# self-upgrade         no
# system               arch=arm64 os=linux os-distribution=debian os-version=13
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 79
# 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
2025-10-17 14:13.01 ---> using "c607566817e666d584c47fe43a2f1cd739d1646adab55063660a334db1be22f5" 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-10-17 14:13.01 ---> using "42e3396a2daf960772a2154a011aaf75097f635eed61c4d37072476daf6ff4d9" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-10-17 14:13.02 ---> using "ed1ae47432c89566569757ce544e8333c8ae38ff64789f83ba54d64bea4c1dba" from cache

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-10-17 14:13.21 ---> saved as "0b8e8ff0e35bb1da030b42140926b3653c28191a5919991da11d13977f3e2ffa"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/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 arm64 Packages [57.3 kB]
- Fetched 148 kB in 0s (731 kB/s)
- Reading package lists...
2025-10-17 14:13.23 ---> saved as "a7a1b05ed3f1aec88cf07856f036f818d906a9908ba1f4b80dabffd39b94d263"

/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-10-17 14:13.25 ---> saved as "d831f06fea126c491753a1655571de9469ddbd4c4707212f901a3c2c5d10604b"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "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"))
conf-rocksdb-ge-5-17-2.5.17.2 is not installed. Install it? [Y/n] y
The following actions will be performed:
=== install 3 packages
  - install conf-pkg-config        4               [required by conf-rocksdb-ge-5-17-2]
  - install conf-rocksdb           1               [required by conf-rocksdb-ge-5-17-2]
  - install conf-rocksdb-ge-5-17-2 5.17.2 (pinned)

The following system packages will first need to be installed:
    librocksdb-dev pkg-config

<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>

opam believes some required external dependencies are missing. opam can:
> 1. Run apt-get to install them (may need root/sudo access)
  2. Display the recommended apt-get command and wait while you run it manually (e.g. in another terminal)
  3. Continue anyway, and, upon success, permanently register that this external dependency is present, but not detectable
  4. Abort the installation

[1/2/3/4] 1

+ /usr/bin/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 ... 20767 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:arm64.
- Preparing to unpack .../01-libbz2-dev_1.0.8-6_arm64.deb ...
- Unpacking libbz2-dev:arm64 (1.0.8-6) ...
- Selecting previously unselected package libgflags2.2.
- Preparing to unpack .../02-libgflags2.2_2.2.2-2+b1_arm64.deb ...
- Unpacking libgflags2.2 (2.2.2-2+b1) ...
- Selecting previously unselected package libgflags-dev.
- Preparing to unpack .../03-libgflags-dev_2.2.2-2+b1_arm64.deb ...
- Unpacking libgflags-dev (2.2.2-2+b1) ...
- Selecting previously unselected package libxxhash-dev:arm64.
- Preparing to unpack .../04-libxxhash-dev_0.8.3-2_arm64.deb ...
- Unpacking libxxhash-dev:arm64 (0.8.3-2) ...
- Selecting previously unselected package liblz4-dev:arm64.
- Preparing to unpack .../05-liblz4-dev_1.10.0-4_arm64.deb ...
- Unpacking liblz4-dev:arm64 (1.10.0-4) ...
- Selecting previously unselected package libpkgconf3:arm64.
- Preparing to unpack .../06-libpkgconf3_1.8.1-4_arm64.deb ...
- Unpacking libpkgconf3:arm64 (1.8.1-4) ...
- Selecting previously unselected package libsnappy1v5:arm64.
- Preparing to unpack .../07-libsnappy1v5_1.2.2-1_arm64.deb ...
- Unpacking libsnappy1v5:arm64 (1.2.2-1) ...
- Selecting previously unselected package librocksdb9.10.
- Preparing to unpack .../08-librocksdb9.10_9.10.0-1_arm64.deb ...
- Unpacking librocksdb9.10 (9.10.0-1) ...
- Selecting previously unselected package libsnappy-dev:arm64.
- Preparing to unpack .../09-libsnappy-dev_1.2.2-1_arm64.deb ...
- Unpacking libsnappy-dev:arm64 (1.2.2-1) ...
- Selecting previously unselected package zlib1g-dev:arm64.
- Preparing to unpack .../10-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1+b1_arm64.deb ...
- Unpacking zlib1g-dev:arm64 (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_arm64.deb ...
- Unpacking librocksdb-dev (9.10.0-1) ...
- Selecting previously unselected package pkgconf-bin.
- Preparing to unpack .../12-pkgconf-bin_1.8.1-4_arm64.deb ...
- Unpacking pkgconf-bin (1.8.1-4) ...
- Selecting previously unselected package pkgconf:arm64.
- Preparing to unpack .../13-pkgconf_1.8.1-4_arm64.deb ...
- Unpacking pkgconf:arm64 (1.8.1-4) ...
- Selecting previously unselected package pkg-config:arm64.
- Preparing to unpack .../14-pkg-config_1.8.1-4_arm64.deb ...
- Unpacking pkg-config:arm64 (1.8.1-4) ...
- Setting up bzip2-doc (1.0.8-6) ...
- Setting up libsnappy1v5:arm64 (1.2.2-1) ...
- Setting up libpkgconf3:arm64 (1.8.1-4) ...
- Setting up pkgconf-bin (1.8.1-4) ...
- Setting up libxxhash-dev:arm64 (0.8.3-2) ...
- Setting up zlib1g-dev:arm64 (1:1.3.dfsg+really1.3.1-1+b1) ...
- Setting up libgflags2.2 (2.2.2-2+b1) ...
- Setting up libbz2-dev:arm64 (1.0.8-6) ...
- Setting up libsnappy-dev:arm64 (1.2.2-1) ...
- Setting up pkgconf:arm64 (1.8.1-4) ...
- Setting up libgflags-dev (2.2.2-2+b1) ...
- Setting up liblz4-dev:arm64 (1.10.0-4) ...
- Setting up pkg-config:arm64 (1.8.1-4) ...
- Setting up librocksdb9.10 (9.10.0-1) ...
- Setting up librocksdb-dev (9.10.0-1) ...
- Processing triggers for libc-bin (2.41-12) ...

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved conf-rocksdb.1  (cached)
-> installed conf-pkg-config.4
-> installed conf-rocksdb.1
-> installed conf-rocksdb-ge-5-17-2.5.17.2
Done.
# To update the current shell environment, run: eval $(opam env)
2025-10-17 14:13.34 ---> saved as "7089d98f72f5c323be2f97c41cf18285017335c626993ead078fb8d1bfa11856"
Job succeeded
2025-10-17 14:13.42: Job succeeded