(for PR #28173)

2025-07-14 22:15.55: New job: build tezt-bam.0.4, using opam 2.3
                              from https://github.com/ocaml/opam-repository.git#refs/pull/28173/head (54238081f7cad4bf6f27faa50df6edd6de144696)
                              on fedora-42-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/28173/head" && git reset --hard 54238081
git fetch origin master
git merge --no-edit fb593fd72351e22b3778cfd880158a3c4542aa3f
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:fedora-42-ocaml-4.14@sha256:10a95257acfca9e1553eb65c349b03aa4fc6225fb886ee5d92c40b4320bc75cf
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 tezt-bam.0.4 0.4
RUN opam reinstall tezt-bam.0.4; \
    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 "\"fedora-42\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'tezt-bam.0.4' && 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-14 22:15.55: Using cache hint "ocaml/opam:fedora-42-ocaml-4.14@sha256:10a95257acfca9e1553eb65c349b03aa4fc6225fb886ee5d92c40b4320bc75cf-tezt-bam.0.4-54238081f7cad4bf6f27faa50df6edd6de144696"
2025-07-14 22:15.55: Using OBuilder spec:
((from ocaml/opam:fedora-42-ocaml-4.14@sha256:10a95257acfca9e1553eb65c349b03aa4fc6225fb886ee5d92c40b4320bc75cf)
 (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 tezt-bam.0.4 0.4"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall tezt-bam.0.4;\
             \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 \"\\\"fedora-42\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'tezt-bam.0.4' && 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-14 22:15.55: Waiting for resource in pool OCluster
2025-07-14 22:15.57: Waiting for worker…
2025-07-14 22:15.59: Got resource from pool OCluster
Building on doris.caelum.ci.dev
All commits already cached
HEAD is now at fb593fd723 Merge pull request #28170 from liyishuai/setr-z3
Updating fb593fd723..54238081f7
Fast-forward
 packages/bam-ppx/bam-ppx.0.4/opam   | 42 ++++++++++++++++++++++++++++++++++
 packages/bam/bam.0.4/opam           | 43 +++++++++++++++++++++++++++++++++++
 packages/tezt-bam/tezt-bam.0.4/opam | 45 +++++++++++++++++++++++++++++++++++++
 3 files changed, 130 insertions(+)
 create mode 100644 packages/bam-ppx/bam-ppx.0.4/opam
 create mode 100644 packages/bam/bam.0.4/opam
 create mode 100644 packages/tezt-bam/tezt-bam.0.4/opam

(from ocaml/opam:fedora-42-ocaml-4.14@sha256:10a95257acfca9e1553eb65c349b03aa4fc6225fb886ee5d92c40b4320bc75cf)
Unable to find image 'ocaml/opam:fedora-42-ocaml-4.14@sha256:10a95257acfca9e1553eb65c349b03aa4fc6225fb886ee5d92c40b4320bc75cf' locally
docker.io/ocaml/opam@sha256:10a95257acfca9e1553eb65c349b03aa4fc6225fb886ee5d92c40b4320bc75cf: Pulling from ocaml/opam
e61635f93251: Pulling fs layer
6e7386bc69d3: Pulling fs layer
2942ebd23848: Pulling fs layer
756df992ce9c: Pulling fs layer
6066d5087d78: Pulling fs layer
756df992ce9c: Waiting
6066d5087d78: Waiting
2942ebd23848: Verifying Checksum
2942ebd23848: Download complete
756df992ce9c: Verifying Checksum
756df992ce9c: Download complete
6066d5087d78: Verifying Checksum
6066d5087d78: Download complete
6e7386bc69d3: Verifying Checksum
6e7386bc69d3: Download complete
e61635f93251: Verifying Checksum
e61635f93251: Download complete
e61635f93251: Pull complete
6e7386bc69d3: Pull complete
2942ebd23848: Pull complete
756df992ce9c: Pull complete
6066d5087d78: Pull complete
Digest: sha256:10a95257acfca9e1553eb65c349b03aa4fc6225fb886ee5d92c40b4320bc75cf
Status: Downloaded newer image for ocaml/opam@sha256:10a95257acfca9e1553eb65c349b03aa4fc6225fb886ee5d92c40b4320bc75cf
2025-07-14 22:17.06 ---> using "f00dae5aa5c28d93f14e4b3afadf4f9640b5a00500009f8c741f83ea81c1026c" 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-14 22:17.06 ---> using "cdc240095f0269a96ca3396ca95615d7e9c087b001fa6b9e17a3571c34a7e229" 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 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 71 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=71 --global
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-07-14 22:17.06 ---> using "f083ba361daecf9b22c9f0f254a1ed2e819d2a28bfcaf902cf2590dbd5df611b" 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=x86_64 os=linux os-distribution=fedora os-version=42
# 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       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-14 22:17.06 ---> using "c49bfde89f6f70cb9076d2764e9877801135b2d4a11a1533ca1456f91da1e3e8" 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-14 22:17.06 ---> using "759282ee99967eb098759c8af8b1038bac11fe8039d191080c407668cc159589" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-07-14 22:17.13 ---> saved as "a6ea487b7fdeeb321f9cf58e5d63964cff55fa390245d5a836264d15efcba0f5"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-07-14 22:17.30 ---> saved as "c8765a51efe77fc227a48820d5d7a9b24ba3d193d8827d97265d27a40988676b"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/sbin/sudo "yum" "makecache"
- Updating and loading repositories:
-  Fedora 42 - x86_64 - Updates           100% |  31.8 KiB/s |  25.4 KiB |  00m01s
-  Fedora 42 - x86_64 - Updates           100% | 557.1 KiB/s |   2.9 MiB |  00m05s
- Repositories loaded.
- Metadata cache created.
2025-07-14 22:17.38 ---> saved as "86181f5a7a558b0adbe33df7c8b8ad09eb88644a9b520a21d1c7575793c112bc"

/home/opam: (run (shell "opam pin add -k version -yn tezt-bam.0.4 0.4"))
tezt-bam is now pinned to version 0.4
2025-07-14 22:17.40 ---> saved as "d203e70259dc2336cb8e84f72d8a5aa057c820bd69bd7221c0f54f2153ac6364"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall tezt-bam.0.4;\
                        \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 \"\\\"fedora-42\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'tezt-bam.0.4' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
tezt-bam.0.4 is not installed. Install it? [y/n] y
The following actions will be performed:
=== install 34 packages
  - install bam                 0.4          [required by tezt-bam]
  - install bam-ppx             0.4          [required by tezt-bam]
  - install base-bytes          base         [required by ocplib-endian]
  - install clap                0.3.0        [required by tezt]
  - install conf-gmp            5            [required by zarith]
  - install conf-pkg-config     4            [required by zarith]
  - install cppo                1.8.0        [required by lwt]
  - install csexp               1.5.2        [required by dune-configurator]
  - install cstruct             6.2.0        [required by hex]
  - install dmap                0.5          [required by bam-ppx]
  - install dune                3.19.1       [required by tezt-bam]
  - install dune-configurator   3.19.1       [required by lwt]
  - install ezjsonm             1.3.0        [required by tezt]
  - install fmt                 0.10.0       [required by cstruct]
  - install hex                 1.5.0        [required by ezjsonm]
  - install jsonm               1.0.2        [required by ezjsonm]
  - install lwt                 5.9.1        [required by tezt]
  - install mtime               2.1.0        [required by tezt-bam]
  - install ocaml-compiler-libs v0.12.4      [required by ppxlib]
  - install ocamlbuild          0.16.1       [required by mtime]
  - install ocamlfind           1.9.8        [required by mtime]
  - install ocplib-endian       1.2          [required by lwt]
  - install ppx_derivers        1.2.1        [required by ppxlib]
  - install ppxlib              0.36.0       [required by bam-ppx]
  - install pringo              1.4          [required by bam]
  - install re                  1.13.2       [required by tezt]
  - install seq                 base         [required by re]
  - install sexplib0            v0.17.0      [required by ppxlib, ezjsonm]
  - install stdlib-shims        0.3.0        [required by ppxlib]
  - install tezt                4.2.0        [required by tezt-bam]
  - install tezt-bam            0.4 (pinned)
  - install topkg               1.0.8        [required by mtime]
  - install uutf                1.0.4        [required by ezjsonm]
  - install zarith              1.14         [required by bam]

The following system packages will first need to be installed:
    gmp-devel

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

opam believes some required external dependencies are missing. opam can:
> 1. Run yum to install them (may need root/sudo access)
  2. Display the recommended yum 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 "yum" "install" "-y" "gmp-devel"
- Updating and loading repositories:
- Repositories loaded.
- Package    Arch   Version        Repository      Size
- Installing:
-  gmp-devel x86_64 1:6.3.0-4.fc42 fedora     352.3 KiB
- Installing dependencies:
-  gmp-c++   x86_64 1:6.3.0-4.fc42 fedora      27.6 KiB
- 
- Transaction Summary:
-  Installing:         2 packages
- 
- Total size of inbound packages is 193 KiB. Need to download 193 KiB.
- After this operation, 380 KiB extra will be used (install 380 KiB, remove 0 B).
- [1/2] gmp-c++-1:6.3.0-4.fc42.x86_64     100% | 240.2 KiB/s |  18.5 KiB |  00m00s
- [2/2] gmp-devel-1:6.3.0-4.fc42.x86_64   100% | 457.7 KiB/s | 174.4 KiB |  00m00s
- --------------------------------------------------------------------------------
- [2/2] Total                             100% | 198.2 KiB/s | 192.9 KiB |  00m01s
- Running transaction
- [1/4] Verify package files              100% |   2.0 KiB/s |   2.0   B |  00m00s
- [2/4] Prepare transaction               100% |  52.0   B/s |   2.0   B |  00m00s
- [3/4] Installing gmp-c++-1:6.3.0-4.fc42 100% |  27.8 MiB/s |  28.5 KiB |  00m00s
- [4/4] Installing gmp-devel-1:6.3.0-4.fc 100% |   8.4 MiB/s | 354.1 KiB |  00m00s
- Complete!
+ /usr/sbin/rpm "-q" "--whatprovides" "gmp-devel"
- gmp-devel-6.3.0-4.fc42.x86_64

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved bam.0.4, bam-ppx.0.4, tezt-bam.0.4  (cached)
-> retrieved clap.0.3.0  (cached)
-> retrieved conf-gmp.5  (cached)
-> retrieved cppo.1.8.0  (cached)
-> retrieved csexp.1.5.2  (cached)
-> retrieved cstruct.6.2.0  (cached)
-> installed conf-pkg-config.4
-> installed conf-gmp.5
-> retrieved dmap.0.5  (cached)
-> retrieved dune.3.19.1, dune-configurator.3.19.1  (cached)
-> retrieved ezjsonm.1.3.0  (cached)
-> retrieved fmt.0.10.0  (cached)
-> retrieved hex.1.5.0  (cached)
-> retrieved jsonm.1.0.2  (cached)
-> retrieved lwt.5.9.1  (cached)
-> retrieved mtime.2.1.0  (cached)
-> retrieved ocaml-compiler-libs.v0.12.4  (cached)
-> retrieved ocamlbuild.0.16.1  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved ocplib-endian.1.2  (cached)
-> retrieved ppx_derivers.1.2.1  (cached)
-> retrieved ppxlib.0.36.0  (cached)
-> retrieved pringo.1.4  (cached)
-> retrieved re.1.13.2  (cached)
-> retrieved seq.base  (cached)
-> installed seq.base
-> retrieved sexplib0.v0.17.0  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> retrieved tezt.4.2.0  (cached)
-> retrieved topkg.1.0.8  (cached)
-> retrieved uutf.1.0.4  (cached)
-> retrieved zarith.1.14  (cached)
-> installed ocamlfind.1.9.8
-> installed base-bytes.base
-> installed ocamlbuild.0.16.1
-> installed pringo.1.4
-> installed zarith.1.14
-> installed topkg.1.0.8
-> installed uutf.1.0.4
-> installed fmt.0.10.0
-> installed mtime.2.1.0
-> installed jsonm.1.0.2
-> installed dune.3.19.1
-> installed ppx_derivers.1.2.1
-> installed stdlib-shims.0.3.0
-> installed csexp.1.5.2
-> installed bam.0.4
-> installed clap.0.3.0
-> installed cppo.1.8.0
-> installed cstruct.6.2.0
-> installed ocaml-compiler-libs.v0.12.4
-> installed re.1.13.2
-> installed sexplib0.v0.17.0
-> installed dmap.0.5
-> installed hex.1.5.0
-> installed ocplib-endian.1.2
-> installed ezjsonm.1.3.0
-> installed dune-configurator.3.19.1
-> installed lwt.5.9.1
-> installed tezt.4.2.0
-> installed ppxlib.0.36.0
-> installed bam-ppx.0.4
-> installed tezt-bam.0.4
Done.
# To update the current shell environment, run: eval $(opam env)
2025-07-14 22:18.26 ---> saved as "5b9742e14f2c7c35e9e9cd1dedd8248b35bedd51a67c5e3087c0a816032f47e0"
Job succeeded
2025-07-14 22:18.33: Job succeeded