(for PR #27867)

2025-05-20 09:25.56: New job: test ppxlib.0.37.0~5.4preview, using opam 2.3
                              from https://github.com/ocaml/opam-repository.git#refs/pull/27867/head (aee86b4fc87a23cf6c1324e3eff22f39d88a8c3e)
                              on debian-12-ocaml-5.2/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/27867/head" && git reset --hard aee86b4f
git fetch origin master
git merge --no-edit 55711315d054c8d83610afaedab4b5cbd30de09d
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-5.2@sha256:a17317e9abe385dc16b4390c64a374046d6dd562e80aea838d91c6c1335da357
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-2.3 /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 ppxlib.0.37.0~5.4preview 0.37.0~5.4preview
RUN opam reinstall ppxlib.0.37.0~5.4preview; \
    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-12\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'ppxlib.0.37.0~5.4preview' && partial_fails="$partial_fails $pkg"; \
    done; \
    test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}"; \
    exit 1
RUN (opam reinstall --with-test ppxlib.0.37.0~5.4preview) || true
RUN opam reinstall --with-test --verbose ppxlib.0.37.0~5.4preview; \
    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-12\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'ppxlib.0.37.0~5.4preview' && 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-05-20 09:25.56: Using cache hint "ocaml/opam:debian-12-ocaml-5.2@sha256:a17317e9abe385dc16b4390c64a374046d6dd562e80aea838d91c6c1335da357-ppxlib.0.37.0~5.4preview-aee86b4fc87a23cf6c1324e3eff22f39d88a8c3e"
2025-05-20 09:25.56: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-5.2@sha256:a17317e9abe385dc16b4390c64a374046d6dd562e80aea838d91c6c1335da357)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "sudo ln -f /usr/bin/opam-2.3 /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 ppxlib.0.37.0~5.4preview 0.37.0~5.4preview"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall ppxlib.0.37.0~5.4preview;\
             \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-12\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'ppxlib.0.37.0~5.4preview' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
 (run (network host)
      (shell "(opam reinstall --with-test ppxlib.0.37.0~5.4preview) || true"))
 (run (shell  "opam reinstall --with-test --verbose ppxlib.0.37.0~5.4preview;\
             \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-12\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'ppxlib.0.37.0~5.4preview' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-05-20 09:25.56: Waiting for resource in pool OCluster
2025-05-20 09:25.58: Waiting for worker…
2025-05-20 09:26.21: Got resource from pool OCluster
Building on asteria.caelum.ci.dev
All commits already cached
Updating files:  94% (21733/23053)
Updating files:  95% (21901/23053)
Updating files:  96% (22131/23053)
Updating files:  97% (22362/23053)
Updating files:  98% (22592/23053)
Updating files:  99% (22823/23053)
Updating files: 100% (23053/23053)
Updating files: 100% (23053/23053), done.
HEAD is now at 55711315d0 Merge pull request #27901 from deakodev/opam-publish-echo.0.0.4
Merge made by the 'ort' strategy.
 packages/ppxlib/ppxlib.0.37.0~5.4preview/opam | 64 +++++++++++++++++++++++++++
 1 file changed, 64 insertions(+)
 create mode 100644 packages/ppxlib/ppxlib.0.37.0~5.4preview/opam

(from ocaml/opam:debian-12-ocaml-5.2@sha256:a17317e9abe385dc16b4390c64a374046d6dd562e80aea838d91c6c1335da357)
2025-05-20 09:28.27 ---> saved as "54ec013a6f149facc0d7142b09647559c040b9be9f10f3b28aedc92eb0aa3eda"

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam"))
2025-05-20 09:28.28 ---> saved as "7886d922a19cfa42578506985eba67178cadd2a8c528e8197f1beedbc36e8ebd"

/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, 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] Initialised
2025-05-20 09:28.58 ---> saved as "e88512cb442999cf4f0e41ad94a8bcdcc4b1775b0fe48ba06f4a339961c90547"

/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.3.0 (35acd0c5abc5e66cdbd5be16ba77aa6c33a4c724)
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=debian os-version=12
# 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       5.2
# invariant            ["ocaml-base-compiler" {= "5.2.1"}]
# compiler-packages    ocaml-base-compiler.5.2.1, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/5.2/lib/ocaml/stublibs:/home/opam/.opam/5.2/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       5.2.1
2025-05-20 09:28.59 ---> saved as "b17202895ddec98a094c5c3d78c364e35aad13ba1dd98f248744d66d0a31fdc8"

/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-05-20 09:29.17 ---> saved as "884c3019c4a60e8e3295da68558209beba02a6282e33b21561d0817117855255"

/home/opam: (copy (src .) (dst opam-repository/))
2025-05-20 09:29.39 ---> saved as "2971c10c4eb59d051e51c25efc36f32bdd7269b94720dc25ddb01a3f11791c70"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-05-20 09:30.06 ---> saved as "c986b000971eaab971ee81a844a2e304808e85a37147792a33792c9d0f0b8e28"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
- Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
- Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
- Get:4 http://deb.debian.org/debian bookworm/main amd64 Packages [8793 kB]
- Get:5 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [259 kB]
- Fetched 9306 kB in 2s (5537 kB/s)
- Reading package lists...
- 
2025-05-20 09:30.08 ---> saved as "8f33d09195450903f5084d541deea1a493f0590511e0f4e9bdae9c62f856a790"

/home/opam: (run (shell "opam pin add -k version -yn ppxlib.0.37.0~5.4preview 0.37.0~5.4preview"))
ppxlib is now pinned to version 0.37.0~5.4preview
2025-05-20 09:30.09 ---> saved as "b3cd3ac04ddbf6bad9f7f36d65d96f2cbd3c28aab4d864f24caf511a90c2048f"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall ppxlib.0.37.0~5.4preview;\
                        \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-12\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'ppxlib.0.37.0~5.4preview' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
ppxlib.0.37.0~5.4preview is not installed. Install it? [y/n] y
The following actions will be performed:
=== install 6 packages
  - install dune                3.18.2                     [required by ppxlib]
  - install ocaml-compiler-libs v0.17.0                    [required by ppxlib]
  - install ppx_derivers        1.2.1                      [required by ppxlib]
  - install ppxlib              0.37.0~5.4preview (pinned)
  - install sexplib0            v0.17.0                    [required by ppxlib]
  - install stdlib-shims        0.3.0                      [required by ppxlib]

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved dune.3.18.2  (cached)
-> retrieved ocaml-compiler-libs.v0.17.0  (cached)
-> retrieved ppx_derivers.1.2.1  (cached)
-> retrieved ppxlib.0.37.0~5.4preview  (cached)
-> retrieved sexplib0.v0.17.0  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> installed dune.3.18.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.37.0~5.4preview
Done.
# To update the current shell environment, run: eval $(opam env)
2025-05-20 09:30.51 ---> saved as "4624d6c1f896f2cbf6763b8c3503412c7ce5fd7ec5d92a7fecde16025c848ea4"

/home/opam: (run (network host)
                 (shell "(opam reinstall --with-test ppxlib.0.37.0~5.4preview) || true"))
The following actions will be performed:
=== recompile 1 package
  - recompile ppxlib    0.37.0~5.4preview (pinned)
=== install 4 packages
  - install   cinaps    v0.15.1                    [required by ppxlib]
  - install   ocamlfind 1.9.8                      [required by ppxlib]
  - install   re        1.12.0                     [required by ppxlib]
  - install   seq       base                       [required by re]

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved cinaps.v0.15.1  (https://github.com/ocaml-ppx/cinaps/archive/v0.15.1.tar.gz)
-> retrieved ocamlfind.1.9.8  (https://github.com/ocaml/ocamlfind/archive/refs/tags/findlib-1.9.8.tar.gz)
-> retrieved ppxlib.0.37.0~5.4preview  (https://github.com/ocaml-ppx/ppxlib/archive/757f6c284b1fe748d5027eef3bbef924b6bbd7ce.tar.gz)
-> retrieved re.1.12.0  (https://github.com/ocaml/ocaml-re/releases/download/1.12.0/re-1.12.0.tbz)
-> retrieved seq.base  (2 extra sources)
-> retrieved seq.base  (2 extra sources)
-> installed seq.base
-> installed re.1.12.0
-> installed cinaps.v0.15.1
-> removed   ppxlib.0.37.0~5.4preview
-> installed ocamlfind.1.9.8
-> installed ppxlib.0.37.0~5.4preview
Done.
# To update the current shell environment, run: eval $(opam env)
2025-05-20 09:31.27 ---> saved as "5a9f476d8c6b4f4b04625a71d9ccd7ce04afb8b3f1c87c42af31773db54c9332"

/home/opam: (run (shell  "opam reinstall --with-test --verbose ppxlib.0.37.0~5.4preview;\
                        \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-12\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'ppxlib.0.37.0~5.4preview' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
The following actions will be performed:
=== recompile 1 package
  - recompile ppxlib 0.37.0~5.4preview (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/4: [ppxlib.0.37.0~5.4preview: extract]
-> retrieved ppxlib.0.37.0~5.4preview  (cached)
Processing  2/4: [ppxlib: dune build]
+ /home/opam/.opam/opam-init/hooks/sandbox.sh "build" "dune" "build" "-p" "ppxlib" "-j" "255" "@install" "@runtest" (CWD=/home/opam/.opam/5.2/.opam-switch/build/ppxlib.0.37.0~5.4preview)
-> compiled  ppxlib.0.37.0~5.4preview
-> removed   ppxlib.0.37.0~5.4preview
-> installed ppxlib.0.37.0~5.4preview
Done.
# To update the current shell environment, run: eval $(opam env)
2025-05-20 09:32.01 ---> saved as "a79b797ae23bf9a9f4a7e4209d9fed6503601070186998e18581d9ed1691fb61"
Job succeeded
2025-05-20 09:32.09: Job succeeded