(for PR #26111)

2024-07-09 08:38.15: New job: build herodotos.1.0, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/26111/head (f2ac03865dc59fa28dbaf9a4764dead36cf9406f)
                              on debian-12-ocaml-4.14/i386

To reproduce locally:

cd $(mktemp -d)
git clone --recursive "https://github.com/ocaml/opam-repository.git" && cd "opam-repository" && git fetch origin "refs/pull/26111/head" && git reset --hard f2ac0386
git fetch origin master
git merge --no-edit cd68f78b700f5a261378315ed7b0012a47e9cd22
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-4.14@sha256:20421dd319735c7ec5361f93375600a59d79ce6234ef450fce100dd5161d922d
SHELL [ "/usr/bin/linux32", "/bin/sh", "-c" ]
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
RUN opam pin add -k version -yn herodotos.1.0 1.0
RUN opam reinstall herodotos.1.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" != 'herodotos.1.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-07-09 08:38.15: Using cache hint "ocaml/opam:debian-12-ocaml-4.14@sha256:20421dd319735c7ec5361f93375600a59d79ce6234ef450fce100dd5161d922d-herodotos.1.0-f2ac03865dc59fa28dbaf9a4764dead36cf9406f"
2024-07-09 08:38.15: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.14@sha256:20421dd319735c7ec5361f93375600a59d79ce6234ef450fce100dd5161d922d)
 (shell /usr/bin/linux32 /bin/sh -c)
 (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"))
 (run (shell "opam pin add -k version -yn herodotos.1.0 1.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall herodotos.1.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\" != 'herodotos.1.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-07-09 08:38.15: Waiting for resource in pool OCluster
2024-07-09 08:38.16: Waiting for worker…
2024-07-09 08:38.16: Got resource from pool OCluster
Building on doris.caelum.ci.dev
All commits already cached
Updating files:  68% (21905/31809)
Updating files:  69% (21949/31809)
Updating files:  70% (22267/31809)
Updating files:  71% (22585/31809)
Updating files:  72% (22903/31809)
Updating files:  73% (23221/31809)
Updating files:  74% (23539/31809)
Updating files:  75% (23857/31809)
Updating files:  76% (24175/31809)
Updating files:  77% (24493/31809)
Updating files:  78% (24812/31809)
Updating files:  79% (25130/31809)
Updating files:  80% (25448/31809)
Updating files:  81% (25766/31809)
Updating files:  82% (26084/31809)
Updating files:  83% (26402/31809)
Updating files:  84% (26720/31809)
Updating files:  85% (27038/31809)
Updating files:  86% (27356/31809)
Updating files:  87% (27674/31809)
Updating files:  88% (27992/31809)
Updating files:  89% (28311/31809)
Updating files:  90% (28629/31809)
Updating files:  91% (28947/31809)
Updating files:  92% (29265/31809)
Updating files:  93% (29583/31809)
Updating files:  94% (29901/31809)
Updating files:  95% (30219/31809)
Updating files:  96% (30537/31809)
Updating files:  97% (30855/31809)
Updating files:  98% (31173/31809)
Updating files:  99% (31491/31809)
Updating files: 100% (31809/31809)
Updating files: 100% (31809/31809), done.
HEAD is now at cd68f78b70 Merge pull request #26195 from lyrm/release-dscheck-0.5.0
Merge made by the 'ort' strategy.
 packages/herodotos/herodotos.1.0/opam | 44 +++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)
 create mode 100644 packages/herodotos/herodotos.1.0/opam

(from ocaml/opam:debian-12-ocaml-4.14@sha256:20421dd319735c7ec5361f93375600a59d79ce6234ef450fce100dd5161d922d)
WARNING: The requested image's platform (linux/386) does not match the detected host platform (linux/amd64) and no specific platform was requested
2024-07-09 08:41.02 ---> saved as "2cb0207dd24fe014e15a3e4c4a24c3f449a4828a57636b32bff94ca31d1eb1fd"

/: (shell /usr/bin/linux32 /bin/sh -c)

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2024-07-09 08:41.02 ---> saved as "1b02e5ef8e216db6eb256f4f6c403e49e68dd9626694a0379e8c075196981197"

/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~beta, 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-07-09 08:42.57 ---> saved as "28d072a0084e1c2284caed8f06553d3e6f9f56bb82048374e8dfebfc9cade250"

/home/opam: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-113-generic
The OCaml toplevel, version 4.14.2
2.2.0~rc1
2024-07-09 08:42.57 ---> saved as "6eafddc24cea5705259c6a6d87fc081575d81e2736d66799a51425c25f44ef48"

/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-07-09 08:43.38 ---> saved as "61cec43947d12dcd5928e079205ff657c1b4787482cbf2f33dd1bc7ccdc30225"

/home/opam: (copy (src .) (dst opam-repository/))
2024-07-09 08:44.04 ---> saved as "de8a6f458893ed8fb4c0a1e54775a2834948b7f70068b4f27c98dedf8fe0b959"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
default (at file:///home/opam/opam-repository): 
    [WARNING] opam is out-of-date. Please consider updating it (https://opam.ocaml.org/doc/Install.html)

2024-07-09 08:45.31 ---> saved as "f4080baac39c6ea39423d3d34df4c31dbb58f69f4846e0c00b9c4ca1190ca0f1"

/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 i386 Packages [8680 kB]
- Get:5 http://deb.debian.org/debian-security bookworm-security/main i386 Packages [167 kB]
- Fetched 9102 kB in 2s (4929 kB/s)
- Reading package lists...
- 
2024-07-09 08:45.34 ---> saved as "6c11e3c061421d30dfc64a4e6d51d0c254bbba821b63fe609f12c04fd2240413"

/home/opam: (run (shell "opam pin add -k version -yn herodotos.1.0 1.0"))
herodotos is now pinned to version 1.0
2024-07-09 08:45.35 ---> saved as "9d66ad542f52736c976b2b36710e095670f57497032e71fc413893bab09dd9ad"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall herodotos.1.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\" != 'herodotos.1.0' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
herodotos.1.0 is not installed. Install it? [y/n] y
The following actions will be performed:
=== install 15 packages
  - install base-bytes          base         [required by postgresql]
  - install conf-postgresql     1            [required by postgresql]
  - install csexp               1.5.2        [required by dune-configurator]
  - install dune                3.16.0       [required by herodotos]
  - install dune-configurator   3.16.0       [required by parmap, postgresql]
  - install herodotos           1.0 (pinned)
  - install ocaml-compiler-libs v0.12.4      [required by ppxlib]
  - install ocamlfind           1.9.6        [required by base-bytes]
  - install parmap              1.2.5        [required by herodotos]
  - install postgresql          5.0.0        [required by herodotos]
  - install ppx_derivers        1.2.1        [required by ppxlib]
  - install ppxlib              0.32.1       [required by vlt]
  - install sexplib0            v0.16.0      [required by ppxlib]
  - install stdlib-shims        0.3.0        [required by ppxlib]
  - install vlt                 0.1          [required by herodotos]

The following system packages will first need to be installed:
    libpq-dev

<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>

opam believes some required external dependencies are missing. opam can:
> 1. Run apt-get to install them (may need root/sudo access)
  2. Display the recommended apt-get command and wait while you run it manually (e.g. in another terminal)
  3. Continue anyway, and, upon success, permanently register that this external dependency is present, but not detectable
  4. Abort the installation

[1/2/3/4] 1

+ /usr/bin/sudo "apt-get" "install" "-qq" "-yy" "libpq-dev"
- debconf: delaying package configuration, since apt-utils is not installed
- (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 18720 files and directories currently installed.)
- Preparing to unpack .../libssl3_3.0.13-1~deb12u1_i386.deb ...
- Unpacking libssl3:i386 (3.0.13-1~deb12u1) over (3.0.11-1~deb12u2) ...
- Selecting previously unselected package libpq5:i386.
- Preparing to unpack .../libpq5_15.7-0+deb12u1_i386.deb ...
- Unpacking libpq5:i386 (15.7-0+deb12u1) ...
- Selecting previously unselected package libssl-dev:i386.
- Preparing to unpack .../libssl-dev_3.0.13-1~deb12u1_i386.deb ...
- Unpacking libssl-dev:i386 (3.0.13-1~deb12u1) ...
- Selecting previously unselected package libpq-dev.
- Preparing to unpack .../libpq-dev_15.7-0+deb12u1_i386.deb ...
- Unpacking libpq-dev (15.7-0+deb12u1) ...
- Preparing to unpack .../openssl_3.0.13-1~deb12u1_i386.deb ...
- Unpacking openssl (3.0.13-1~deb12u1) over (3.0.11-1~deb12u2) ...
- Setting up libssl3:i386 (3.0.13-1~deb12u1) ...
- Setting up libpq5:i386 (15.7-0+deb12u1) ...
- Setting up libssl-dev:i386 (3.0.13-1~deb12u1) ...
- Setting up openssl (3.0.13-1~deb12u1) ...
- Setting up libpq-dev (15.7-0+deb12u1) ...
- Processing triggers for libc-bin (2.36-9+deb12u7) ...

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved csexp.1.5.2  (cached)
-> installed conf-postgresql.1
-> retrieved dune.3.16.0, dune-configurator.3.16.0  (cached)
-> retrieved herodotos.1.0  (cached)
-> retrieved ocaml-compiler-libs.v0.12.4  (cached)
-> retrieved ocamlfind.1.9.6  (cached)
-> retrieved parmap.1.2.5  (cached)
-> retrieved postgresql.5.0.0  (cached)
-> retrieved ppx_derivers.1.2.1  (cached)
-> retrieved ppxlib.0.32.1  (cached)
-> retrieved sexplib0.v0.16.0  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> retrieved vlt.0.1  (cached)
-> installed ocamlfind.1.9.6
-> installed base-bytes.base
-> installed dune.3.16.0
-> installed ppx_derivers.1.2.1
-> installed csexp.1.5.2
-> installed ocaml-compiler-libs.v0.12.4
-> installed sexplib0.v0.16.0
-> installed stdlib-shims.0.3.0
-> installed dune-configurator.3.16.0
-> installed parmap.1.2.5
-> installed postgresql.5.0.0
-> installed ppxlib.0.32.1
-> installed vlt.0.1
-> installed herodotos.1.0
Done.
# Run eval $(opam env) to update the current shell environment
2024-07-09 08:46.33 ---> saved as "5f80f2787ff59622796df6777d6e826a429ff273c076468a01084d24434ce0dc"
Job succeeded
2024-07-09 08:46.41: Job succeeded