(for PR #23932)

2024-02-08 11:39.21: New job: build hpke.0.0.pre-alpha, using opam 2.1
                              from https://github.com/ocaml/opam-repository.git#refs/pull/23932/head (04858040f13a0b01bae25ee9bb5a66a8430570f1)
                              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/23932/head" && git reset --hard 04858040
git fetch origin master
git merge --no-edit d87a1eb8c3d0e6228e3f957b25aa87f49e397d03
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-4.14@sha256:8e390dbf29f7a115e5c8098ffb1a3c7234a873cf738a5ae22f3a4846122db9ef
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam
RUN opam init --reinit -ni
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 hpke.0.0.pre-alpha 0.0.pre-alpha
RUN opam reinstall hpke.0.0.pre-alpha; \
    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" != 'hpke.0.0.pre-alpha' && 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-02-08 11:39.21: Using cache hint "ocaml/opam:debian-12-ocaml-4.14@sha256:8e390dbf29f7a115e5c8098ffb1a3c7234a873cf738a5ae22f3a4846122db9ef-hpke.0.0.pre-alpha-04858040f13a0b01bae25ee9bb5a66a8430570f1"
2024-02-08 11:39.21: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.14@sha256:8e390dbf29f7a115e5c8098ffb1a3c7234a873cf738a5ae22f3a4846122db9ef)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam"))
 (run (network host)
      (shell "opam init --reinit --config .opamrc-sandbox -ni"))
 (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 hpke.0.0.pre-alpha 0.0.pre-alpha"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall hpke.0.0.pre-alpha;\
             \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\" != 'hpke.0.0.pre-alpha' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2024-02-08 11:39.21: Connecting to build cluster…
2024-02-08 11:39.21: Waiting for resource in pool OCluster
2024-02-08 11:39.29: Waiting for worker…
2024-02-08 11:40.24: Got resource from pool OCluster
Building on phoebe.caelum.ci.dev
All commits already cached
Updating files:  44% (14592/32901)
Updating files:  45% (14806/32901)
Updating files:  46% (15135/32901)
Updating files:  47% (15464/32901)
Updating files:  48% (15793/32901)
Updating files:  49% (16122/32901)
Updating files:  50% (16451/32901)
Updating files:  51% (16780/32901)
Updating files:  52% (17109/32901)
Updating files:  53% (17438/32901)
Updating files:  54% (17767/32901)
Updating files:  55% (18096/32901)
Updating files:  56% (18425/32901)
Updating files:  57% (18754/32901)
Updating files:  58% (19083/32901)
Updating files:  59% (19412/32901)
Updating files:  60% (19741/32901)
Updating files:  61% (20070/32901)
Updating files:  62% (20399/32901)
Updating files:  63% (20728/32901)
Updating files:  64% (21057/32901)
Updating files:  65% (21386/32901)
Updating files:  66% (21715/32901)
Updating files:  67% (22044/32901)
Updating files:  68% (22373/32901)
Updating files:  69% (22702/32901)
Updating files:  70% (23031/32901)
Updating files:  71% (23360/32901)
Updating files:  72% (23689/32901)
Updating files:  73% (24018/32901)
Updating files:  74% (24347/32901)
Updating files:  75% (24676/32901)
Updating files:  76% (25005/32901)
Updating files:  77% (25334/32901)
Updating files:  78% (25663/32901)
Updating files:  79% (25992/32901)
Updating files:  80% (26321/32901)
Updating files:  81% (26650/32901)
Updating files:  82% (26979/32901)
Updating files:  83% (27308/32901)
Updating files:  84% (27637/32901)
Updating files:  85% (27966/32901)
Updating files:  86% (28295/32901)
Updating files:  87% (28624/32901)
Updating files:  88% (28953/32901)
Updating files:  88% (29202/32901)
Updating files:  89% (29282/32901)
Updating files:  90% (29611/32901)
Updating files:  91% (29940/32901)
Updating files:  92% (30269/32901)
Updating files:  93% (30598/32901)
Updating files:  94% (30927/32901)
Updating files:  95% (31256/32901)
Updating files:  96% (31585/32901)
Updating files:  97% (31914/32901)
Updating files:  98% (32243/32901)
Updating files:  99% (32572/32901)
Updating files: 100% (32901/32901)
Updating files: 100% (32901/32901), done.
HEAD is now at d87a1eb8c3 Merge pull request #25204 from toots/opam-publish-tls-liquidsoap.1-prometheus-liquidsoap.2-liquidsoap.2.2.4-sdl-liquidsoap.3
Merge made by the 'ort' strategy.
 packages/hpke/hpke.0.0.pre-alpha/opam | 43 +++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 packages/hpke/hpke.0.0.pre-alpha/opam

(from ocaml/opam:debian-12-ocaml-4.14@sha256:8e390dbf29f7a115e5c8098ffb1a3c7234a873cf738a5ae22f3a4846122db9ef)
2024-02-08 11:40.26 ---> using "1f16aa8fbc1a229ca02cdf7d8b4234eb4608a9074cec5292a9e72517b48fb577" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam"))
2024-02-08 11:40.26 ---> using "c58ea3bb7ad2352e83529633067a39cac0a8d50fb7fde256f96c817a265e51ff" from cache

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

Continue? [Y/n] y
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
2024-02-08 11:42.26 ---> saved as "6850378a5773d1d21ef256d705ac549ce7c9fcc5154b7aeed96a17f8346fcaef"

/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-02-08 11:42.38 ---> saved as "7a6b5dafbf14d5a02594af0f52e1114db9e8f3c3e8f0bf4990730dac5185acc5"

/home/opam: (copy (src .) (dst opam-repository/))
2024-02-08 11:43.19 ---> saved as "97f468d632c7f811002ccf504cacea934ab1886b7a25d12d022bc9fbc6f53257"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2024-02-08 11:43.44 ---> saved as "d1297f5631122b33b4b87a31cdec7bba2e4b408d3f989045e5ba8a4852b4ad19"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian bookworm InRelease
- Get:2 http://deb.debian.org/debian bookworm-updates InRelease [52.1 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 [137 kB]
- Fetched 237 kB in 0s (778 kB/s)
- Reading package lists...
- 
2024-02-08 11:43.45 ---> saved as "5951ee34e02aaf93ac85c501f724d06eebc94b2d482758ad63d8f6bc13caaf69"

/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 hpke.0.0.pre-alpha 0.0.pre-alpha"))
hpke is now pinned to version 0.0.pre-alpha
2024-02-08 11:43.46 ---> saved as "25bbee3f06a33c406ef56f0660f3de22d04212b4b27b7895a34e01b6cbfa7649"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall hpke.0.0.pre-alpha;\
                        \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\" != 'hpke.0.0.pre-alpha' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
hpke.0.0.pre-alpha is not installed. Install it? [Y/n] y
The following actions will be performed:
  - install ocamlbuild        0.14.3         [required by fmt]
  - install conf-gmp          4              [required by conf-gmp-powm-sec, zarith]
  - install ocamlfind         1.9.6          [required by fmt, zarith]
  - install dune              3.13.1         [required by hpke]
  - install conf-gmp-powm-sec 3              [required by mirage-crypto-pk]
  - install zarith            1.13           [required by mirage-crypto-pk]
  - install topkg             1.0.7          [required by fmt]
  - install sexplib0          v0.16.0        [required by mirage-crypto-pk]
  - install duration          0.2.1          [required by mirage-crypto-rng]
  - install csexp             1.5.2          [required by dune-configurator]
  - install fmt               0.9.0          [required by cstruct]
  - install dune-configurator 3.13.1         [required by mirage-crypto, mirage-crypto-rng]
  - install logs              0.7.0          [required by mirage-crypto-rng]
  - install cstruct           6.2.0          [required by hpke]
  - install eqaf              0.9            [required by mirage-crypto-pk]
  - install mirage-crypto     0.11.2         [required by hpke]
  - install mirage-crypto-rng 0.11.2         [required by mirage-crypto-pk]
  - install hkdf              1.0.4          [required by hpke]
  - install mirage-crypto-pk  0.11.2         [required by hpke]
  - install hpke              0.0.pre-alpha*
===== 20 to install =====

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

<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>
Let opam run your package manager to install the required system packages?
(answer 'n' for other options) [Y/n] y
+ /usr/bin/sudo "apt-get" "install" "-qq" "-yy" "libgmp-dev"
- debconf: delaying package configuration, since apt-utils is not installed
- Selecting previously unselected package libgmpxx4ldbl:amd64.
- (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 ... 18743 files and directories currently installed.)
- Preparing to unpack .../libgmpxx4ldbl_2%3a6.2.1+dfsg1-1.1_amd64.deb ...
- Unpacking libgmpxx4ldbl:amd64 (2:6.2.1+dfsg1-1.1) ...
- Selecting previously unselected package libgmp-dev:amd64.
- Preparing to unpack .../libgmp-dev_2%3a6.2.1+dfsg1-1.1_amd64.deb ...
- Unpacking libgmp-dev:amd64 (2:6.2.1+dfsg1-1.1) ...
- Setting up libgmpxx4ldbl:amd64 (2:6.2.1+dfsg1-1.1) ...
- Setting up libgmp-dev:amd64 (2:6.2.1+dfsg1-1.1) ...
- Processing triggers for libc-bin (2.36-9+deb12u3) ...

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved csexp.1.5.2  (cached)
-> retrieved cstruct.6.2.0  (cached)
-> installed conf-gmp.4
-> installed conf-gmp-powm-sec.3
-> retrieved dune.3.13.1  (cached)
-> retrieved dune-configurator.3.13.1  (cached)
-> retrieved duration.0.2.1  (cached)
-> retrieved eqaf.0.9  (cached)
-> retrieved fmt.0.9.0  (cached)
-> retrieved hkdf.1.0.4  (cached)
-> retrieved hpke.0.0.pre-alpha  (https://github.com/FantomeBeignet/ohpke/archive/refs/tags/0.0.pre-alpha.tar.gz)
-> retrieved logs.0.7.0  (cached)
-> retrieved mirage-crypto.0.11.2  (cached)
-> retrieved mirage-crypto-pk.0.11.2  (cached)
-> retrieved mirage-crypto-rng.0.11.2  (cached)
-> retrieved ocamlbuild.0.14.3  (cached)
-> retrieved ocamlfind.1.9.6  (cached)
-> retrieved sexplib0.v0.16.0  (cached)
-> retrieved topkg.1.0.7  (cached)
-> retrieved zarith.1.13  (cached)
-> installed ocamlfind.1.9.6
-> installed ocamlbuild.0.14.3
-> installed zarith.1.13
-> installed topkg.1.0.7
-> installed fmt.0.9.0
-> installed logs.0.7.0
-> installed dune.3.13.1
-> installed duration.0.2.1
-> installed csexp.1.5.2
-> installed cstruct.6.2.0
-> installed sexplib0.v0.16.0
-> installed eqaf.0.9
-> installed dune-configurator.3.13.1
-> installed mirage-crypto.0.11.2
-> installed hkdf.1.0.4
-> installed mirage-crypto-rng.0.11.2
-> installed mirage-crypto-pk.0.11.2
-> installed hpke.0.0.pre-alpha
Done.
# Run eval $(opam env) to update the current shell environment
2024-02-08 11:44.36 ---> saved as "7fba20e15eb906b522ce6ec2346183621b06c73db336ba4b140227cb0f949b3f"
Job succeeded
2024-02-08 11:44.48: Job succeeded