(for PR #25720)

2024-04-26 13:17.12: New job: build ppx_deriving_yojson.3.8.0, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/25720/head (7edd88808a339b9f4b325cc31d3b5cfbee2ddf5b)
                              on debian-11-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/25720/head" && git reset --hard 7edd8880
git fetch origin master
git merge --no-edit 01db0f1d8c7b59beff7b97ab33a28f2a46de9d77
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-11-ocaml-4.14@sha256:68c1e7e258d496f2f5ef538184a1dbc6f421ae896308f7303211fba4d9d42e16
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-dev /usr/bin/opam
RUN opam init --reinit -ni
RUN uname -rs && opam exec -- ocaml -version && opam --version
ENV OPAMDOWNLOADJOBS="1"
ENV OPAMERRLOGLEN="0"
ENV OPAMSOLVERTIMEOUT="500"
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
ENV OPAMCRITERIA="-removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed"
ENV OPAMFIXUPCRITERIA="-removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed"
ENV OPAMUPGRADECRITERIA="-removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed"
RUN opam pin add -k version -yn ppx_deriving_yojson.3.8.0 3.8.0
RUN opam reinstall ppx_deriving_yojson.3.8.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-11\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'ppx_deriving_yojson.3.8.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 .

2024-04-26 13:17.12: Using cache hint "ocaml/opam:debian-11-ocaml-4.14@sha256:68c1e7e258d496f2f5ef538184a1dbc6f421ae896308f7303211fba4d9d42e16-ppx_deriving_yojson.3.8.0-7edd88808a339b9f4b325cc31d3b5cfbee2ddf5b"
2024-04-26 13:17.12: Using OBuilder spec:
((from ocaml/opam:debian-11-ocaml-4.14@sha256:68c1e7e258d496f2f5ef538184a1dbc6f421ae896308f7303211fba4d9d42e16)
 (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 "uname -rs && opam exec -- ocaml -version && opam --version"))
 (env OPAMDOWNLOADJOBS 1)
 (env OPAMERRLOGLEN 0)
 (env OPAMSOLVERTIMEOUT 500)
 (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"))
 (env OPAMCRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)
 (env OPAMFIXUPCRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)
 (env OPAMUPGRADECRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)
 (run (shell "opam pin add -k version -yn ppx_deriving_yojson.3.8.0 3.8.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall ppx_deriving_yojson.3.8.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-11\\\"\"; 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_deriving_yojson.3.8.0' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2024-04-26 13:17.12: Waiting for resource in pool OCluster
2024-04-26 14:09.53: Waiting for worker…
2024-04-26 14:13.16: Got resource from pool OCluster
Building on x86-bm-c5.sw.ocaml.org
All commits already cached
Updating files:  68% (23001/33561)
Updating files:  69% (23158/33561)
Updating files:  70% (23493/33561)
Updating files:  71% (23829/33561)
Updating files:  72% (24164/33561)
Updating files:  73% (24500/33561)
Updating files:  74% (24836/33561)
Updating files:  75% (25171/33561)
Updating files:  76% (25507/33561)
Updating files:  77% (25842/33561)
Updating files:  78% (26178/33561)
Updating files:  79% (26514/33561)
Updating files:  80% (26849/33561)
Updating files:  81% (27185/33561)
Updating files:  82% (27521/33561)
Updating files:  83% (27856/33561)
Updating files:  84% (28192/33561)
Updating files:  85% (28527/33561)
Updating files:  86% (28863/33561)
Updating files:  87% (29199/33561)
Updating files:  88% (29534/33561)
Updating files:  89% (29870/33561)
Updating files:  90% (30205/33561)
Updating files:  91% (30541/33561)
Updating files:  92% (30877/33561)
Updating files:  93% (31212/33561)
Updating files:  94% (31548/33561)
Updating files:  95% (31883/33561)
Updating files:  96% (32219/33561)
Updating files:  97% (32555/33561)
Updating files:  98% (32890/33561)
Updating files:  99% (33226/33561)
Updating files: 100% (33561/33561)
Updating files: 100% (33561/33561), done.
HEAD is now at 01db0f1d8c Merge pull request #25712 from toots/opam-publish-mad.0.5.3
Updating 01db0f1d8c..7edd88808a
Fast-forward
 .../ppx_deriving_yojson.3.8.0/opam                 | 34 ++++++++++++++++++++++
 packages/safemoney/safemoney.0.1.0/opam            |  2 +-
 packages/safemoney/safemoney.0.1.1/opam            |  2 +-
 3 files changed, 36 insertions(+), 2 deletions(-)
 create mode 100644 packages/ppx_deriving_yojson/ppx_deriving_yojson.3.8.0/opam

(from ocaml/opam:debian-11-ocaml-4.14@sha256:68c1e7e258d496f2f5ef538184a1dbc6f421ae896308f7303211fba4d9d42e16)
2024-04-26 14:14.45 ---> saved as "29bcaf8eb4cb64963637328238af2d8d1ab4cc76f332ad61890b8fcee7b858d4"

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2024-04-26 14:14.46 ---> saved as "d7f322bd33344225fa320f5e061be38954bdc4337a170d60dede85e2c98c0b47"

/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 development version of opam requires an update to the layout of /home/opam/.opam from version 2.0 to version 2.2~alpha, which can't be reverted.
You may want to back it up before going further.

Continue? [y/n] y
[NOTE] The 'jobs' option was reset, its value was 39 and its new value will vary according to the current number of cores on your machine. You can restore the fixed value using:
           opam option jobs=39 --global
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
2024-04-26 14:16.13 ---> saved as "2e4c343ba632dcadfabdbb27ea05095e70e9965b883eef345aed236fb7947a4d"

/home/opam: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-105-generic
The OCaml toplevel, version 4.14.2
2.2.0~beta3~dev
2024-04-26 14:16.14 ---> saved as "7f82df0cc65b3a97f18d2d87f31ade10a3cd2fbd6e31b3e68c8ee3809a8b1d01"

/home/opam: (env OPAMDOWNLOADJOBS 1)

/home/opam: (env OPAMERRLOGLEN 0)

/home/opam: (env OPAMSOLVERTIMEOUT 500)

/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/"))
2024-04-26 14:16.25 ---> saved as "0873dfb6844faabf3db18599349fe54d724b337e7da247a658ac1dee20351582"

/home/opam: (copy (src .) (dst opam-repository/))
2024-04-26 14:16.42 ---> saved as "2b50cf27126aca474238d4f77fcbbc634f14aa1ae3656cc549c85fe924af887e"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2024-04-26 14:17.43 ---> saved as "bc5d20e1b48dc5b1f7592b2dd6efe5e2a99a26f354b1e925968990e35bb7b717"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian bullseye InRelease
- Get:2 http://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]
- Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
- Get:4 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages [271 kB]
- Fetched 363 kB in 0s (1043 kB/s)
- Reading package lists...
- 
2024-04-26 14:17.45 ---> saved as "708faac23bb0520b321a5c3caa9ebd7e18b856a0ac5926c0a754d8140bb0f604"

/home/opam: (env OPAMCRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)

/home/opam: (env OPAMFIXUPCRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)

/home/opam: (env OPAMUPGRADECRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)

/home/opam: (run (shell "opam pin add -k version -yn ppx_deriving_yojson.3.8.0 3.8.0"))
ppx_deriving_yojson is now pinned to version 3.8.0
2024-04-26 14:17.45 ---> saved as "1e12cf81b0939599e1e04bc42d74f13d2f69bc68d8c5cc0ae025ceb793dc714d"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall ppx_deriving_yojson.3.8.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-11\\\"\"; 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_deriving_yojson.3.8.0' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
ppx_deriving_yojson.3.8.0 is not installed. Install it? [y/n] y
The following actions will be performed:
=== install 13 packages
  - install cppo                1.6.9          [required by ppx_deriving, yojson]
  - install dune                3.15.0         [required by ppx_deriving_yojson]
  - install ocaml-compiler-libs v0.12.4        [required by ppxlib]
  - install ocamlfind           1.9.6          [required by ppx_deriving]
  - install ppx_derivers        1.2.1          [required by ppx_deriving]
  - install ppx_deriving        5.2.1          [required by ppx_deriving_yojson]
  - install ppx_deriving_yojson 3.8.0 (pinned)
  - install ppxlib              0.32.0         [required by ppx_deriving_yojson]
  - install result              1.5            [required by ppx_deriving]
  - install seq                 base           [required by yojson]
  - install sexplib0            v0.16.0        [required by ppxlib]
  - install stdlib-shims        0.3.0          [required by ppxlib]
  - install yojson              2.1.2          [required by ppx_deriving_yojson]

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved cppo.1.6.9  (cached)
-> retrieved dune.3.15.0  (cached)
-> retrieved ocaml-compiler-libs.v0.12.4  (cached)
-> retrieved ocamlfind.1.9.6  (cached)
-> retrieved ppx_derivers.1.2.1  (cached)
-> retrieved ppx_deriving.5.2.1  (cached)
-> retrieved ppx_deriving_yojson.3.8.0  (cached)
-> retrieved ppxlib.0.32.0  (cached)
-> retrieved result.1.5  (cached)
-> installed seq.base
-> retrieved sexplib0.v0.16.0  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> retrieved yojson.2.1.2  (cached)
-> installed ocamlfind.1.9.6
-> installed dune.3.15.0
-> installed ppx_derivers.1.2.1
-> installed result.1.5
-> installed stdlib-shims.0.3.0
-> installed sexplib0.v0.16.0
-> installed ocaml-compiler-libs.v0.12.4
-> installed cppo.1.6.9
-> installed yojson.2.1.2
-> installed ppxlib.0.32.0
-> installed ppx_deriving.5.2.1
-> installed ppx_deriving_yojson.3.8.0
Done.
# Run eval $(opam env) to update the current shell environment
2024-04-26 14:18.45 ---> saved as "eb800f9ae6058ec21c0385e09ad883b56ebe1a99383d342f1582d0d276898e8b"
Job succeeded
2024-04-26 14:18.51: Job succeeded