(for PR #27984)

2025-06-04 00:55.36: New job: build runtime_events_tools.0.5.2, using opam 2.1
                              from https://github.com/ocaml/opam-repository.git#refs/pull/27984/head (9e2b2f55a32eeb63c1566ddc5da11e048a0b45a9)
                              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/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:2865cf8118220a93dbfbc86bfda6f352b4a5f3f3df9b7e98d6de9b5dfc339b9a
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 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:2865cf8118220a93dbfbc86bfda6f352b4a5f3f3df9b7e98d6de9b5dfc339b9a-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:2865cf8118220a93dbfbc86bfda6f352b4a5f3f3df9b7e98d6de9b5dfc339b9a)
 (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 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 00:55.42: Got resource from pool OCluster
Building on clete.caelum.ci.dev
All commits already cached
Updating files:  89% (20737/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:2865cf8118220a93dbfbc86bfda6f352b4a5f3f3df9b7e98d6de9b5dfc339b9a)
2025-06-04 01:01.08 ---> using "2dd7137756898801a305bef0221b74a8422f6b11fcce7c8326e8f0a450f73478" 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-04 01:01.08 ---> saved as "fbb4d5b3e81085566bbaec839ae8cd6579ef9fdca69ce3df8d40160afa769d22"

/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-04 01:02.36 ---> saved as "52c8584385f30fe9173744ceea371b0a3ff684fe6eba7d5dc91be914414a2433"

/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                 39
# 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-04 01:02.39 ---> saved as "f255d6dd3f849bb9f1ee6293f735522d1324c4dbecdd7c289695f3aaa03ec350"

/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:02.47 ---> saved as "9756fbce3000d3571e781a83ad7d5573c3d7eeddb99fe50291e835a1dbaf94f8"

/home/opam: (copy (src .) (dst opam-repository/))
2025-06-04 01:02.58 ---> saved as "bef3340e98867f5007809d42f7477204ea0688795ba40204fb22b0cbf2916b41"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-06-04 01:03.14 ---> saved as "bd96da40745e5e5465d53a55735339790b77740d074f8557e9d40faabafc5ecb"

/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 [265 kB]
- Fetched 368 kB in 1s (724 kB/s)
- Reading package lists...
- 
2025-06-04 01:03.15 ---> saved as "84c7651d8ba5fa79d602b3974506d174cd868d3190e6b7a70075cec2d61d7f49"

/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:03.16 ---> saved as "d457130b96451f0beed028fe3bcc7ccf6cebbc591560a9de61998d90386fe13b"

/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"))
runtime_events_tools.0.5.2 is not installed. Install it? [Y/n] y
  * Incompatible packages:
    - (invariant) -> ocaml-base-compiler = 4.14.2
    - runtime_events_tools >= 0.5.2 -> ocaml >= 5.0.0~ -> ocaml-variants < 5.0.1~
    You can temporarily relax the switch invariant with `--update-invariant'
  * Missing dependency:
    - runtime_events_tools >= 0.5.2 -> ocaml >= 5.0.0~ -> ocaml-variants < 5.0.1~ -> xenbigarray
    unknown package
  * Missing dependency:
    - runtime_events_tools >= 0.5.2 -> ocaml >= 5.0.0~ -> ocaml-variants < 5.0.1~ -> ocaml-beta
    unmet availability conditions: 'enable-ocaml-beta-repository'
  * Missing dependency:
    - runtime_events_tools >= 0.5.2 -> ocaml >= 5.0.0~ -> ocaml-variants < 5.2.1~ -> system-msvc
    unmet availability conditions: 'os = "win32"'

No solution found, exiting
"/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 20
2025-06-04 01:03.36: Job failed: Failed: Build failed
2025-06-04 01:03.36: Log analysis:
2025-06-04 01:03.36: >>> 
No solution found, exiting
 (score = 100)
2025-06-04 01:03.36: [SKIP] Package not available