(for PR #28275)

2025-07-30 12:38.05: New job: build coqide-server.9.1+rc1, using opam 2.3
                              from https://github.com/ocaml/opam-repository.git#refs/pull/28275/head (66e60293e0f8ab4582472efcfcea76dc9977ca83)
                              on debian-12-ocaml-4.14/s390x

To reproduce locally:

cd $(mktemp -d)
git clone --recursive "https://github.com/ocaml/opam-repository.git" && cd "opam-repository" && git fetch origin "refs/pull/28275/head" && git reset --hard 66e60293
git fetch origin master
git merge --no-edit f6368c68f94811eb2e5f105c731f2494a6e6fe04
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-4.14@sha256:56fa5f7995b232a12bd29713d4588741b82084a63e410783e59e8e5674d43668
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-2.3 /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 coqide-server.9.1+rc1 9.1+rc1
RUN opam reinstall coqide-server.9.1+rc1; \
    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-12\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'coqide-server.9.1+rc1' && 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-07-30 12:38.05: Using cache hint "ocaml/opam:debian-12-ocaml-4.14@sha256:56fa5f7995b232a12bd29713d4588741b82084a63e410783e59e8e5674d43668-coqide-server.9.1+rc1-66e60293e0f8ab4582472efcfcea76dc9977ca83"
2025-07-30 12:38.05: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.14@sha256:56fa5f7995b232a12bd29713d4588741b82084a63e410783e59e8e5674d43668)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "sudo ln -f /usr/bin/opam-2.3 /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 coqide-server.9.1+rc1 9.1+rc1"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall coqide-server.9.1+rc1;\
             \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-12\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'coqide-server.9.1+rc1' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-07-30 12:38.05: Waiting for resource in pool OCluster
2025-07-30 12:38.05: Waiting for worker…
2025-07-30 13:27.31: Got resource from pool OCluster
Building on s390x-worker-01.marist.ci.dev
All commits already cached
HEAD is now at f6368c68f9 Merge pull request #28271 from jmid/qcheck-lin-ocaml-bound
Updating f6368c68f9..66e60293e0
Fast-forward
 packages/coq-core/coq-core.9.1+rc1/opam           | 50 +++++++++++++++++
 packages/coq-lsp/coq-lsp.0.2.3+9.0/opam           |  3 +-
 packages/coq/coq.9.1+rc1/opam                     | 14 +++++
 packages/coqide-server/coqide-server.9.1+rc1/opam | 42 ++++++++++++++
 packages/rocq-core/rocq-core.9.1+rc1/opam         | 51 +++++++++++++++++
 packages/rocq-devtools/rocq-devtools.9.1+rc1/opam | 48 ++++++++++++++++
 packages/rocq-runtime/rocq-runtime.9.1+rc1/opam   | 67 +++++++++++++++++++++++
 packages/rocqide/rocqide.9.1+rc1/opam             | 45 +++++++++++++++
 8 files changed, 319 insertions(+), 1 deletion(-)
 create mode 100644 packages/coq-core/coq-core.9.1+rc1/opam
 create mode 100644 packages/coq/coq.9.1+rc1/opam
 create mode 100644 packages/coqide-server/coqide-server.9.1+rc1/opam
 create mode 100644 packages/rocq-core/rocq-core.9.1+rc1/opam
 create mode 100644 packages/rocq-devtools/rocq-devtools.9.1+rc1/opam
 create mode 100644 packages/rocq-runtime/rocq-runtime.9.1+rc1/opam
 create mode 100644 packages/rocqide/rocqide.9.1+rc1/opam

(from ocaml/opam:debian-12-ocaml-4.14@sha256:56fa5f7995b232a12bd29713d4588741b82084a63e410783e59e8e5674d43668)
Unable to find image 'ocaml/opam:debian-12-ocaml-4.14@sha256:56fa5f7995b232a12bd29713d4588741b82084a63e410783e59e8e5674d43668' locally
docker.io/ocaml/opam@sha256:56fa5f7995b232a12bd29713d4588741b82084a63e410783e59e8e5674d43668: Pulling from ocaml/opam
24fd3b69653a: Already exists
5ebb4dd35e6f: Already exists
70c8a3bdfef9: Already exists
7ff200ec6379: Already exists
fe63e1776797: Already exists
0444d852e652: Already exists
944a49260c2a: Already exists
f10433b06f53: Already exists
5a6dcb02b986: Already exists
319dba91b013: Already exists
1f4628bbe28e: Already exists
ae0210875c2e: Already exists
832efca71ec6: Already exists
25a5f5fbf99c: Already exists
41c4628e32ff: Already exists
41c4628e32ff: Already exists
f40cec29c820: Already exists
b9ed08af8134: Already exists
42f4b9d83a82: Already exists
8937c3dfb17b: Already exists
4f4fb700ef54: Already exists
782ed57ee0f5: Already exists
78f0b84c9c36: Already exists
311e9d0b9b2e: Already exists
cf5e913540f6: Already exists
fc53da7f8d3b: Already exists
e5cf2b0d8afc: Already exists
c22adb19c86f: Already exists
c9f39e1ea189: Already exists
2e748fdef05e: Already exists
43dc73a923bd: Already exists
82b3bd7287e2: Already exists
288a8a1c1534: Already exists
1a9f85c4ef32: Already exists
bdfdea04ba74: Already exists
26c1afa66e17: Already exists
d30cb871e721: Already exists
b7bae98a82c1: Already exists
2b4ae9a30b6e: Already exists
f43b3d0bbeb0: Pulling fs layer
7beb628d9134: Pulling fs layer
e9c39213756d: Pulling fs layer
ac6581946024: Pulling fs layer
ac6581946024: Waiting
e9c39213756d: Download complete
7beb628d9134: Verifying Checksum
7beb628d9134: Download complete
ac6581946024: Download complete
f43b3d0bbeb0: Verifying Checksum
f43b3d0bbeb0: Download complete
f43b3d0bbeb0: Pull complete
7beb628d9134: Pull complete
e9c39213756d: Pull complete
ac6581946024: Pull complete
Digest: sha256:56fa5f7995b232a12bd29713d4588741b82084a63e410783e59e8e5674d43668
Status: Downloaded newer image for ocaml/opam@sha256:56fa5f7995b232a12bd29713d4588741b82084a63e410783e59e8e5674d43668
2025-07-30 13:27.33 ---> using "6ddd1732947e694c010235e9c341fc9a4755dc0b5b879705ab902a19191a20da" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam"))
2025-07-30 13:27.33 ---> using "2aad86ebbcda297b8f919abdcb99b99257138cd4ccaab6fc6b0e1488d80988ba" 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.

Continue? [y/n] y
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.

Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-07-30 13:27.33 ---> using "6524db3799874bf699119c4770cf0ec0c3b3c47f8f2b2b9b77566375fb566feb" 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.3.0 (35acd0c5abc5e66cdbd5be16ba77aa6c33a4c724)
# self-upgrade         no
# system               arch=s390x os=linux os-distribution=debian os-version=12
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 3
# repositories         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-07-30 13:27.33 ---> using "4345eee6622d8cd16221a178554949bb6ea764693e713cc6f95c7dabbec4c556" 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-07-30 13:27.33 ---> using "f1bb13a508105ca104bc0c7f6bbeceeacdf06ea1786e662ac181a7ea150adb95" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-07-30 13:27.33 ---> using "57decb0e63ed3af185d7dd59ccd74086f63e1ddb1edc2540278c62a9f8dc78e1" from cache

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-07-30 13:27.33 ---> using "956d5f7bd18fdcfbcea6805c4c374f62289555dc8d5bff6555f457747c75529a" from cache

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian bookworm InRelease
- Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
- Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
- Get:4 http://deb.debian.org/debian bookworm-updates/main s390x Packages.diff/Index [18.5 kB]
- Get:5 http://deb.debian.org/debian bookworm-updates/main s390x Packages T-2025-07-29-2006.47-F-2025-07-29-2006.47.pdiff [5003 B]
- Get:5 http://deb.debian.org/debian bookworm-updates/main s390x Packages T-2025-07-29-2006.47-F-2025-07-29-2006.47.pdiff [5003 B]
- Get:6 http://deb.debian.org/debian-security bookworm-security/main s390x Packages [241 kB]
- Fetched 367 kB in 0s (773 kB/s)
- Reading package lists...
- 
2025-07-30 13:27.33 ---> using "3bc7881611b94900feabc1912bf75e7274a4f252609acdcf5f64bb9746742f22" from cache

/home/opam: (run (shell "opam pin add -k version -yn coqide-server.9.1+rc1 9.1+rc1"))
coqide-server is now pinned to version 9.1+rc1
2025-07-30 13:27.38 ---> saved as "453ff6ade2e0555f29edf03a9d86712c1e31071a6e4982db402a7d65f1b7aefb"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall coqide-server.9.1+rc1;\
                        \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-12\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'coqide-server.9.1+rc1' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
coqide-server.9.1+rc1 is not installed. Install it? [y/n] y
The following actions will be performed:
=== install 8 packages
  - install conf-gmp            5                [required by zarith]
  - install conf-linux-libc-dev 0                [required by rocq-runtime]
  - install conf-pkg-config     4                [required by zarith]
  - install coqide-server       9.1+rc1 (pinned)
  - install dune                3.19.1           [required by coqide-server]
  - install ocamlfind           1.9.8            [required by rocq-runtime]
  - install rocq-runtime        9.1+rc1          [required by coqide-server]
  - install zarith              1.14             [required by rocq-runtime]

The following system packages will first need to be installed:
    libgmp-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" "libgmp-dev" "pkg-config"
- debconf: delaying package configuration, since apt-utils is not installed
- Selecting previously unselected package libgmpxx4ldbl:s390x.
- (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 ... 18520 files and directories currently installed.)
- Preparing to unpack .../0-libgmpxx4ldbl_2%3a6.2.1+dfsg1-1.1_s390x.deb ...
- Unpacking libgmpxx4ldbl:s390x (2:6.2.1+dfsg1-1.1) ...
- Selecting previously unselected package libgmp-dev:s390x.
- Preparing to unpack .../1-libgmp-dev_2%3a6.2.1+dfsg1-1.1_s390x.deb ...
- Unpacking libgmp-dev:s390x (2:6.2.1+dfsg1-1.1) ...
- Selecting previously unselected package libpkgconf3:s390x.
- Preparing to unpack .../2-libpkgconf3_1.8.1-1_s390x.deb ...
- Unpacking libpkgconf3:s390x (1.8.1-1) ...
- Selecting previously unselected package pkgconf-bin.
- Preparing to unpack .../3-pkgconf-bin_1.8.1-1_s390x.deb ...
- Unpacking pkgconf-bin (1.8.1-1) ...
- Selecting previously unselected package pkgconf:s390x.
- Preparing to unpack .../4-pkgconf_1.8.1-1_s390x.deb ...
- Unpacking pkgconf:s390x (1.8.1-1) ...
- Selecting previously unselected package pkg-config:s390x.
- Preparing to unpack .../5-pkg-config_1.8.1-1_s390x.deb ...
- Unpacking pkg-config:s390x (1.8.1-1) ...
- Setting up libpkgconf3:s390x (1.8.1-1) ...
- Setting up libgmpxx4ldbl:s390x (2:6.2.1+dfsg1-1.1) ...
- Setting up pkgconf-bin (1.8.1-1) ...
- Setting up libgmp-dev:s390x (2:6.2.1+dfsg1-1.1) ...
- Setting up pkgconf:s390x (1.8.1-1) ...
- Setting up pkg-config:s390x (1.8.1-1) ...
- Processing triggers for libc-bin (2.36-9+deb12u10) ...

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved conf-gmp.5  (cached)
-> installed conf-pkg-config.4
-> installed conf-gmp.5
-> retrieved coqide-server.9.1+rc1, rocq-runtime.9.1+rc1  (cached)
-> installed conf-linux-libc-dev.0
-> retrieved dune.3.19.1  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved zarith.1.14  (cached)
-> installed ocamlfind.1.9.8
-> installed zarith.1.14
-> installed dune.3.19.1
-> installed rocq-runtime.9.1+rc1
-> installed coqide-server.9.1+rc1
Done.
# To update the current shell environment, run: eval $(opam env)
2025-07-30 13:29.26 ---> saved as "6b9db047fa96df185dd301f129a9057fe208a20f8088a37a937242bbd9fa65a5"
Job succeeded
2025-07-30 13:29.30: Job succeeded