(for PR #27984)

2025-06-04 00:55.36: New job: build runtime_events_tools.0.5.2, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/27984/head (9e2b2f55a32eeb63c1566ddc5da11e048a0b45a9)
                              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/27984/head" && git reset --hard 9e2b2f55
git fetch origin master
git merge --no-edit c037675bed027195b802bf40b1840ece3feb3b2a
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-4.14@sha256:75685aae96407fcc7a91d867129388b9c088ee602ea78c7473fcef1c89cf3217
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 runtime_events_tools.0.5.2 0.5.2
RUN opam reinstall runtime_events_tools.0.5.2; \
    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" != 'runtime_events_tools.0.5.2' && 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-04 00:55.36: Using cache hint "ocaml/opam:debian-12-ocaml-4.14@sha256:75685aae96407fcc7a91d867129388b9c088ee602ea78c7473fcef1c89cf3217-runtime_events_tools.0.5.2-9e2b2f55a32eeb63c1566ddc5da11e048a0b45a9"
2025-06-04 00:55.36: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.14@sha256:75685aae96407fcc7a91d867129388b9c088ee602ea78c7473fcef1c89cf3217)
 (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 runtime_events_tools.0.5.2 0.5.2"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall runtime_events_tools.0.5.2;\
             \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\" != 'runtime_events_tools.0.5.2' && 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-04 00:55.36: Waiting for resource in pool OCluster
2025-06-04 00:55.37: Waiting for worker…
2025-06-04 01:16.40: Got resource from pool OCluster
Building on s390x-worker-01.marist.ci.dev
All commits already cached
Updating files:  34% (7960/23182)
Updating files:  35% (8114/23182)
Updating files:  36% (8346/23182)
Updating files:  37% (8578/23182)
Updating files:  38% (8810/23182)
Updating files:  39% (9041/23182)
Updating files:  40% (9273/23182)
Updating files:  41% (9505/23182)
Updating files:  42% (9737/23182)
Updating files:  43% (9969/23182)
Updating files:  44% (10201/23182)
Updating files:  45% (10432/23182)
Updating files:  46% (10664/23182)
Updating files:  47% (10896/23182)
Updating files:  48% (11128/23182)
Updating files:  49% (11360/23182)
Updating files:  50% (11591/23182)
Updating files:  51% (11823/23182)
Updating files:  52% (12055/23182)
Updating files:  53% (12287/23182)
Updating files:  54% (12519/23182)
Updating files:  55% (12751/23182)
Updating files:  56% (12982/23182)
Updating files:  57% (13214/23182)
Updating files:  58% (13446/23182)
Updating files:  59% (13678/23182)
Updating files:  60% (13910/23182)
Updating files:  61% (14142/23182)
Updating files:  62% (14373/23182)
Updating files:  63% (14605/23182)
Updating files:  64% (14837/23182)
Updating files:  65% (15069/23182)
Updating files:  66% (15301/23182)
Updating files:  67% (15532/23182)
Updating files:  68% (15764/23182)
Updating files:  69% (15996/23182)
Updating files:  70% (16228/23182)
Updating files:  71% (16460/23182)
Updating files:  72% (16692/23182)
Updating files:  72% (16916/23182)
Updating files:  73% (16923/23182)
Updating files:  74% (17155/23182)
Updating files:  75% (17387/23182)
Updating files:  76% (17619/23182)
Updating files:  77% (17851/23182)
Updating files:  78% (18082/23182)
Updating files:  79% (18314/23182)
Updating files:  80% (18546/23182)
Updating files:  81% (18778/23182)
Updating files:  82% (19010/23182)
Updating files:  83% (19242/23182)
Updating files:  84% (19473/23182)
Updating files:  85% (19705/23182)
Updating files:  86% (19937/23182)
Updating files:  87% (20169/23182)
Updating files:  88% (20401/23182)
Updating files:  89% (20632/23182)
Updating files:  90% (20864/23182)
Updating files:  91% (21096/23182)
Updating files:  92% (21328/23182)
Updating files:  93% (21560/23182)
Updating files:  94% (21792/23182)
Updating files:  95% (22023/23182)
Updating files:  96% (22255/23182)
Updating files:  97% (22487/23182)
Updating files:  98% (22719/23182)
Updating files:  99% (22951/23182)
Updating files: 100% (23182/23182)
Updating files: 100% (23182/23182), done.
HEAD is now at c037675bed Merge pull request #27980 from jmid/conf-freeglut-typo
Updating c037675bed..9e2b2f55a3
Fast-forward
 .../runtime_events_tools.0.5.2/opam                | 44 ++++++++++++++++++++++
 .../runtime_events_tools_bare.0.5.2/opam           | 39 +++++++++++++++++++
 2 files changed, 83 insertions(+)
 create mode 100644 packages/runtime_events_tools/runtime_events_tools.0.5.2/opam
 create mode 100644 packages/runtime_events_tools_bare/runtime_events_tools_bare.0.5.2/opam

(from ocaml/opam:debian-12-ocaml-4.14@sha256:75685aae96407fcc7a91d867129388b9c088ee602ea78c7473fcef1c89cf3217)
Unable to find image 'ocaml/opam:debian-12-ocaml-4.14@sha256:75685aae96407fcc7a91d867129388b9c088ee602ea78c7473fcef1c89cf3217' locally
docker.io/ocaml/opam@sha256:75685aae96407fcc7a91d867129388b9c088ee602ea78c7473fcef1c89cf3217: Pulling from ocaml/opam
Digest: sha256:75685aae96407fcc7a91d867129388b9c088ee602ea78c7473fcef1c89cf3217
Status: Downloaded newer image for ocaml/opam@sha256:75685aae96407fcc7a91d867129388b9c088ee602ea78c7473fcef1c89cf3217
2025-06-04 01:16.46 ---> using "7bf2ca3b75c36474bc12fc84ac82ed5af7214550ed92d50bc904337628065e1c" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2025-06-04 01:16.46 ---> using "7595d93247a00c71d3f27144c9d63716e89be8265366d594e030ff4d2023df63" 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 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-06-04 01:16.46 ---> using "920b49b1bebbfa0cbb87b7baad6606486af1ac6e874f2ffa7e191c6a00957e3d" 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.4.0~alpha2
# 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-06-04 01:16.46 ---> using "ee51fd0d35b5bc0ff8ee860dc6cf2db326d5190d7ec49d267f50d6d50d049923" 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-06-04 01:16.48 ---> using "2146b9ad063d82d9e9a79a51bc7436995ac11667c65ec9686f3fcb06e8ba1a24" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-06-04 01:16.49 ---> using "b6de9fc51c0dc7ffa49c5ef4f125953fe0600c9aa417b7aa780ddb40c09b6bc4" from cache

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-06-04 01:16.49 ---> using "c5c886b436f9815a875f7465fe77ea609e1aba9c90827456d96336f76377b729" 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-security bookworm-security/main s390x Packages [233 kB]
- Fetched 336 kB in 1s (311 kB/s)
- Reading package lists...
- 
2025-06-04 01:16.49 ---> using "6f15e305dec272605da1653bbb943310cc8cfeacf81eb3e94b8a5402c2783c65" from cache

/home/opam: (run (shell "opam pin add -k version -yn runtime_events_tools.0.5.2 0.5.2"))
runtime_events_tools is now pinned to version 0.5.2
2025-06-04 01:17.37 ---> saved as "16f6e69c81dfdfd12e42174386675575d81684486d418a6456ae7404713feae4"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall runtime_events_tools.0.5.2;\
                        \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\" != 'runtime_events_tools.0.5.2' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
[ERROR] runtime_events_tools = 0.5.2: unmet availability conditions: '(arch = "x86_64" | arch = "arm64") & os != "win32"'
"/usr/bin/env" "bash" "-c" "opam reinstall runtime_events_tools.0.5.2;
        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" != 'runtime_events_tools.0.5.2' && partial_fails="$partial_fails $pkg";
        done;
        test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}";
        exit 1" failed with exit status 5
2025-06-04 01:18.47: Job failed: Failed: Build failed
2025-06-04 01:18.47: Log analysis:
2025-06-04 01:18.47: >>> 
[ERROR] runtime_events_tools = 0.5.2: unmet availability conditions: '(arch = "x86_64" | arch = "arm64") & os != "win32"'
 (score = 100)
2025-06-04 01:18.47: [SKIP] Package not available