(for PR #29227)

2026-01-16 14:16.05: New job: build styled-ppx.0.61.0, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29227/head (889d2daaa9a5b7a009f4b9ec65a8f3dc37909d60)
                              on debian-13-ocaml-5.0/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/29227/head" && git reset --hard 889d2daa
git fetch origin master
git merge --no-edit 92679ed61424ad5e3662cb5bba4effdd8f701363
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-13-ocaml-5.0@sha256:54bbee126005951f0e70bdd55d24e44b560f630da6768ac62f8e636774aab0e4
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 styled-ppx.0.61.0 0.61.0
RUN opam reinstall styled-ppx.0.61.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-13\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'styled-ppx.0.61.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 .

2026-01-16 14:16.05: Using cache hint "ocaml/opam:debian-13-ocaml-5.0@sha256:54bbee126005951f0e70bdd55d24e44b560f630da6768ac62f8e636774aab0e4-styled-ppx.0.61.0-889d2daaa9a5b7a009f4b9ec65a8f3dc37909d60"
2026-01-16 14:16.05: Using OBuilder spec:
((from ocaml/opam:debian-13-ocaml-5.0@sha256:54bbee126005951f0e70bdd55d24e44b560f630da6768ac62f8e636774aab0e4)
 (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 styled-ppx.0.61.0 0.61.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall styled-ppx.0.61.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-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\" != 'styled-ppx.0.61.0' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2026-01-16 14:16.05: Waiting for resource in pool OCluster
2026-01-16 14:16.06: Waiting for worker…
2026-01-16 14:16.23: Got resource from pool OCluster
Building on laodoke.caelum.ci.dev
Updating files:  55% (10697/19222)
Updating files:  56% (10765/19222)
Updating files:  57% (10957/19222)
Updating files:  58% (11149/19222)
Updating files:  59% (11341/19222)
Updating files:  60% (11534/19222)
Updating files:  61% (11726/19222)
Updating files:  62% (11918/19222)
Updating files:  63% (12110/19222)
Updating files:  64% (12303/19222)
Updating files:  65% (12495/19222)
Updating files:  66% (12687/19222)
Updating files:  67% (12879/19222)
Updating files:  68% (13071/19222)
Updating files:  69% (13264/19222)
Updating files:  70% (13456/19222)
Updating files:  71% (13648/19222)
Updating files:  72% (13840/19222)
Updating files:  73% (14033/19222)
Updating files:  74% (14225/19222)
Updating files:  75% (14417/19222)
Updating files:  76% (14609/19222)
Updating files:  77% (14801/19222)
Updating files:  78% (14994/19222)
Updating files:  79% (15186/19222)
Updating files:  80% (15378/19222)
Updating files:  81% (15570/19222)
Updating files:  82% (15763/19222)
Updating files:  83% (15955/19222)
Updating files:  84% (16147/19222)
Updating files:  85% (16339/19222)
Updating files:  86% (16531/19222)
Updating files:  87% (16724/19222)
Updating files:  88% (16916/19222)
Updating files:  89% (17108/19222)
Updating files:  90% (17300/19222)
Updating files:  91% (17493/19222)
Updating files:  92% (17685/19222)
Updating files:  93% (17877/19222)
Updating files:  94% (18069/19222)
Updating files:  95% (18261/19222)
Updating files:  96% (18454/19222)
Updating files:  97% (18646/19222)
Updating files:  98% (18838/19222)
Updating files:  99% (19030/19222)
Updating files: 100% (19222/19222)
Updating files: 100% (19222/19222), done.
HEAD is now at 6fd9bb3c8d Merge commit '9992c9eeb5759412c4c08720b431f6dc300cf097'
HEAD is now at 92679ed614 Merge pull request #29220 from davesnx/release-server-reason-react-0.4.1
Updating 92679ed614..889d2daaa9
Fast-forward
 packages/styled-ppx/styled-ppx.0.61.0/opam | 55 ++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)
 create mode 100644 packages/styled-ppx/styled-ppx.0.61.0/opam

(from ocaml/opam:debian-13-ocaml-5.0@sha256:54bbee126005951f0e70bdd55d24e44b560f630da6768ac62f8e636774aab0e4)
2026-01-16 14:16.40 ---> using "ddd37be92c9b56d281c587e661e20a8ee6777ba8c8eb0346c4be459788d39d65" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2026-01-16 14:16.40 ---> using "9af249e36e091516066ff3e8c60af672758505147d18effca2b7ee9863431916" 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
2026-01-16 14:16.40 ---> using "184e1c6dd9f299b80ab8a79ec8cc56d263df6abfebd940122996b4e5489bb79b" 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=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       5.0
# invariant            ["ocaml-base-compiler" {= "5.0.0"}]
# compiler-packages    ocaml-base-compiler.5.0.0, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/5.0/lib/ocaml/stublibs:/home/opam/.opam/5.0/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       5.0.0
2026-01-16 14:16.40 ---> using "ec1d6e1f0fb00e6e4bc136fea8c7b54f84752a4563623c19db1b1505493e895f" 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/"))
2026-01-16 14:16.40 ---> using "e746d27cd65bf6f8c139fc63b72b0c98abb2ce6e37f94c13430793f27a2f25c4" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2026-01-16 14:16.58 ---> saved as "3c83eb934f60817df55049d1a57092e7b4e3521fbde76106ae084e59db44fc08"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2026-01-16 14:17.32 ---> saved as "6cc4337aa907ca0a5396e54a4a41890dc51fde407edeb339e01a1abb23f59016"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Get:1 http://deb.debian.org/debian trixie InRelease [140 kB]
- 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 trixie/main amd64 Packages [9670 kB]
- Get:5 http://deb.debian.org/debian-security trixie-security/main amd64 Packages [95.9 kB]
- Fetched 9997 kB in 2s (4744 kB/s)
- Reading package lists...
- 
2026-01-16 14:17.36 ---> saved as "54399325618ec975bf89e475553c160ebb530f85f5a4601b6d18300681086afd"

/home/opam: (run (shell "opam pin add -k version -yn styled-ppx.0.61.0 0.61.0"))
styled-ppx is now pinned to version 0.61.0
2026-01-16 14:17.38 ---> saved as "8952b4f4c87abaa1ba9a911221ba5ba290c1b7590e4a7ded8868c4e5c35f58f8"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall styled-ppx.0.61.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-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\" != 'styled-ppx.0.61.0' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
styled-ppx.0.61.0 is not installed. Install it? [Y/n] y
  * Incompatible packages:
    - (invariant) -> ocaml-base-compiler = 5.0.0
    - styled-ppx >= 0.61.0 -> melange >= 3.0.0 -> ocaml < 5.0 -> dkml-base-compiler
    You can temporarily relax the switch invariant with `--update-invariant'
  * Incompatible packages:
    - (invariant) -> ocaml-base-compiler = 5.0.0
    - styled-ppx >= 0.61.0 -> melange >= 3.0.0 -> ocaml < 5.0 -> ocaml-variants (< 4.02.4~ | >= 4.02.4)
  * Missing dependency:
    - styled-ppx >= 0.61.0 -> melange >= 3.0.0 -> ocaml < 5.0 -> 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.0.0
    unmet availability conditions, e.g. 'sys-ocaml-version = "5.4.0" & (os != "win32" | sys-ocaml-libc = "msvc")'
    no matching version
  * Missing dependency:
    - styled-ppx >= 0.61.0 -> melange >= 3.0.0 -> ocaml < 5.0 -> ocaml-variants >= 4.02.4 -> ocaml-beta
    unmet availability conditions: 'enable-ocaml-beta-repository'
  * Missing dependency:
    - styled-ppx >= 0.61.0 -> melange >= 3.0.0 -> ocaml < 5.0 -> ocaml-variants >= 4.02.4 -> system-msvc
    unmet availability conditions: 'os = "win32"'

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