(for PR #28024)

2025-06-13 08:44.38: New job: build sel.0.7.0, using opam 2.0
                              from https://github.com/ocaml/opam-repository.git#refs/pull/28024/head (43612c0f934e71e0b79e9889113dba898038409d)
                              on debian-12-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/28024/head" && git reset --hard 43612c0f
git fetch origin master
git merge --no-edit 88b51a54522eb5c90b50480aa73d5c5b33b58230
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-4.14@sha256:483ad21d779c01615f15084a5f82173baaa47820587729faca9fb7ad645f50be
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 sel.0.7.0 0.7.0
RUN opam depext sel.0.7.0 && opam reinstall sel.0.7.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-12\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'sel.0.7.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-06-13 08:44.38: Using cache hint "ocaml/opam:debian-12-ocaml-4.14@sha256:483ad21d779c01615f15084a5f82173baaa47820587729faca9fb7ad645f50be-sel.0.7.0-43612c0f934e71e0b79e9889113dba898038409d"
2025-06-13 08:44.38: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.14@sha256:483ad21d779c01615f15084a5f82173baaa47820587729faca9fb7ad645f50be)
 (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 sel.0.7.0 0.7.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam depext sel.0.7.0 && opam reinstall sel.0.7.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-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\" != 'sel.0.7.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-06-13 08:44.38: Waiting for resource in pool OCluster
2025-06-13 08:44.38: Waiting for worker…
2025-06-13 08:44.40: Got resource from pool OCluster
Building on odawa.caelum.ci.dev
All commits already cached
HEAD is now at 88b51a5452 Merge pull request #28021 from mbarbin/conf-hg-win32-cygwin
Updating 88b51a5452..43612c0f93
Fast-forward
 packages/sel/sel.0.7.0/opam | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)
 create mode 100644 packages/sel/sel.0.7.0/opam

(from ocaml/opam:debian-12-ocaml-4.14@sha256:483ad21d779c01615f15084a5f82173baaa47820587729faca9fb7ad645f50be)
2025-06-13 08:45.28 ---> using "d2a5d53d37f66f6f5c7aad091614b30735c874c67d8308d229ed194879752021" 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-06-13 08:45.29 ---> saved as "c3c0d81c19945c1047b2424c57d3c02c4bc47791c57edb793b1e6ef5dc91a51a"

/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-06-13 08:46.13 ---> saved as "96de4a078dbf9f89de54aa3eda14e48ba4ccbcaf430452a36282226b87a7ac8e"

/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=12
# 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    4.14
2025-06-13 08:46.13 ---> saved as "29ac547002922ab77eb9a2d5bd10a65f85fb8a0380ee59066e4bb23fcfa640fa"

/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-06-13 08:46.32 ---> saved as "cb2aa1228c7b2ffa3a55c182b2e928ed1de572fe38306d00fdf2279cea0f2fa0"

/home/opam: (copy (src .) (dst opam-repository/))
2025-06-13 08:46.47 ---> saved as "b0b938e0a6403cc23ab39725c6ecc614f5cf64ea51b8c61905d8614b3716a4fa"

/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-06-13 08:47.02 ---> saved as "9a557684e3601fc14ff73e53ddd95aadaf5a3f25f4553c0422c422b743e2f010"

/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 bookworm InRelease
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-security bookworm-security/main amd64 Packages [266 kB]
Fetched 369 kB in 0s (1199 kB/s)
Reading package lists...
# OS package update successful
2025-06-13 08:47.03 ---> saved as "482b73eb16e5677124f143c1d99413ac1ce58be333ff6ce0028d3ab09a76d3cb"

/home/opam: (run (shell "opam pin add -k version -yn sel.0.7.0 0.7.0"))
sel is now pinned to version 0.7.0
2025-06-13 08:47.04 ---> saved as "a356649d7036e0c2443f6f378617522ef77069a9c31335832fa955186a0a19a1"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam depext sel.0.7.0 && opam reinstall sel.0.7.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-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\" != 'sel.0.7.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.
sel.0.7.0 is not installed. Install it? [Y/n] y
The following actions will be performed:
  - install dune                3.19.1  [required by sel]
  - install ocamlfind           1.9.8   [required by ppx_deriving]
  - 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 ppx_deriving]
  - install ocaml-compiler-libs v0.12.4 [required by ppxlib]
  - install cppo                1.8.0   [required by ppx_deriving]
  - install ppxlib              0.36.0  [required by ppx_deriving]
  - install ppx_deriving        6.1.0   [required by sel]
  - install sel                 0.7.0*
===== 10 to install =====

<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[cppo.1.8.0] found in cache
[dune.3.19.1] found in cache
[ocaml-compiler-libs.v0.12.4] found in cache
[ocamlfind.1.9.8] found in cache
[ppx_derivers.1.2.1] found in cache
[ppx_deriving.6.1.0] found in cache
[ppxlib.0.36.0] found in cache
[sel.0.7.0] found in cache
[sexplib0.v0.17.0] found in cache
[stdlib-shims.0.3.0] found in cache

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed ocamlfind.1.9.8
-> installed dune.3.19.1
-> installed ppx_derivers.1.2.1
-> installed stdlib-shims.0.3.0
-> installed sexplib0.v0.17.0
-> installed ocaml-compiler-libs.v0.12.4
-> installed cppo.1.8.0
-> installed ppxlib.0.36.0
-> installed ppx_deriving.6.1.0
-> installed sel.0.7.0
Done.
# Run eval $(opam env) to update the current shell environment
2025-06-13 08:47.48 ---> saved as "c5970a75f0290f14c4e6445f3c94cce6660b787f96fe992b662f2fcfce2cfc84"
Job succeeded
2025-06-13 08:47.55: Job succeeded