(for PR #28222)

2025-09-17 10:25.32: New job: build lwt_direct.6.0.0~alpha01, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/28222/head (ed8323756373e087a38bf8e121ebf445f7114962)
                              on alpine-3.22-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/28222/head" && git reset --hard ed832375
git fetch origin master
git merge --no-edit 7949ff40d8af6dff67bf2361db44574e21c6d076
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:alpine-3.22-ocaml-4.14@sha256:e1cb67ff0571dfb179fc3cd9b7f5639658f87d2d7fc9f8a0ba7da3644a9fec12
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~alpha01 6.0.0~alpha01
RUN opam reinstall lwt_direct.6.0.0~alpha01; \
    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 "\"alpine-3.22\""; 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~alpha01' && 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-09-17 10:25.32: Using cache hint "ocaml/opam:alpine-3.22-ocaml-4.14@sha256:e1cb67ff0571dfb179fc3cd9b7f5639658f87d2d7fc9f8a0ba7da3644a9fec12-lwt_direct.6.0.0~alpha01-ed8323756373e087a38bf8e121ebf445f7114962"
2025-09-17 10:25.32: Using OBuilder spec:
((from ocaml/opam:alpine-3.22-ocaml-4.14@sha256:e1cb67ff0571dfb179fc3cd9b7f5639658f87d2d7fc9f8a0ba7da3644a9fec12)
 (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~alpha01 6.0.0~alpha01"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall lwt_direct.6.0.0~alpha01;\
             \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 \"\\\"alpine-3.22\\\"\"; 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~alpha01' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-09-17 10:25.32: Waiting for resource in pool OCluster
2025-09-17 11:10.13: Waiting for worker…
2025-09-17 11:14.09: Got resource from pool OCluster
Building on doris.caelum.ci.dev
All commits already cached
HEAD is now at 7949ff40d8 Merge pull request #28501 from vscoqbot/opam-publish-vsrocq-language-server.2.3.0
Merge made by the 'ort' strategy.
 packages/lwt/lwt.6.0.0~alpha01/opam               | 69 +++++++++++++++++++++++
 packages/lwt_direct/lwt_direct.6.0.0~alpha01/opam | 44 +++++++++++++++
 2 files changed, 113 insertions(+)
 create mode 100644 packages/lwt/lwt.6.0.0~alpha01/opam
 create mode 100644 packages/lwt_direct/lwt_direct.6.0.0~alpha01/opam

(from ocaml/opam:alpine-3.22-ocaml-4.14@sha256:e1cb67ff0571dfb179fc3cd9b7f5639658f87d2d7fc9f8a0ba7da3644a9fec12)
Unable to find image 'ocaml/opam:alpine-3.22-ocaml-4.14@sha256:e1cb67ff0571dfb179fc3cd9b7f5639658f87d2d7fc9f8a0ba7da3644a9fec12' locally
docker.io/ocaml/opam@sha256:e1cb67ff0571dfb179fc3cd9b7f5639658f87d2d7fc9f8a0ba7da3644a9fec12: Pulling from ocaml/opam
8c592723c59a: Already exists
a783cd037be3: Pulling fs layer
454bb22af03c: Pulling fs layer
b46fcd8729b0: Pulling fs layer
d538880e5354: Pulling fs layer
d538880e5354: Waiting
454bb22af03c: Verifying Checksum
454bb22af03c: Download complete
b46fcd8729b0: Verifying Checksum
b46fcd8729b0: Download complete
d538880e5354: Verifying Checksum
d538880e5354: Download complete
a783cd037be3: Verifying Checksum
a783cd037be3: Download complete
a783cd037be3: Pull complete
454bb22af03c: Pull complete
b46fcd8729b0: Pull complete
d538880e5354: Pull complete
Digest: sha256:e1cb67ff0571dfb179fc3cd9b7f5639658f87d2d7fc9f8a0ba7da3644a9fec12
Status: Downloaded newer image for ocaml/opam@sha256:e1cb67ff0571dfb179fc3cd9b7f5639658f87d2d7fc9f8a0ba7da3644a9fec12
2025-09-17 11:14.12 ---> using "b004d39c9addeb865f11c6029618ea8df221f8b3190584e8b865e82aabd3dd51" 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-09-17 11:14.12 ---> using "fd50e2c39e027c456985b4dcd13dab254afaada09aab245046f91d940b64a5b0" 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 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-09-17 11:14.12 ---> using "e704c2d7562dae2e76f441e9ab168adab1b8de2564715e8089f85836baa5f880" 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.1
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=alpine os-version=3.22.1
# 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-09-17 11:14.12 ---> using "3fe8cb128b560ff66ffda359065778ce002f2474816f56b512b1869dfdcad32c" 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-09-17 11:14.12 ---> using "bc77f03ca196f7eeb0248957591a52b3c8269d03ae03896f5d82b0c6a26193d4" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-09-17 11:14.20 ---> saved as "3c1ab20af4c4b90b8261fbd438b97089113d45ade583bb68f94355a7eb8e4c05"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-09-17 11:14.40 ---> saved as "66c0c1fd8ad9a7b89d4a9840784d2dbe2862eca56b4c80855dd3b74504b9d58a"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apk" "update"
- fetch https://dl-cdn.alpinelinux.org/alpine/v3.22/main/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/v3.22/community/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
- v3.22.1-419-g1db804adcdb [https://dl-cdn.alpinelinux.org/alpine/v3.22/main]
- v3.22.1-424-g381c9d8a32a [https://dl-cdn.alpinelinux.org/alpine/v3.22/community]
- v3.23.0_alpha20250612-6487-g697acb3ddb6 [https://dl-cdn.alpinelinux.org/alpine/edge/main]
- v3.23.0_alpha20250612-6494-g6d367c72fe1 [https://dl-cdn.alpinelinux.org/alpine/edge/community]
- v3.23.0_alpha20250612-6489-g85f96a11f65 [https://dl-cdn.alpinelinux.org/alpine/edge/testing]
- OK: 59143 distinct packages available
2025-09-17 11:14.45 ---> saved as "7458c0262c48ce6bcdcb90a2f656daf02ec91012f3d17b257bc969d6964bde77"

/home/opam: (run (shell "opam pin add -k version -yn lwt_direct.6.0.0~alpha01 6.0.0~alpha01"))
lwt_direct is now pinned to version 6.0.0~alpha01
2025-09-17 11:14.47 ---> saved as "5e0005794585825eec025a713d8214aba3b6d2d816d346792b23e5d24eb42060"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall lwt_direct.6.0.0~alpha01;\
                        \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 \"\\\"alpine-3.22\\\"\"; 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~alpha01' && 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~alpha01 is not installed. Install it? [Y/n] y
  * Incompatible packages:
    - (invariant) -> ocaml-base-compiler = 4.14.2
    - lwt_direct >= 6.0.0~alpha01 -> ocaml >= 5.0 -> ocaml-variants >= 5.0.0~
    You can temporarily relax the switch invariant with `--update-invariant'
  * Missing dependency:
    - lwt_direct >= 6.0.0~alpha01 -> 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~alpha01;
        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 "\"alpine-3.22\""; 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~alpha01' && 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-09-17 11:15.06: Job failed: Failed: Build failed
2025-09-17 11:15.06: Log analysis:
2025-09-17 11:15.06: >>> 
No solution found, exiting
 (score = 100)
2025-09-17 11:15.06: [SKIP] Package not available