(for PR #28015)

2025-06-11 19:35.00: New job: build z3.4.15.1, using opam 2.1
                              from https://github.com/ocaml/opam-repository.git#refs/pull/28015/head (eb1839f6536e00144ff383f35c0878f9cb0c30a2)
                              on debian-12-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/28015/head" && git reset --hard eb1839f6
git fetch origin master
git merge --no-edit 5d06e882dd4254efed3ed68bbc9e77273e592c83
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-4.14@sha256:483ad21d779c01615f15084a5f82173baaa47820587729faca9fb7ad645f50be
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-2.1 /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 z3.4.15.1 4.15.1
RUN opam reinstall z3.4.15.1; \
    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" != 'z3.4.15.1' && 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-06-11 19:35.00: Using cache hint "ocaml/opam:debian-12-ocaml-4.14@sha256:483ad21d779c01615f15084a5f82173baaa47820587729faca9fb7ad645f50be-z3.4.15.1-eb1839f6536e00144ff383f35c0878f9cb0c30a2"
2025-06-11 19:35.00: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.14@sha256:483ad21d779c01615f15084a5f82173baaa47820587729faca9fb7ad645f50be)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "sudo ln -f /usr/bin/opam-2.1 /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 z3.4.15.1 4.15.1"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall z3.4.15.1;\
             \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\" != 'z3.4.15.1' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-06-11 19:35.00: Waiting for resource in pool OCluster
2025-06-12 09:31.57: Waiting for worker…
2025-06-12 09:35.50: Got resource from pool OCluster
Building on doris.caelum.ci.dev
All commits already cached
Updating files:  94% (22076/23240)
Updating files:  95% (22078/23240)
Updating files:  96% (22311/23240)
Updating files:  97% (22543/23240)
Updating files:  98% (22776/23240)
Updating files:  99% (23008/23240)
Updating files: 100% (23240/23240)
Updating files: 100% (23240/23240), done.
HEAD is now at 5d06e882dd Merge pull request #27999 from mbarbin/conf-hg
Merge made by the 'ort' strategy.
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
warning: The last gc run reported the following. Please correct the root cause
and remove .git/gc.log
Automatic cleanup will not be performed until the file is removed.

warning: There are too many unreachable loose objects; run 'git prune' to remove them.

 packages/z3/z3.4.15.1/opam | 68 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 68 insertions(+)
 create mode 100644 packages/z3/z3.4.15.1/opam

(from ocaml/opam:debian-12-ocaml-4.14@sha256:483ad21d779c01615f15084a5f82173baaa47820587729faca9fb7ad645f50be)
2025-06-12 09:36.05 ---> using "d2a5d53d37f66f6f5c7aad091614b30735c874c67d8308d229ed194879752021" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam"))
2025-06-12 09:36.05 ---> saved as "f705527fb8641e9165c822e689ef05845f103ae8715c0df521c4e57589719663"

/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.1, 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-06-12 09:37.37 ---> saved as "3119d3159772550ef840b745b4014e8d2747c112e50555d75b555ebd717f849d"

/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.1.6 (263921263e1f745613e2882745114b7b08f3608b) 
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=debian os-version=12
# solver               builtin-0install
# install-criteria     
# upgrade-criteria     
# jobs                 71
# repositories         1 (version-controlled)
# pinned               1 (version)
# current-switch       4.14
# 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-06-12 09:37.41 ---> saved as "d8885c7847bd921cef731667b8e52b15af932a8b8adace351666162824d41795"

/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-06-12 09:37.56 ---> saved as "369ae6de739f5df20e992ebf7ee63268116b9bfe270183138a562a8b720bc1f5"

/home/opam: (copy (src .) (dst opam-repository/))
2025-06-12 09:39.01 ---> saved as "e346f5e4dc57af9465e0833fbf8e5fc82f94998a1183bcaa0e4461706d9e1c40"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-06-12 09:39.23 ---> saved as "3525bf79c3ecfe24984c25ebfa55ba0146e06a1e33fbad6af30bce89f4d81ff7"

/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-security bookworm-security/main amd64 Packages [266 kB]
- Fetched 369 kB in 1s (400 kB/s)
- Reading package lists...
- 
2025-06-12 09:39.30 ---> saved as "c9220cf3f997812d6b76aba22a1fffa802906d1b94227b850517ad17697a4b90"

/home/opam: (run (shell "opam pin add -k version -yn z3.4.15.1 4.15.1"))
z3 is now pinned to version 4.15.1
2025-06-12 09:39.36 ---> saved as "5604a972ec4d2b37739b9e456ec86b14416f64b5a2835b38d1f70c152ff2d023"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall z3.4.15.1;\
                        \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\" != 'z3.4.15.1' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
z3.4.15.1 is not installed. Install it? [Y/n] y
The following actions will be performed:
  - install conf-python-3   9.0.0   [required by z3]
  - install conf-pkg-config 4       [required by zarith]
  - install ocamlfind       1.9.8   [required by z3]
  - install conf-gmp        5       [required by zarith]
  - install conf-c++        1.0     [required by z3]
  - install zarith          1.14    [required by z3]
  - install z3              4.15.1*
===== 7 to install =====

The following system packages will first need to be installed:
    libgmp-dev pkg-config python3 python3-distutils

<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>
Let opam run your package manager to install the required system packages?
(answer 'n' for other options) [Y/n] y
+ /usr/bin/sudo "apt-get" "install" "-qq" "-yy" "libgmp-dev" "pkg-config" "python3" "python3-distutils"
- debconf: delaying package configuration, since apt-utils is not installed
- Selecting previously unselected package libpython3.11-minimal: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 ... 18745 files and directories currently installed.)
- Preparing to unpack .../libpython3.11-minimal_3.11.2-6+deb12u6_amd64.deb ...
- Unpacking libpython3.11-minimal:amd64 (3.11.2-6+deb12u6) ...
- Selecting previously unselected package python3.11-minimal.
- Preparing to unpack .../python3.11-minimal_3.11.2-6+deb12u6_amd64.deb ...
- Unpacking python3.11-minimal (3.11.2-6+deb12u6) ...
- Setting up libpython3.11-minimal:amd64 (3.11.2-6+deb12u6) ...
- Setting up python3.11-minimal (3.11.2-6+deb12u6) ...
- Selecting previously unselected package python3-minimal.
- (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 ... 19052 files and directories currently installed.)
- Preparing to unpack .../python3-minimal_3.11.2-1+b1_amd64.deb ...
- Unpacking python3-minimal (3.11.2-1+b1) ...
- Selecting previously unselected package media-types.
- Preparing to unpack .../media-types_10.0.0_all.deb ...
- Unpacking media-types (10.0.0) ...
- Selecting previously unselected package libpython3.11-stdlib:amd64.
- Preparing to unpack .../libpython3.11-stdlib_3.11.2-6+deb12u6_amd64.deb ...
- Unpacking libpython3.11-stdlib:amd64 (3.11.2-6+deb12u6) ...
- Selecting previously unselected package python3.11.
- Preparing to unpack .../python3.11_3.11.2-6+deb12u6_amd64.deb ...
- Unpacking python3.11 (3.11.2-6+deb12u6) ...
- Selecting previously unselected package libpython3-stdlib:amd64.
- Preparing to unpack .../libpython3-stdlib_3.11.2-1+b1_amd64.deb ...
- Unpacking libpython3-stdlib:amd64 (3.11.2-1+b1) ...
- Setting up python3-minimal (3.11.2-1+b1) ...
- Selecting previously unselected package python3.
- (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 ... 19462 files and directories currently installed.)
- Preparing to unpack .../0-python3_3.11.2-1+b1_amd64.deb ...
- Unpacking python3 (3.11.2-1+b1) ...
- Selecting previously unselected package libgmpxx4ldbl:amd64.
- Preparing to unpack .../1-libgmpxx4ldbl_2%3a6.2.1+dfsg1-1.1_amd64.deb ...
- Unpacking libgmpxx4ldbl:amd64 (2:6.2.1+dfsg1-1.1) ...
- Selecting previously unselected package libgmp-dev:amd64.
- Preparing to unpack .../2-libgmp-dev_2%3a6.2.1+dfsg1-1.1_amd64.deb ...
- Unpacking libgmp-dev:amd64 (2:6.2.1+dfsg1-1.1) ...
- Selecting previously unselected package libpkgconf3:amd64.
- Preparing to unpack .../3-libpkgconf3_1.8.1-1_amd64.deb ...
- Unpacking libpkgconf3:amd64 (1.8.1-1) ...
- Selecting previously unselected package pkgconf-bin.
- Preparing to unpack .../4-pkgconf-bin_1.8.1-1_amd64.deb ...
- Unpacking pkgconf-bin (1.8.1-1) ...
- Selecting previously unselected package pkgconf:amd64.
- Preparing to unpack .../5-pkgconf_1.8.1-1_amd64.deb ...
- Unpacking pkgconf:amd64 (1.8.1-1) ...
- Selecting previously unselected package pkg-config:amd64.
- Preparing to unpack .../6-pkg-config_1.8.1-1_amd64.deb ...
- Unpacking pkg-config:amd64 (1.8.1-1) ...
- Selecting previously unselected package python3-lib2to3.
- Preparing to unpack .../7-python3-lib2to3_3.11.2-3_all.deb ...
- Unpacking python3-lib2to3 (3.11.2-3) ...
- Selecting previously unselected package python3-distutils.
- Preparing to unpack .../8-python3-distutils_3.11.2-3_all.deb ...
- Unpacking python3-distutils (3.11.2-3) ...
- Setting up media-types (10.0.0) ...
- Setting up libpython3.11-stdlib:amd64 (3.11.2-6+deb12u6) ...
- Setting up libpkgconf3:amd64 (1.8.1-1) ...
- Setting up libgmpxx4ldbl:amd64 (2:6.2.1+dfsg1-1.1) ...
- Setting up pkgconf-bin (1.8.1-1) ...
- Setting up libpython3-stdlib:amd64 (3.11.2-1+b1) ...
- Setting up python3.11 (3.11.2-6+deb12u6) ...
- Setting up libgmp-dev:amd64 (2:6.2.1+dfsg1-1.1) ...
- Setting up python3 (3.11.2-1+b1) ...
- running python rtupdate hooks for python3.11...
- running python post-rtupdate hooks for python3.11...
- Setting up pkgconf:amd64 (1.8.1-1) ...
- Setting up pkg-config:amd64 (1.8.1-1) ...
- Setting up python3-lib2to3 (3.11.2-3) ...
- Setting up python3-distutils (3.11.2-3) ...
- Processing triggers for libc-bin (2.36-9+deb12u10) ...

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved conf-gmp.5  (cached)
-> retrieved conf-python-3.9.0.0  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> installed conf-c++.1.0
-> installed conf-gmp.5
-> installed conf-pkg-config.4
-> installed conf-python-3.9.0.0
-> retrieved z3.4.15.1  (cached)
-> retrieved zarith.1.14  (cached)
-> installed ocamlfind.1.9.8
-> installed zarith.1.14
-> installed z3.4.15.1
Done.
# Run eval $(opam env) to update the current shell environment
2025-06-12 09:42.49 ---> saved as "b3a35db7aee42ebf5328edc1120fb13c3ed51bf8f3245dc060f764c0584f5580"
Job succeeded
2025-06-12 09:47.53: Job succeeded