(for PR #23932)

2024-02-08 11:39.21: New job: test hpke.0.0.pre-alpha, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/23932/head (04858040f13a0b01bae25ee9bb5a66a8430570f1)
                              on archlinux-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:archlinux-ocaml-4.14@sha256:48b30183f1e14bb40d91beb4e36e416490e1f308f8209a6962919008af46e513
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-dev /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 "\"archlinux\""; 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
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 reinstall --with-test hpke.0.0.pre-alpha) || true
RUN opam reinstall --with-test --verbose 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 "\"archlinux\""; 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:archlinux-ocaml-4.14@sha256:48b30183f1e14bb40d91beb4e36e416490e1f308f8209a6962919008af46e513-hpke.0.0.pre-alpha-04858040f13a0b01bae25ee9bb5a66a8430570f1"
2024-02-08 11:39.21: Using OBuilder spec:
((from ocaml/opam:archlinux-ocaml-4.14@sha256:48b30183f1e14bb40d91beb4e36e416490e1f308f8209a6962919008af46e513)
 (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"))
 (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 \"\\\"archlinux\\\"\"; 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"))
 (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 (network host)
      (shell "(opam reinstall --with-test hpke.0.0.pre-alpha) || true"))
 (run (shell  "opam reinstall --with-test --verbose 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 \"\\\"archlinux\\\"\"; 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.37: Got resource from pool OCluster
Building on asteria.caelum.ci.dev
All commits already cached
Updating files:  96% (31757/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:archlinux-ocaml-4.14@sha256:48b30183f1e14bb40d91beb4e36e416490e1f308f8209a6962919008af46e513)
2024-02-08 11:40.41 ---> using "796cd5d9a47efc54516fb3115a3f4b496a1ce8bd3dd19791c6cb681e546f9c62" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2024-02-08 11:40.41 ---> using "97519f7810973a3fe46d66170f4962aa9934487fdc7430d252d101dab2498d4c" 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 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 31 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=31 --global
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
2024-02-08 11:40.41 ---> using "95e0a7f004c805ba3a2b60903d72a0bc348382d0d0fed92761ffb4b3dd3ca037" from cache

/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:40.41 ---> using "001fb98f58f903fad8d2d2afe2b5eb22cada94d6c4976d8731510859802fa763" from cache

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

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

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/sbin/sudo "pacman" "-Sy"
- :: Synchronizing package databases...
-  core downloading...
-  extra downloading...
2024-02-08 11:41.31 ---> saved as "ed976226360ca093df23fb366eff874b0dd82e7d0b7958886249705678116d39"

/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:41.31 ---> saved as "3f07a468d1e15f6ffe3626fda65ea3b1c7d699028d7f5d3feccee8ad5b57706a"

/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 \"\\\"archlinux\\\"\"; 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 20 packages
  ∗ conf-gmp          4                      [required by conf-gmp-powm-sec, zarith]
  ∗ conf-gmp-powm-sec 3                      [required by mirage-crypto-pk]
  ∗ csexp             1.5.2                  [required by dune-configurator]
  ∗ cstruct           6.2.0                  [required by hpke]
  ∗ dune              3.13.1                 [required by hpke]
  ∗ dune-configurator 3.13.1                 [required by mirage-crypto, mirage-crypto-rng]
  ∗ duration          0.2.1                  [required by mirage-crypto-rng]
  ∗ eqaf              0.9                    [required by mirage-crypto-pk]
  ∗ fmt               0.9.0                  [required by cstruct]
  ∗ hkdf              1.0.4                  [required by hpke]
  ∗ hpke              0.0.pre-alpha (pinned)
  ∗ logs              0.7.0                  [required by mirage-crypto-rng]
  ∗ mirage-crypto     0.11.2                 [required by hpke]
  ∗ mirage-crypto-pk  0.11.2                 [required by hpke]
  ∗ mirage-crypto-rng 0.11.2                 [required by mirage-crypto-pk]
  ∗ ocamlbuild        0.14.3                 [required by fmt]
  ∗ ocamlfind         1.9.6                  [required by fmt, zarith]
  ∗ sexplib0          v0.16.0                [required by mirage-crypto-pk]
  ∗ topkg             1.0.7                  [required by fmt]
  ∗ zarith            1.13                   [required by mirage-crypto-pk]

<><> 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, 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  (cached)
⬇ retrieved logs.0.7.0  (cached)
⬇ retrieved mirage-crypto.0.11.2, mirage-crypto-pk.0.11.2, 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:42.17 ---> saved as "67da48e3df3f201b4451d2d33a542f07e6c2688fd65bab1abc2e9aaea544a7fa"

/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 (network host)
                 (shell "(opam reinstall --with-test hpke.0.0.pre-alpha) || true"))
The following actions will be performed:
=== recompile 1 package
  ↻ hpke 0.0.pre-alpha (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
⬇ retrieved hpke.0.0.pre-alpha  (https://github.com/FantomeBeignet/ohpke/archive/refs/tags/0.0.pre-alpha.tar.gz)
⊘ removed   hpke.0.0.pre-alpha
∗ installed hpke.0.0.pre-alpha
Done.
# Run eval $(opam env) to update the current shell environment
2024-02-08 11:42.29 ---> saved as "8a9c3d9a06d36378e81ecfdd1aedcf1ee757c3e822dc5f818bd6a283bdcd7581"

/home/opam: (run (shell  "opam reinstall --with-test --verbose 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 \"\\\"archlinux\\\"\"; 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"))
The following actions will be performed:
=== recompile 1 package
  ↻ hpke 0.0.pre-alpha (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/4:
⬇ retrieved hpke.0.0.pre-alpha  (cached)
Processing  2/4: [hpke: dune build]
+ /home/opam/.opam/opam-init/hooks/sandbox.sh "build" "dune" "build" "-p" "hpke" "-j" "255" "@install" "@runtest" (CWD=/home/opam/.opam/4.14/.opam-switch/build/hpke.0.0.pre-alpha)
λ compiled  hpke.0.0.pre-alpha
⊘ removed   hpke.0.0.pre-alpha
∗ installed hpke.0.0.pre-alpha
Done.
# Run eval $(opam env) to update the current shell environment
2024-02-08 11:42.41 ---> saved as "069a06b7d617574a8c00ce89ef6771c58e4de0fcd3dfdfa8415c96bcd4d79fd3"
Job succeeded
2024-02-08 11:42.49: Job succeeded