(for PR #29030)

2025-12-07 04:58.04: New job: build melange-testing-library.0.2.0, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29030/head (4ef7835fadf0f40eb424e189c0eb87126d2e5d9c)
                              on debian-testing-ocaml-5.4/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/29030/head" && git reset --hard 4ef7835f
git fetch origin master
git merge --no-edit 2ab7464b16d46be89975bea0595240dd3fccf608
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-testing-ocaml-5.4@sha256:c96e49ce9d8a19275fccc120fa5e4ccb0d322ad05a01874a7aaabd3ad694d982
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 melange-testing-library.0.2.0 0.2.0
RUN opam reinstall melange-testing-library.0.2.0; \
    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-testing\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'melange-testing-library.0.2.0' && 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-12-07 04:58.04: Using cache hint "ocaml/opam:debian-testing-ocaml-5.4@sha256:c96e49ce9d8a19275fccc120fa5e4ccb0d322ad05a01874a7aaabd3ad694d982-melange-testing-library.0.2.0-4ef7835fadf0f40eb424e189c0eb87126d2e5d9c"
2025-12-07 04:58.04: Using OBuilder spec:
((from ocaml/opam:debian-testing-ocaml-5.4@sha256:c96e49ce9d8a19275fccc120fa5e4ccb0d322ad05a01874a7aaabd3ad694d982)
 (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 melange-testing-library.0.2.0 0.2.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall melange-testing-library.0.2.0;\
             \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-testing\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'melange-testing-library.0.2.0' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-12-07 04:58.04: Waiting for resource in pool OCluster
2025-12-07 04:58.05: Waiting for worker…
2025-12-07 04:58.05: Got resource from pool OCluster
Building on toxis.caelum.ci.dev
All commits already cached
HEAD is now at 2ab7464b16 Merge pull request #29022 from thatportugueseguy/release-passage-0.3.1
Updating 2ab7464b16..4ef7835fad
Fast-forward
 .../melange-testing-library.0.2.0/opam             | 51 ++++++++++++++++++++++
 1 file changed, 51 insertions(+)
 create mode 100644 packages/melange-testing-library/melange-testing-library.0.2.0/opam

(from ocaml/opam:debian-testing-ocaml-5.4@sha256:c96e49ce9d8a19275fccc120fa5e4ccb0d322ad05a01874a7aaabd3ad694d982)
Unable to find image 'ocaml/opam:debian-testing-ocaml-5.4@sha256:c96e49ce9d8a19275fccc120fa5e4ccb0d322ad05a01874a7aaabd3ad694d982' locally
docker.io/ocaml/opam@sha256:c96e49ce9d8a19275fccc120fa5e4ccb0d322ad05a01874a7aaabd3ad694d982: Pulling from ocaml/opam
92c0a222f15d: Pulling fs layer
a831fd00e935: Pulling fs layer
d8c475a0a4e8: Pulling fs layer
472822cbed9f: Pulling fs layer
7a1f6ea387bf: Pulling fs layer
940d8f8f7b80: Pulling fs layer
436f0723584e: Pulling fs layer
40240b00114f: Pulling fs layer
d8c475a0a4e8: Waiting
472822cbed9f: Waiting
7a1f6ea387bf: Waiting
940d8f8f7b80: Waiting
40240b00114f: Waiting
a831fd00e935: Verifying Checksum
a831fd00e935: Download complete
d8c475a0a4e8: Verifying Checksum
d8c475a0a4e8: Download complete
472822cbed9f: Verifying Checksum
472822cbed9f: Download complete
92c0a222f15d: Verifying Checksum
92c0a222f15d: Download complete
940d8f8f7b80: Download complete
436f0723584e: Verifying Checksum
436f0723584e: Download complete
40240b00114f: Verifying Checksum
40240b00114f: Download complete
7a1f6ea387bf: Verifying Checksum
7a1f6ea387bf: Download complete
92c0a222f15d: Pull complete
a831fd00e935: Pull complete
d8c475a0a4e8: Pull complete
472822cbed9f: Pull complete
7a1f6ea387bf: Pull complete
940d8f8f7b80: Pull complete
436f0723584e: Pull complete
40240b00114f: Pull complete
Digest: sha256:c96e49ce9d8a19275fccc120fa5e4ccb0d322ad05a01874a7aaabd3ad694d982
Status: Downloaded newer image for ocaml/opam@sha256:c96e49ce9d8a19275fccc120fa5e4ccb0d322ad05a01874a7aaabd3ad694d982
2025-12-07 04:58.31 ---> using "2cfe332a29592a8ceee8880a973b20b942658920a4e37a534575887d9e42603f" 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-12-07 04:58.31 ---> using "d62844012c8843f52fc67a68d5b59ec4eee4a89c46cc709086fa4f2052b86246" 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-12-07 04:58.31 ---> using "29b90749a551e73ee26881dd31d04bf20aa17a06a4af2e3122ffe7f036fb1733" 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.5.0
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=debian os-version=unknown
# 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       5.4
# invariant            ["ocaml-base-compiler" {>= "5.4.0"}]
# compiler-packages    ocaml-base-compiler.5.4.0, ocaml-compiler.5.4.0, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/5.4/lib/ocaml/stublibs:/home/opam/.opam/5.4/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       5.4.0
2025-12-07 04:58.31 ---> using "a85246f05aaa0af6109bf404c283eaad90537cf74d5bbc7e5a04e122fe513d7d" 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-12-07 04:58.31 ---> using "43580fe12115a652fd10eb9c40f91641b62b9896d2ea8a5322e6b964cdd12395" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-12-07 04:58.40 ---> saved as "761689bd9a2277650797172c249cac77aca6ccd789efb1231f8a83309757a3e5"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-12-07 04:58.59 ---> saved as "5fa6f7a038b4e596f43b0d837290605211e1aae5c0293ad647ea97f41b91f2da"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Get:1 http://deb.debian.org/debian testing InRelease [137 kB]
- Get:2 http://deb.debian.org/debian testing-updates InRelease [40.6 kB]
- Get:3 http://deb.debian.org/debian-security testing-security InRelease [43.4 kB]
- Get:4 http://deb.debian.org/debian testing/main amd64 Packages.diff/Index [63.6 kB]
- Get:5 http://deb.debian.org/debian testing/main amd64 Packages T-2025-12-07-0204.03-F-2025-11-29-1403.48.pdiff [758 kB]
- Get:5 http://deb.debian.org/debian testing/main amd64 Packages T-2025-12-07-0204.03-F-2025-11-29-1403.48.pdiff [758 kB]
- Fetched 1043 kB in 4s (266 kB/s)
- Reading package lists...
- 
2025-12-07 04:59.04 ---> saved as "810bf08ee53b198b27e422525cf37c494205c180f4b08453419a8c1044d0c2e2"

/home/opam: (run (shell "opam pin add -k version -yn melange-testing-library.0.2.0 0.2.0"))
melange-testing-library is now pinned to version 0.2.0
2025-12-07 04:59.05 ---> saved as "dfdcfd3879d6053b0abdef6f0ab9300d21398126cdfd628340a151a1df350a84"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall melange-testing-library.0.2.0;\
                        \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-testing\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'melange-testing-library.0.2.0' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
melange-testing-library.0.2.0 is not installed. Install it? [Y/n] y
  * Incompatible packages:
    - (invariant) -> ocaml-base-compiler >= 5.4.0
    - melange-testing-library >= 0.2.0 -> melange >= 5.0.0 -> ocaml < 5.2 -> dkml-base-compiler
    You can temporarily relax the switch invariant with `--update-invariant'
  * Incompatible packages:
    - (invariant) -> ocaml-base-compiler >= 5.4.0
    - melange-testing-library >= 0.2.0 -> melange >= 5.0.0 -> ocaml < 5.2 -> ocaml-variants
  * Missing dependency:
    - melange-testing-library >= 0.2.0 -> melange >= 5.0.0 -> ocaml < 5.2 -> ocaml-base-compiler (<= 3.07+1 | = 3.07+2 | = 3.08.0 | = 3.08.1 | = 3.08.2 | = 3.08.3 | = 3.08.4 | = 3.09.0) | ocaml-system (<= 3.07+1 | = 3.07+2 | >= 3.08.0) | ocaml-variants < 3.09.1~
    not available because the package is pinned to version 5.4.0
    unmet availability conditions, e.g. 'sys-ocaml-version = "5.4.0" & (os != "win32" | sys-ocaml-libc = "msvc")'
    no matching version
  * Missing dependency:
    - melange-testing-library >= 0.2.0 -> melange >= 5.0.0 -> ocaml < 5.2 -> ocaml-variants -> ocaml-beta
    unmet availability conditions: 'enable-ocaml-beta-repository'
  * Missing dependency:
    - melange-testing-library >= 0.2.0 -> melange >= 5.0.0 -> ocaml < 5.2 -> ocaml-variants -> system-msvc
    unmet availability conditions: 'os = "win32"'

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