(for PR #28173)

2025-07-14 22:15.55: New job: build bam-ppx.0.4, using opam 2.3
                              from https://github.com/ocaml/opam-repository.git#refs/pull/28173/head (54238081f7cad4bf6f27faa50df6edd6de144696)
                              on ubuntu-24.04-ocaml-4.14/riscv64

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:ubuntu-24.04-ocaml-4.14@sha256:d45a7059476dbd94bc15e2c57a7fcfddd0d93f3864953e73e484620b3dee7132
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 bam-ppx.0.4 0.4
RUN opam reinstall bam-ppx.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 "\"ubuntu-24.04\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'bam-ppx.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:ubuntu-24.04-ocaml-4.14@sha256:d45a7059476dbd94bc15e2c57a7fcfddd0d93f3864953e73e484620b3dee7132-bam-ppx.0.4-54238081f7cad4bf6f27faa50df6edd6de144696"
2025-07-14 22:15.55: Using OBuilder spec:
((from ocaml/opam:ubuntu-24.04-ocaml-4.14@sha256:d45a7059476dbd94bc15e2c57a7fcfddd0d93f3864953e73e484620b3dee7132)
 (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 bam-ppx.0.4 0.4"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall bam-ppx.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 \"\\\"ubuntu-24.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\" != 'bam-ppx.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.56: Waiting for worker…
2025-07-14 22:28.19: Got resource from pool OCluster
Building on riscv-bm-01.sw.ci.dev
All commits already cached
Updating files:  15% (2682/17855)
Updating files:  16% (2857/17855)
Updating files:  17% (3036/17855)
Updating files:  18% (3214/17855)
Updating files:  19% (3393/17855)
Updating files:  20% (3571/17855)
Updating files:  21% (3750/17855)
Updating files:  22% (3929/17855)
Updating files:  23% (4107/17855)
Updating files:  24% (4286/17855)
Updating files:  25% (4464/17855)
Updating files:  26% (4643/17855)
Updating files:  27% (4821/17855)
Updating files:  28% (5000/17855)
Updating files:  29% (5178/17855)
Updating files:  29% (5201/17855)
Updating files:  30% (5357/17855)
Updating files:  31% (5536/17855)
Updating files:  32% (5714/17855)
Updating files:  33% (5893/17855)
Updating files:  34% (6071/17855)
Updating files:  35% (6250/17855)
Updating files:  36% (6428/17855)
Updating files:  37% (6607/17855)
Updating files:  38% (6785/17855)
Updating files:  39% (6964/17855)
Updating files:  40% (7142/17855)
Updating files:  41% (7321/17855)
Updating files:  42% (7500/17855)
Updating files:  42% (7607/17855)
Updating files:  43% (7678/17855)
Updating files:  44% (7857/17855)
Updating files:  45% (8035/17855)
Updating files:  46% (8214/17855)
Updating files:  47% (8392/17855)
Updating files:  48% (8571/17855)
Updating files:  49% (8749/17855)
Updating files:  50% (8928/17855)
Updating files:  51% (9107/17855)
Updating files:  52% (9285/17855)
Updating files:  53% (9464/17855)
Updating files:  54% (9642/17855)
Updating files:  55% (9821/17855)
Updating files:  55% (9965/17855)
Updating files:  56% (9999/17855)
Updating files:  57% (10178/17855)
Updating files:  58% (10356/17855)
Updating files:  59% (10535/17855)
Updating files:  60% (10713/17855)
Updating files:  61% (10892/17855)
Updating files:  62% (11071/17855)
Updating files:  63% (11249/17855)
Updating files:  64% (11428/17855)
Updating files:  65% (11606/17855)
Updating files:  66% (11785/17855)
Updating files:  67% (11963/17855)
Updating files:  68% (12142/17855)
Updating files:  68% (12288/17855)
Updating files:  69% (12320/17855)
Updating files:  70% (12499/17855)
Updating files:  71% (12678/17855)
Updating files:  72% (12856/17855)
Updating files:  73% (13035/17855)
Updating files:  74% (13213/17855)
Updating files:  75% (13392/17855)
Updating files:  76% (13570/17855)
Updating files:  77% (13749/17855)
Updating files:  78% (13927/17855)
Updating files:  79% (14106/17855)
Updating files:  80% (14284/17855)
Updating files:  81% (14463/17855)
Updating files:  82% (14642/17855)
Updating files:  82% (14703/17855)
Updating files:  83% (14820/17855)
Updating files:  84% (14999/17855)
Updating files:  85% (15177/17855)
Updating files:  86% (15356/17855)
Updating files:  87% (15534/17855)
Updating files:  88% (15713/17855)
Updating files:  89% (15891/17855)
Updating files:  90% (16070/17855)
Updating files:  91% (16249/17855)
Updating files:  92% (16427/17855)
Updating files:  93% (16606/17855)
Updating files:  94% (16784/17855)
Updating files:  95% (16963/17855)
Updating files:  95% (17088/17855)
Updating files:  96% (17141/17855)
Updating files:  97% (17320/17855)
Updating files:  98% (17498/17855)
Updating files:  99% (17677/17855)
Updating files: 100% (17855/17855)
Updating files: 100% (17855/17855), done.
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:ubuntu-24.04-ocaml-4.14@sha256:d45a7059476dbd94bc15e2c57a7fcfddd0d93f3864953e73e484620b3dee7132)
Unable to find image 'ocaml/opam:ubuntu-24.04-ocaml-4.14@sha256:d45a7059476dbd94bc15e2c57a7fcfddd0d93f3864953e73e484620b3dee7132' locally
docker.io/ocaml/opam@sha256:d45a7059476dbd94bc15e2c57a7fcfddd0d93f3864953e73e484620b3dee7132: Pulling from ocaml/opam
4ccdff8fdb11: Already exists
40f2aaa351c7: Already exists
1e6db3c03804: Already exists
5473dc0b7f2f: Already exists
00d558a1b4ca: Already exists
6b3372313064: Already exists
d18b116b1ccb: Already exists
3c9312daea72: Already exists
a379fc7fdeed: Already exists
c45c5ee18bde: Already exists
d508b5fa66d5: Already exists
42415b7bb547: Already exists
aa55a4e508a4: Already exists
eded1cdd34b0: Already exists
0cdaa340a102: Already exists
0cdaa340a102: Already exists
27bd4d38a920: Already exists
1f66ae50c6ee: Already exists
7ac71af6acd0: Already exists
6ab9eec57d98: Already exists
4f4fb700ef54: Already exists
1a5efcd42ea6: Already exists
35b59a353828: Already exists
0c6e32fb8dd1: Already exists
97ed2d6e8768: Already exists
9b8b371be869: Already exists
224a7f052d47: Already exists
eec80b598c60: Already exists
c2c1c8c6cdd4: Already exists
d0a173b2c715: Already exists
68eccb923096: Already exists
3e89842786e6: Already exists
50218ae2f4c5: Already exists
09fdd98941d5: Already exists
0f1542b160a5: Already exists
68059ef09d3c: Already exists
4caa77c59c1d: Already exists
a8f1f125a9de: Already exists
29d0972eddd9: Already exists
ea5f7b7ab59a: Pulling fs layer
97c65e3b5c15: Pulling fs layer
ae50ac65931d: Pulling fs layer
333b4e545574: Pulling fs layer
333b4e545574: Waiting
97c65e3b5c15: Verifying Checksum
97c65e3b5c15: Download complete
ae50ac65931d: Verifying Checksum
ae50ac65931d: Download complete
333b4e545574: Verifying Checksum
333b4e545574: Download complete
ea5f7b7ab59a: Verifying Checksum
ea5f7b7ab59a: Download complete
ea5f7b7ab59a: Pull complete
97c65e3b5c15: Pull complete
ae50ac65931d: Pull complete
333b4e545574: Pull complete
Digest: sha256:d45a7059476dbd94bc15e2c57a7fcfddd0d93f3864953e73e484620b3dee7132
Status: Downloaded newer image for ocaml/opam@sha256:d45a7059476dbd94bc15e2c57a7fcfddd0d93f3864953e73e484620b3dee7132
2025-07-14 22:33.31 ---> saved as "873c9a980747072ce1f99a7fc328f81ad9fe6e8d2f8e1353af7749400584c287"

/: (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:33.32 ---> saved as "99c672c7ca3bf0c1fc69848eb671e2e0ebf7b5107f942be2192c4d1916637da4"

/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
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-07-14 22:35.20 ---> saved as "9ff754eb234718368d7b8a7caca0c8be9e814719add61d55c28685183eeca24f"

/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=riscv64 os=linux os-distribution=ubuntu os-version=24.04
# 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-14 22:35.23 ---> saved as "eef5578bf1e361ecf502226acd7eddfefc16f7ce31d5191e3c710d9e51713dcf"

/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:36.00 ---> saved as "2e8e772bd0b6175e73c7dc220be45cb397b2e83e61a5914a89660c02c672d632"

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

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

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease
- Get:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease [126 kB]
- Get:3 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease [126 kB]
- Get:4 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease [126 kB]
- Get:5 http://ports.ubuntu.com/ubuntu-ports noble-updates/main riscv64 Packages [779 kB]
- Get:6 http://ports.ubuntu.com/ubuntu-ports noble-updates/universe riscv64 Packages [1152 kB]
- Get:7 http://ports.ubuntu.com/ubuntu-ports noble-backports/universe riscv64 Packages [27.6 kB]
- Get:8 http://ports.ubuntu.com/ubuntu-ports noble-backports/main riscv64 Packages [48.7 kB]
- Get:9 http://ports.ubuntu.com/ubuntu-ports noble-security/universe riscv64 Packages [870 kB]
- Get:10 http://ports.ubuntu.com/ubuntu-ports noble-security/main riscv64 Packages [480 kB]
- Fetched 3734 kB in 2s (1631 kB/s)
- Reading package lists...
- 
2025-07-14 22:38.06 ---> saved as "528212669080baf2bc10a3990507359c468f0b62dd0dd302fec93ac0c3855dee"

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

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall bam-ppx.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 \"\\\"ubuntu-24.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\" != 'bam-ppx.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"))
bam-ppx.0.4 is not installed. Install it? [y/n] y
The following actions will be performed:
=== install 8 packages
  - install bam-ppx             0.4 (pinned)
  - install dmap                0.5          [required by bam-ppx]
  - install dune                3.19.1       [required by bam-ppx]
  - install ocaml-compiler-libs v0.12.4      [required by ppxlib]
  - install ppx_derivers        1.2.1        [required by ppxlib]
  - install ppxlib              0.36.0       [required by bam-ppx]
  - install sexplib0            v0.17.0      [required by ppxlib]
  - install stdlib-shims        0.3.0        [required by ppxlib]

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved bam-ppx.0.4  (cached)
-> retrieved dmap.0.5  (cached)
-> retrieved dune.3.19.1  (cached)
-> retrieved ocaml-compiler-libs.v0.12.4  (cached)
-> retrieved ppx_derivers.1.2.1  (cached)
-> retrieved ppxlib.0.36.0  (cached)
-> retrieved sexplib0.v0.17.0  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> installed dune.3.19.1
-> installed ppx_derivers.1.2.1
-> installed dmap.0.5
-> installed stdlib-shims.0.3.0
-> installed sexplib0.v0.17.0
-> installed ocaml-compiler-libs.v0.12.4
-> installed ppxlib.0.36.0
-> installed bam-ppx.0.4
Done.
# To update the current shell environment, run: eval $(opam env)
2025-07-14 22:44.20 ---> saved as "5194c4a8aea12a6a9b5904e8cf0b4f91ef5eb07a2e2ead0ff05741ae890bd97b"
Job succeeded
2025-07-14 22:44.55: Job succeeded