(for PR #27360)

2025-02-12 09:42.45: 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 ubuntu-20.04-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/27360/head" && git reset --hard 879cce63
git fetch origin master
git merge --no-edit 48bb43844bc785e46443ebf25e3c37b4d7bc64dc
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:ubuntu-20.04-ocaml-4.14@sha256:dff39893ca6c4fd00eba68c9ab838243f8719f98483295d9ce428cc0e249f0fb
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 "\"ubuntu-20.04\""; 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-02-12 09:42.45: Using cache hint "ocaml/opam:ubuntu-20.04-ocaml-4.14@sha256:dff39893ca6c4fd00eba68c9ab838243f8719f98483295d9ce428cc0e249f0fb-conf-rocksdb-ge-5-17-2.5.17.2-879cce6341a5b8d26f5989e5001751782571cb8b"
2025-02-12 09:42.45: Using OBuilder spec:
((from ocaml/opam:ubuntu-20.04-ocaml-4.14@sha256:dff39893ca6c4fd00eba68c9ab838243f8719f98483295d9ce428cc0e249f0fb)
 (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 \"\\\"ubuntu-20.04\\\"\"; 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-02-12 09:42.45: Waiting for resource in pool OCluster
2025-02-12 09:42.46: Waiting for worker…
2025-02-12 09:42.47: Got resource from pool OCluster
Building on phoebe.caelum.ci.dev
All commits already cached
Updating files:  92% (21645/23317)
Updating files:  93% (21685/23317)
Updating files:  94% (21918/23317)
Updating files:  95% (22152/23317)
Updating files:  96% (22385/23317)
Updating files:  97% (22618/23317)
Updating files:  98% (22851/23317)
Updating files:  99% (23084/23317)
Updating files: 100% (23317/23317)
Updating files: 100% (23317/23317), done.
HEAD is now at 48bb43844b Merge pull request #27403 from hhugo/prepare-jsoo-6
Updating 48bb43844b..879cce6341
Fast-forward
 .../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:ubuntu-20.04-ocaml-4.14@sha256:dff39893ca6c4fd00eba68c9ab838243f8719f98483295d9ce428cc0e249f0fb)
2025-02-12 09:44.12 ---> saved as "b41e8aa6f0cfc156fd2e7f30541f6abdfb71102c023296cdcce5bdf71444f368"

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2025-02-12 09:44.12 ---> saved as "cb3ad473cbb2773093944c5e8fd9f9e0459ec704552d2d509cd2c81f8b94b525"

/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 development 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
[NOTE] The 'jobs' option was reset, its value was 31 and its new value will vary according to the current number of cores on your machine. You can restore the fixed value using:
           opam option jobs=31 --global
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[opam-repository-archive] no changes from git+https://github.com/ocaml/opam-repository-archive
[default] synchronised from file:///home/opam/opam-repository
2025-02-12 09:45.20 ---> saved as "b8b7c15d196c0a50e1169121c2717932593a96169d1ff88f2a91fb3fbf8560b3"

/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.0~alpha1~dev (747e73667ad9d054b0f736be205c0013e1bec087)
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=ubuntu os-version=20.04
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 71
# repositories         1 (local), 1 (version-controlled)
# pinned               1 (version)
# current-switch       4.14
# invariant            ["ocaml-base-compiler" {= "4.14.2"}]
# compiler-packages    ocaml-base-compiler.4.14.2, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/4.14/lib/ocaml/stublibs:/home/opam/.opam/4.14/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       4.14.2
2025-02-12 09:45.21 ---> saved as "bbf2deb2e290adce122dfc4b25ab3410acc2107d05ed92f6d787f72dfc49ba6a"

/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-02-12 09:45.37 ---> saved as "3a2669cce627300e84d55537f7070775b3a41377a79f7281052ebe1a391d6acd"

/home/opam: (copy (src .) (dst opam-repository/))
2025-02-12 09:45.49 ---> saved as "6ea7559f8aab3eab776f8706433e5d417532da3866769d764956bf55e59c982c"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-02-12 09:46.43 ---> saved as "cc398d592f5ce9d9f8e25ec373a0b5080552f7ac97db3da00ec4959ca5131419"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease
- Get:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease [128 kB]
- Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [128 kB]
- Get:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease [128 kB]
- Get:5 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [4219 kB]
- Get:6 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [1298 kB]
- Get:7 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1590 kB]
- Get:8 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [4699 kB]
- Get:9 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [4526 kB]
- Fetched 16.7 MB in 1s (11.6 MB/s)
- Reading package lists...
- 
2025-02-12 09:46.49 ---> saved as "a3d41e2e1f672f79b6baf779d1df78fdd3981059aacf0e7d6a2f2cb7a4cc38d7"

/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-02-12 09:46.50 ---> saved as "ccee51804e850385d93c973ca0cfac9823b404be4ebfaef2230c893089c99d51"

/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 \"\\\"ubuntu-20.04\\\"\"; 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"
- debconf: delaying package configuration, since apt-utils is not installed
- Selecting previously unselected package libglib2.0-0: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 ... 14703 files and directories currently installed.)
- Preparing to unpack .../00-libglib2.0-0_2.64.6-1~ubuntu20.04.8_amd64.deb ...
- Unpacking libglib2.0-0:amd64 (2.64.6-1~ubuntu20.04.8) ...
- Selecting previously unselected package libglib2.0-data.
- Preparing to unpack .../01-libglib2.0-data_2.64.6-1~ubuntu20.04.8_all.deb ...
- Unpacking libglib2.0-data (2.64.6-1~ubuntu20.04.8) ...
- Selecting previously unselected package tzdata.
- Preparing to unpack .../02-tzdata_2024b-0ubuntu0.20.04_all.deb ...
- Unpacking tzdata (2024b-0ubuntu0.20.04) ...
- Selecting previously unselected package libicu66:amd64.
- Preparing to unpack .../03-libicu66_66.1-2ubuntu2.1_amd64.deb ...
- Unpacking libicu66:amd64 (66.1-2ubuntu2.1) ...
- Selecting previously unselected package libxml2:amd64.
- Preparing to unpack .../04-libxml2_2.9.10+dfsg-5ubuntu0.20.04.8_amd64.deb ...
- Unpacking libxml2:amd64 (2.9.10+dfsg-5ubuntu0.20.04.8) ...
- Selecting previously unselected package shared-mime-info.
- Preparing to unpack .../05-shared-mime-info_1.15-1_amd64.deb ...
- Unpacking shared-mime-info (1.15-1) ...
- Selecting previously unselected package xdg-user-dirs.
- Preparing to unpack .../06-xdg-user-dirs_0.17-2ubuntu1_amd64.deb ...
- Unpacking xdg-user-dirs (0.17-2ubuntu1) ...
- Selecting previously unselected package libgflags2.2.
- Preparing to unpack .../07-libgflags2.2_2.2.2-1build1_amd64.deb ...
- Unpacking libgflags2.2 (2.2.2-1build1) ...
- Selecting previously unselected package libsnappy1v5:amd64.
- Preparing to unpack .../08-libsnappy1v5_1.1.8-1build1_amd64.deb ...
- Unpacking libsnappy1v5:amd64 (1.1.8-1build1) ...
- Selecting previously unselected package librocksdb5.17.
- Preparing to unpack .../09-librocksdb5.17_5.17.2-3_amd64.deb ...
- Unpacking librocksdb5.17 (5.17.2-3) ...
- Selecting previously unselected package librocksdb-dev.
- Preparing to unpack .../10-librocksdb-dev_5.17.2-3_amd64.deb ...
- Unpacking librocksdb-dev (5.17.2-3) ...
- Selecting previously unselected package pkg-config.
- Preparing to unpack .../11-pkg-config_0.29.1-0ubuntu4_amd64.deb ...
- Unpacking pkg-config (0.29.1-0ubuntu4) ...
- Setting up xdg-user-dirs (0.17-2ubuntu1) ...
- Setting up libglib2.0-0:amd64 (2.64.6-1~ubuntu20.04.8) ...
- No schema files found: doing nothing.
- Setting up libsnappy1v5:amd64 (1.1.8-1build1) ...
- Setting up tzdata (2024b-0ubuntu0.20.04) ...
- 
- Current default time zone: 'Europe/London'
- Local time is now:      Wed Feb 12 09:47:05 GMT 2025.
- Universal Time is now:  Wed Feb 12 09:47:05 UTC 2025.
- Run 'dpkg-reconfigure tzdata' if you wish to change it.
- 
- Setting up libglib2.0-data (2.64.6-1~ubuntu20.04.8) ...
- Setting up pkg-config (0.29.1-0ubuntu4) ...
- Setting up libgflags2.2 (2.2.2-1build1) ...
- Setting up libicu66:amd64 (66.1-2ubuntu2.1) ...
- Setting up librocksdb5.17 (5.17.2-3) ...
- Setting up libxml2:amd64 (2.9.10+dfsg-5ubuntu0.20.04.8) ...
- Setting up librocksdb-dev (5.17.2-3) ...
- Setting up shared-mime-info (1.15-1) ...
- Processing triggers for libc-bin (2.31-0ubuntu9.17) ...

<><> 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-02-12 09:47.07 ---> saved as "89348a109df46500785b12343a60a94732fee78f307d0b0f0d90cce98819d502"
Job succeeded
2025-02-12 09:47.13: Job succeeded