(for PR #29830)

2026-04-30 12:44.50: New job: build rocq-stdlib.9.1.0, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29830/head (7a15accc2f9050d2c7e012666e2f93808daf13c0)
                              on archlinux-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/29830/head" && git reset --hard 7a15accc
git fetch origin master
git merge --no-edit d1c56642b8ca7e1166c90bfe0c74f38007bbad58
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:archlinux-ocaml-4.14@sha256:264f7c6ad6e3a4f50a6465b32af5b137d8f3ba9e7c6a612edf9d49cfa309e4d8
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 rocq-stdlib.9.1.0 9.1.0
RUN opam reinstall rocq-stdlib.9.1.0; \
    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 "\"archlinux\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'rocq-stdlib.9.1.0' && 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 .

2026-04-30 12:44.50: Using cache hint "ocaml/opam:archlinux-ocaml-4.14@sha256:264f7c6ad6e3a4f50a6465b32af5b137d8f3ba9e7c6a612edf9d49cfa309e4d8-rocq-stdlib.9.1.0-7a15accc2f9050d2c7e012666e2f93808daf13c0"
2026-04-30 12:44.50: Using OBuilder spec:
((from ocaml/opam:archlinux-ocaml-4.14@sha256:264f7c6ad6e3a4f50a6465b32af5b137d8f3ba9e7c6a612edf9d49cfa309e4d8)
 (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 rocq-stdlib.9.1.0 9.1.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall rocq-stdlib.9.1.0;\
             \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 \"\\\"archlinux\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'rocq-stdlib.9.1.0' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2026-04-30 12:44.50: Waiting for resource in pool OCluster
2026-04-30 14:25.03: Waiting for worker…
2026-04-30 14:27.32: Got resource from pool OCluster
Building on toxis.caelum.ci.dev
All commits already cached
HEAD is now at d1c56642b8 Merge pull request #29820 from jmid/core-0.17.1-bound
Updating d1c56642b8..7a15accc2f
Fast-forward
 packages/rocq-stdlib/rocq-stdlib.9.1.0/opam | 39 +++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 packages/rocq-stdlib/rocq-stdlib.9.1.0/opam

(from ocaml/opam:archlinux-ocaml-4.14@sha256:264f7c6ad6e3a4f50a6465b32af5b137d8f3ba9e7c6a612edf9d49cfa309e4d8)
2026-04-30 14:27.37 ---> using "b335f4c14c78032abc317eb8006625b82c0f1066f818e0cab492de0956140fc6" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2026-04-30 14:27.37 ---> using "b0212cf2130f67a4aca66fbb2e988e8f5b440b4945f4d68b02bf82f9098c53a3" 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 ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ocaml-patches-overlay] no changes from git+https://github.com/ocurrent/opam-repository#patches
[default] Initialised
2026-04-30 14:27.37 ---> using "c311075b570f857276b9fd2a40672c555b29cc10eaff160e4bc3cea16faccc83" 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.5.1
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=arch os-version=20260419.0.517065
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 71
# repositories         2 (version-controlled)
# pinned               1 (version)
# current-switch       4.14
# invariant            ["ocaml-base-compiler" {= "4.14.3"}]
# compiler-packages    ocaml-base-compiler.4.14.3, 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.3
2026-04-30 14:27.37 ---> using "049a36eaa382450cdf08ab964e7cc4bceb980e6d3bb9b1a5e6abaf0278c72f83" 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/"))
2026-04-30 14:27.37 ---> using "4d20113876644673c11e54c3fc0ba199419fe558f82254a5396ba453da9954db" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2026-04-30 14:27.45 ---> saved as "02bc282379175eb1c6e2e0fc1f4c148cc0f62d45a7b13e50077ebf56eec9d09c"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2026-04-30 14:28.09 ---> saved as "84684e9fe267b8c8f2f27b094f3cc4ebd9651b9c9698c40687a1bd2f6a91f0a6"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/sbin/sudo "pacman" "-Sy"
- :: Synchronizing package databases...
-  core downloading...
-  extra downloading...
2026-04-30 14:28.10 ---> saved as "f40c14cb60292c4a8ed9086d8754abe3fb8c1d636465cc956a7dec6bedf3bf0e"

/home/opam: (run (shell "opam pin add -k version -yn rocq-stdlib.9.1.0 9.1.0"))
rocq-stdlib is now pinned to version 9.1.0
2026-04-30 14:28.11 ---> saved as "bd977ee4b55d45a9eebf4f21bf69d9be4a412884034fea1799ac70dee6a94a26"

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

The following system packages will first need to be installed:
    pkgconf

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

opam believes some required external dependencies are missing. opam can:
> 1. Run pacman to install them (may need root/sudo access)
  2. Display the recommended pacman 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/sbin/sudo "pacman" "-Su" "--noconfirm" "pkgconf"
- :: Starting full system upgrade...
- resolving dependencies...
- looking for conflicting packages...
- 
- Package (9)         Old Version  New Version  Net Change  Download Size
- 
- extra/bubblewrap    0.11.1-1     0.11.2-1       0.00 MiB       0.04 MiB
- core/device-mapper  2.03.39-1    2.03.40-1      0.02 MiB       0.29 MiB
- core/expat          2.7.5-1      2.8.0-1        0.01 MiB       0.12 MiB
- core/iana-etc       20260409-1   20260425-1     0.00 MiB       0.39 MiB
- core/libbpf         1.6.2-1      1.7.0-1        0.02 MiB       0.26 MiB
- core/libgpg-error   1.59-1       1.60-1         0.01 MiB       0.27 MiB
- extra/rsync         3.4.1-2      3.4.2-1        0.00 MiB       0.36 MiB
- core/sed            4.9-3        4.10-1         0.08 MiB       0.24 MiB
- core/pkgconf                     2.5.1-1        0.20 MiB       0.07 MiB
- 
- Total Download Size:   2.04 MiB
- Total Installed Size:  9.00 MiB
- Net Upgrade Size:      0.33 MiB
- 
- :: Proceed with installation? [Y/n] 
- :: Retrieving packages...
-  iana-etc-20260425-1-any downloading...
-  rsync-3.4.2-1-x86_64 downloading...
-  device-mapper-2.03.40-1-x86_64 downloading...
-  libgpg-error-1.60-1-x86_64 downloading...
-  libbpf-1.7.0-1-x86_64 downloading...
-  sed-4.10-1-x86_64 downloading...
-  expat-2.8.0-1-x86_64 downloading...
-  pkgconf-2.5.1-1-x86_64 downloading...
-  bubblewrap-0.11.2-1-x86_64 downloading...
- checking keyring...
- checking package integrity...
- loading package files...
- checking for file conflicts...
- :: Processing package changes...
- upgrading iana-etc...
- installing pkgconf...
- upgrading libgpg-error...
- upgrading bubblewrap...
- upgrading device-mapper...
- upgrading expat...
- upgrading libbpf...
- upgrading rsync...
- upgrading sed...
- :: Running post-transaction hooks...
- (1/4) Reloading system manager configuration...
- Failed to check for chroot() environment: Permission denied
-   Skipped: Current root is not booted.
- (2/4) Enqueuing marked services...
- Failed to check for chroot() environment: Permission denied
-   Skipped: Current root is not booted.
- (3/4) Reloading device manager configuration...
- Failed to check for chroot() environment: Permission denied
-   Skipped: Current root is not booted.
- (4/4) Arming ConditionNeedsUpdate...

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
⬇ retrieved conf-gmp.5  (cached)
∗ installed conf-gmp.5
∗ installed conf-pkg-config.4
∗ installed conf-linux-libc-dev.0
⬇ retrieved dune.3.22.2  (cached)
⬇ retrieved ocamlfind.1.9.8  (cached)
⬇ retrieved rocq-core.9.2.0, rocq-runtime.9.2.0  (cached)
⬇ retrieved rocq-stdlib.9.1.0  (https://github.com/coq/stdlib/releases/download/V9.1.0/stdlib-9.1.0.tar.gz)
⬇ retrieved zarith.1.14  (cached)
∗ installed ocamlfind.1.9.8
∗ installed zarith.1.14
∗ installed dune.3.22.2
∗ installed rocq-runtime.9.2.0
∗ installed rocq-core.9.2.0
∗ installed rocq-stdlib.9.1.0
Done.
# To update the current shell environment, run: eval $(opam env)
2026-04-30 14:34.12 ---> saved as "d304f4090647a361d830badfacbb821ba92093aa72c25ea43fd21e79f68ff2d6"
Job succeeded
2026-04-30 14:34.19: Job succeeded