(for PR #27360)

2025-10-17 13:54.18: New job: build ocaml-rocksdb.0.02, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/27360/head (879cce6341a5b8d26f5989e5001751782571cb8b)
                              on debian-unstable-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 5bf570252bd9fee71938b828ca0b86573c1e3355
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-unstable-ocaml-5.4@sha256:0c30ce84fcb12e10ba8476926a10dec2974d18e60bd5a8a435a11049c260eea0
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 ocaml-rocksdb.0.02 0.02
RUN opam reinstall ocaml-rocksdb.0.02; \
    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-unstable\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'ocaml-rocksdb.0.02' && 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-unstable-ocaml-5.4@sha256:0c30ce84fcb12e10ba8476926a10dec2974d18e60bd5a8a435a11049c260eea0-ocaml-rocksdb.0.02-879cce6341a5b8d26f5989e5001751782571cb8b"
2025-10-17 13:54.18: Using OBuilder spec:
((from ocaml/opam:debian-unstable-ocaml-5.4@sha256:0c30ce84fcb12e10ba8476926a10dec2974d18e60bd5a8a435a11049c260eea0)
 (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 ocaml-rocksdb.0.02 0.02"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall ocaml-rocksdb.0.02;\
             \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-unstable\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'ocaml-rocksdb.0.02' && 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 14:29.03: Waiting for worker…
2025-10-17 14:31.54: Got resource from pool OCluster
Building on asteria.caelum.ci.dev
All commits already cached
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-unstable-ocaml-5.4@sha256:0c30ce84fcb12e10ba8476926a10dec2974d18e60bd5a8a435a11049c260eea0)
Unable to find image 'ocaml/opam:debian-unstable-ocaml-5.4@sha256:0c30ce84fcb12e10ba8476926a10dec2974d18e60bd5a8a435a11049c260eea0' locally
docker.io/ocaml/opam@sha256:0c30ce84fcb12e10ba8476926a10dec2974d18e60bd5a8a435a11049c260eea0: Pulling from ocaml/opam
2e268ef41e67: Already exists
326b3609ce43: Already exists
7394737016a6: Already exists
185b28e1624b: Already exists
3e706423dfed: Already exists
7241f2237d13: Already exists
ac1427a34992: Already exists
74a2abdc75b2: Already exists
244f8b188d6f: Already exists
2cd3331ab10f: Already exists
859a64f8acb7: Already exists
04d0647ec61c: Already exists
5109f263045e: Already exists
5f85bb9d020c: Already exists
82cb2514d54d: Already exists
b69010dbda0a: Already exists
b69010dbda0a: Already exists
1ed400b2ff5b: Already exists
4c39ddc11631: Already exists
fbf105711af5: Already exists
5f6f7d5be619: Already exists
4f4fb700ef54: Already exists
140d996660e6: Already exists
264bd7378d82: Already exists
e5196f2b7a75: Already exists
207932b5f8f5: Already exists
16d1a39f001e: Already exists
818e3cd647a4: Already exists
90bd8dc55be2: Already exists
00d945754922: Already exists
aecaf2e50f38: Already exists
c0a762ad6f08: Already exists
f0497f025fb4: Already exists
0402684c4c01: Already exists
4d9d7a0688af: Already exists
2bfee3d59a95: Already exists
d5114fd4991c: Already exists
0db6bfc52f8c: Already exists
337f3d55661c: Already exists
f7ce143751ea: Already exists
ddeb22a78197: Pulling fs layer
3fc37411293b: Pulling fs layer
08b4c5ae83b9: Pulling fs layer
3a970ca19d5e: Pulling fs layer
ddeb22a78197: Waiting
48db61caba21: Pulling fs layer
c995c353dea9: Pulling fs layer
08b4c5ae83b9: Waiting
3a970ca19d5e: Waiting
3fc37411293b: Waiting
23048f86155e: Pulling fs layer
48db61caba21: Waiting
23048f86155e: Waiting
ddeb22a78197: Verifying Checksum
ddeb22a78197: Download complete
ddeb22a78197: Pull complete
3fc37411293b: Verifying Checksum
3fc37411293b: Download complete
08b4c5ae83b9: Download complete
48db61caba21: Verifying Checksum
48db61caba21: Download complete
3fc37411293b: Pull complete
08b4c5ae83b9: Pull complete
c995c353dea9: Download complete
23048f86155e: Verifying Checksum
23048f86155e: Download complete
3a970ca19d5e: Verifying Checksum
3a970ca19d5e: Download complete
3a970ca19d5e: Pull complete
48db61caba21: Pull complete
c995c353dea9: Pull complete
23048f86155e: Pull complete
Digest: sha256:0c30ce84fcb12e10ba8476926a10dec2974d18e60bd5a8a435a11049c260eea0
Status: Downloaded newer image for ocaml/opam@sha256:0c30ce84fcb12e10ba8476926a10dec2974d18e60bd5a8a435a11049c260eea0
2025-10-17 14:32.04 ---> using "2ad21beb39436f35ee6e61f5fbb1401b26ef3cbda48339fe3bca5ee7b6a06290" 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:32.04 ---> using "31d157e5f6200ef57533049e23c01f178a3281f6f076891b93dc02efcbfd275c" 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:32.04 ---> using "b580b174de5073ef002e78fc418fcc681acd6dbeb618bd8f99104035b97a65a8" 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=x86_64 os=linux os-distribution=debian os-version=unknown
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 255
# 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:32.04 ---> using "97c589f7967cefc49f6c09ce40c644a9ff54a490cabc822398d140dacb0ffb3b" 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:32.04 ---> using "ac129cb21e24acf7c90d88669a7bd130562256ad491cbe1cb6353ca3606db255" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-10-17 14:32.09 ---> saved as "d0043daa2bbb2bce794f7e7e11f72dd84217803a4645b6654a28177482f93508"

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

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Get:1 http://deb.debian.org/debian unstable InRelease [207 kB]
- Get:2 http://deb.debian.org/debian unstable/main amd64 Packages.diff/Index [63.6 kB]
- Get:3 http://deb.debian.org/debian unstable/main amd64 Packages T-2025-10-17-0808.00-F-2025-10-11-0806.55.pdiff [413 kB]
- Get:3 http://deb.debian.org/debian unstable/main amd64 Packages T-2025-10-17-0808.00-F-2025-10-11-0806.55.pdiff [413 kB]
- Fetched 683 kB in 1s (516 kB/s)
- Reading package lists...
2025-10-17 14:32.30 ---> saved as "6842ce3c9d0178363859d3e90de02db8f22e616e6ab6cc206c7c1d91812b7bea"

/home/opam: (run (shell "opam pin add -k version -yn ocaml-rocksdb.0.02 0.02"))
ocaml-rocksdb is now pinned to version 0.02
2025-10-17 14:32.30 ---> saved as "84ea914bd1295cfe7997b5a508ad22e1139d4c5c973ebe99b862c0be98318d68"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall ocaml-rocksdb.0.02;\
                        \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-unstable\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'ocaml-rocksdb.0.02' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
ocaml-rocksdb.0.02 is not installed. Install it? [Y/n] y
  * Missing dependency:
    - ocaml-rocksdb -> cppffigen -> pcre >= 7.5.0 -> conf-libpcre
    depends on the unavailable system package 'libpcre3-dev'. Use `--no-depexts' to attempt installation anyway, or it is possible that a depext package name in the opam file is incorrect.

No solution found, exiting
"/usr/bin/env" "bash" "-c" "opam reinstall ocaml-rocksdb.0.02;
        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-unstable\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'ocaml-rocksdb.0.02' && partial_fails="$partial_fails $pkg";
        done;
        test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}";
        exit 1" failed with exit status 20
2025-10-17 14:32.53: Job failed: Failed: Build failed
2025-10-17 14:32.53: Log analysis:
2025-10-17 14:32.53: >>> 
No solution found, exiting
 (score = 100)
2025-10-17 14:32.53: [SKIP] Package not available