(for PR #28610)

2025-09-30 11:35.51: New job: build ppx_yojson.1.3.0, using opam 2.0
                              from https://github.com/ocaml/opam-repository.git#refs/pull/28610/head (307bd6a7d04a5f700ad8eb00752262d926973378)
                              on debian-13-ocaml-5.3/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/28610/head" && git reset --hard 307bd6a7
git fetch origin master
git merge --no-edit dfe27d924d3f2d9d3045aa994e54a6172a669ecb
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-13-ocaml-5.3@sha256:d96959611c273d7e1726ccd221b4f5e95a02676bef62ee9cd5d6f638aaaa573f
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-2.0 /usr/bin/opam
RUN opam init --reinit -ni
RUN 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 depext -u || true
RUN opam pin add -k version -yn ppx_yojson.1.3.0 1.3.0
RUN opam depext ppx_yojson.1.3.0 && opam reinstall ppx_yojson.1.3.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" != 'ppx_yojson.1.3.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-09-30 11:35.51: Using cache hint "ocaml/opam:debian-13-ocaml-5.3@sha256:d96959611c273d7e1726ccd221b4f5e95a02676bef62ee9cd5d6f638aaaa573f-ppx_yojson.1.3.0-307bd6a7d04a5f700ad8eb00752262d926973378"
2025-09-30 11:35.51: Using OBuilder spec:
((from ocaml/opam:debian-13-ocaml-5.3@sha256:d96959611c273d7e1726ccd221b4f5e95a02676bef62ee9cd5d6f638aaaa573f)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "sudo ln -f /usr/bin/opam-2.0 /usr/bin/opam"))
 (run (network host)
      (shell "opam init --reinit --config .opamrc-sandbox -ni"))
 (run (shell "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 depext -u || true"))
 (run (shell "opam pin add -k version -yn ppx_yojson.1.3.0 1.3.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam depext ppx_yojson.1.3.0 && opam reinstall ppx_yojson.1.3.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\" != 'ppx_yojson.1.3.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-09-30 11:35.51: Waiting for resource in pool OCluster
2025-09-30 11:35.53: Waiting for worker…
2025-09-30 11:35.54: Got resource from pool OCluster
Building on asteria.caelum.ci.dev
All commits already cached
HEAD is now at dfe27d924d Merge pull request #28613 from kit-ty-kate/opam-2.4-stable-patch
Merge made by the 'ort' strategy.
 packages/ppx_yojson/ppx_yojson.1.3.0/opam      |  2 +-
 packages/ppxlib-tools/ppxlib-tools.0.36.2/opam | 46 ++++++++++++++++++
 packages/ppxlib/ppxlib.0.36.2/opam             | 64 ++++++++++++++++++++++++++
 3 files changed, 111 insertions(+), 1 deletion(-)
 create mode 100644 packages/ppxlib-tools/ppxlib-tools.0.36.2/opam
 create mode 100644 packages/ppxlib/ppxlib.0.36.2/opam

(from ocaml/opam:debian-13-ocaml-5.3@sha256:d96959611c273d7e1726ccd221b4f5e95a02676bef62ee9cd5d6f638aaaa573f)
2025-09-30 11:36.58 ---> using "e5ce46144b4e25b3e363c3d09bd5c434fad1097e903303a843a6f78001c9b5bd" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.0 /usr/bin/opam"))
2025-09-30 11:36.58 ---> using "a572331404cd1dd4d00f21fa44662315310144367c8b3444905d127f19b724da" from cache

/home/opam: (run (network host)
                 (shell "opam init --reinit --config .opamrc-sandbox -ni"))
[NOTE] Will configure 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.

[WARNING] Recommended dependencies -- most packages rely on these:
  - m4

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
default (at git+file:///home/opam/opam-repository): 
    [INFO] opam 2.1 and 2.2 include many performance and security improvements over 2.0; please consider upgrading (https://opam.ocaml.org/doc/Install.html)

2025-09-30 11:36.58 ---> using "5fb116da61bcfcc9b7007fcbf12be0f518067e0383b7c2e23ad9341e7d314675" from cache

/home/opam: (run (shell "opam config report"))
# opam config report
# opam-version      2.0.10 (adc1e1829a2bef5b240746df80341b508290fe3b) 
# self-upgrade      no
# system            arch=x86_64 os=linux os-distribution=debian os-version=13
# solver            builtin-mccs+glpk
# install-criteria  -removed,-count[version-lag,request],-count[version-lag,changed],-changed
# upgrade-criteria  -removed,-count[version-lag,solution],-new
# jobs              71
# repositories      1 (version-controlled)
# pinned            1 (version)
# current-switch    5.3
2025-09-30 11:36.58 ---> using "351436958f92f78a88e06fe38470767537ad17251d2926563985d8c31bc97ed7" 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-30 11:36.58 ---> using "46d945b90ad5ff5bc26d93d873d4300de075e44872c9b346d663c0b39c5c2fd7" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-09-30 11:37.05 ---> saved as "9ab6a9a227292c07d814b44f078d56bf4f2896b455d2a3efb5efef5115d7baf4"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
default (at file:///home/opam/opam-repository): 
    [INFO] opam 2.1 and 2.2 include many performance and security improvements over 2.0; please consider upgrading (https://opam.ocaml.org/doc/Install.html)

2025-09-30 11:37.16 ---> saved as "58decd1b002eafd4c152ffcada4561e1ae470c03074f1930cbe104117d5150da"

/home/opam: (run (network host)
                 (shell "opam depext -u || true"))
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# No extra OS packages requirements found.
# All required OS packages found.
The following command needs to be run through "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 [47.7 kB]
Fetched 138 kB in 0s (1653 kB/s)
Reading package lists...
# OS package update successful
2025-09-30 11:37.17 ---> saved as "76e39f41adcf6538f7aa22fb167c1f2e9a4ef4ca2649f26e2bcfcd4e28a1f0de"

/home/opam: (run (shell "opam pin add -k version -yn ppx_yojson.1.3.0 1.3.0"))
ppx_yojson is now pinned to version 1.3.0
2025-09-30 11:37.18 ---> saved as "6493df9fef9c625e38921a870dac09c46b62144305ccdf7c3567b2bb5ef6d676"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam depext ppx_yojson.1.3.0 && opam reinstall ppx_yojson.1.3.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\" != 'ppx_yojson.1.3.0' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# No extra OS packages requirements found.
# All required OS packages found.
ppx_yojson.1.3.0 is not installed. Install it? [Y/n] y
The following actions will be performed:
  - install dune                3.20.2  [required by ppx_yojson]
  - install stdlib-shims        0.3.0   [required by ppxlib]
  - install sexplib0            v0.17.0 [required by ppxlib]
  - install ppx_derivers        1.2.1   [required by ppxlib]
  - install ocaml-compiler-libs v0.17.0 [required by ppxlib]
  - install ppxlib              0.36.2  [required by ppx_yojson]
  - install ppx_yojson          1.3.0*
===== 7 to install =====

<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[dune.3.20.2] found in cache
[ocaml-compiler-libs.v0.17.0] found in cache
[ppx_derivers.1.2.1] found in cache
[ppx_yojson.1.3.0] found in cache
[ppxlib.0.36.2] found in cache
[sexplib0.v0.17.0] found in cache
[stdlib-shims.0.3.0] found in cache

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed dune.3.20.2
-> installed ppx_derivers.1.2.1
-> installed stdlib-shims.0.3.0
-> installed sexplib0.v0.17.0
-> installed ocaml-compiler-libs.v0.17.0
-> installed ppxlib.0.36.2
-> installed ppx_yojson.1.3.0
Done.
# Run eval $(opam env) to update the current shell environment
2025-09-30 11:38.04 ---> saved as "53a58f9f68c321d6e534ba47dc3f0fd77f1c814599bc8c7c9e67ceb3161e8cc3"
Job succeeded
2025-09-30 11:38.13: Job succeeded