(for PR #28894)

2025-11-14 14:52.16: New job: build lwt_direct.6.0.0-beta01, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/28894/head (b3a6ad64ea3115b9993ddd431f777dde4e6ec63f)
                              on debian-13-ocaml-4.11/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/28894/head" && git reset --hard b3a6ad64
git fetch origin master
git merge --no-edit 2ec6d6cc9216d1f4ec93aec16f34d7a35a7ef543
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-13-ocaml-4.11@sha256:ff624a0e21f01caa8535ed6af59df1086d4c2b4ae8ea0ff2d1e98d1d32ba6693
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 lwt_direct.6.0.0-beta01 6.0.0-beta01
RUN opam reinstall lwt_direct.6.0.0-beta01; \
    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-13\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'lwt_direct.6.0.0-beta01' && 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-11-14 14:52.16: Using cache hint "ocaml/opam:debian-13-ocaml-4.11@sha256:ff624a0e21f01caa8535ed6af59df1086d4c2b4ae8ea0ff2d1e98d1d32ba6693-lwt_direct.6.0.0-beta01-b3a6ad64ea3115b9993ddd431f777dde4e6ec63f"
2025-11-14 14:52.16: Using OBuilder spec:
((from ocaml/opam:debian-13-ocaml-4.11@sha256:ff624a0e21f01caa8535ed6af59df1086d4c2b4ae8ea0ff2d1e98d1d32ba6693)
 (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 lwt_direct.6.0.0-beta01 6.0.0-beta01"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall lwt_direct.6.0.0-beta01;\
             \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-13\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'lwt_direct.6.0.0-beta01' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-11-14 14:52.16: Waiting for resource in pool OCluster
2025-11-14 14:52.27: Waiting for worker…
2025-11-14 14:57.13: Got resource from pool OCluster
Building on bremusa.ocamllabs.io
All commits already cached
HEAD is now at 2ec6d6cc92 Merge pull request #28891 from c-cube/release-moonpool-v0.10
Updating 2ec6d6cc92..b3a6ad64ea
Fast-forward
 packages/lwt/lwt.6.0.0-beta01/opam                 | 66 ++++++++++++++++++++++
 packages/lwt_direct/lwt_direct.6.0.0-beta01/opam   | 42 ++++++++++++++
 packages/lwt_ppx/lwt_ppx.6.0.0-beta01/opam         | 43 ++++++++++++++
 .../lwt_runtime_events.6.0.0-beta01/opam           | 40 +++++++++++++
 4 files changed, 191 insertions(+)
 create mode 100644 packages/lwt/lwt.6.0.0-beta01/opam
 create mode 100644 packages/lwt_direct/lwt_direct.6.0.0-beta01/opam
 create mode 100644 packages/lwt_ppx/lwt_ppx.6.0.0-beta01/opam
 create mode 100644 packages/lwt_runtime_events/lwt_runtime_events.6.0.0-beta01/opam

(from ocaml/opam:debian-13-ocaml-4.11@sha256:ff624a0e21f01caa8535ed6af59df1086d4c2b4ae8ea0ff2d1e98d1d32ba6693)
2025-11-14 14:57.56 ---> saved as "ad715ac988295cbaf21a7f4a1e3686d1ef36ea7e0032909b6713a0d04cb2de20"

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2025-11-14 14:57.56 ---> saved as "9adab0fd3a4bc672c82a15964e674a191c6b868fd4145994856de45ec5072ca6"

/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 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-11-14 14:58.20 ---> saved as "0e37a7965fe5727effdc4d567feaa721839acfb4dfb8487604878a42524ee877"

/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.5.0~alpha1
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=debian os-version=13
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 71
# repositories         1 (version-controlled)
# pinned               1 (version)
# current-switch       4.11
# invariant            ["ocaml-base-compiler" {= "4.11.2"}]
# compiler-packages    ocaml-base-compiler.4.11.2
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/4.11/lib/ocaml/stublibs:/home/opam/.opam/4.11/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       4.11.2
2025-11-14 14:58.21 ---> saved as "338251e8010d0df8a0a685c54f746cceea08b47f55438db8ee54fe0567d0b96a"

/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-11-14 14:58.32 ---> saved as "40a8dd6f0db45216917e8d92bd547a4094f45b6776fd838d1080b76c4ce20643"

/home/opam: (copy (src .) (dst opam-repository/))
2025-11-14 14:58.45 ---> saved as "16f975e77fc334089650306e736640f0ab039505535fa20fa349380cf7185911"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-11-14 14:59.04 ---> saved as "8597f3187120d5ea5cf715348dc8cade386d604fdb7216a81d023a8e4eb4fddb"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian trixie InRelease
- Get:2 http://deb.debian.org/debian trixie-updates InRelease [47.3 kB]
- Get:3 http://deb.debian.org/debian-security trixie-security InRelease [43.4 kB]
- Get:4 http://deb.debian.org/debian-security trixie-security/main amd64 Packages [71.4 kB]
- Fetched 162 kB in 0s (1618 kB/s)
- Reading package lists...
- 
2025-11-14 14:59.05 ---> saved as "1a7e9a3ff391283aa6075c3c7812c7286c7bd168fdaeb0c59afe30e254ef079d"

/home/opam: (run (shell "opam pin add -k version -yn lwt_direct.6.0.0-beta01 6.0.0-beta01"))
lwt_direct is now pinned to version 6.0.0-beta01
2025-11-14 14:59.06 ---> saved as "31fbbe8954e0836fbe39edeff78285304a9c32b9d4a5d7804fd5196759362f2a"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall lwt_direct.6.0.0-beta01;\
                        \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-13\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'lwt_direct.6.0.0-beta01' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
lwt_direct.6.0.0-beta01 is not installed. Install it? [Y/n] y
  * Incompatible packages:
    - (invariant) -> ocaml-base-compiler = 4.11.2
    - lwt_direct >= 6.0.0-beta01 -> ocaml >= 5.0 -> ocaml-variants < 5.5.1~
    You can temporarily relax the switch invariant with `--update-invariant'
  * Missing dependency:
    - lwt_direct >= 6.0.0-beta01 -> ocaml >= 5.0 -> ocaml-variants < 5.5.1~ -> ocaml-beta
    unmet availability conditions: 'enable-ocaml-beta-repository'
  * Missing dependency:
    - lwt_direct >= 6.0.0-beta01 -> ocaml >= 5.0 -> ocaml-variants >= 5.0.0~ -> system-msvc
    unmet availability conditions: 'os = "win32"'

No solution found, exiting
"/usr/bin/env" "bash" "-c" "opam reinstall lwt_direct.6.0.0-beta01;
        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-13\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'lwt_direct.6.0.0-beta01' && 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-11-14 14:59.21: Job failed: Failed: Build failed
2025-11-14 14:59.21: Log analysis:
2025-11-14 14:59.21: >>> 
No solution found, exiting
 (score = 100)
2025-11-14 14:59.21: [SKIP] Package not available