(for PR #23932)

2024-02-08 11:39.21: New job: build hpke.0.0.pre-alpha, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/23932/head (04858040f13a0b01bae25ee9bb5a66a8430570f1)
                              on macos-homebrew-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 macos-homebrew-ocaml-4.14
USER 1000:1000
RUN ln -f ~/local/bin/opam-dev ~/local/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 -k local --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 "\"macos-homebrew\""; 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 "macos-homebrew-ocaml-4.14-hpke.0.0.pre-alpha-04858040f13a0b01bae25ee9bb5a66a8430570f1"
2024-02-08 11:39.21: Using OBuilder spec:
((from macos-homebrew-ocaml-4.14)
 (user (uid 1000) (gid 1000))
 (run (shell "ln -f ~/local/bin/opam-dev ~/local/bin/opam"))
 (run (network host)
      (shell "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 (shell "rm -rf opam-repository/"))
 (copy (src .) (dst opam-repository/))
 (run (shell "opam repository set-url -k local --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 /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
      (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 \"\\\"macos-homebrew\\\"\"; 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:51.36: Got resource from pool OCluster
Building on i7-worker-02
All commits already cached
Updating files:   1% (370/32901)
Updating files:   2% (659/32901)
Updating files:   3% (988/32901)
Updating files:   4% (1317/32901)
Updating files:   4% (1512/32901)
Updating files:   5% (1646/32901)
Updating files:   6% (1975/32901)
Updating files:   7% (2304/32901)
Updating files:   8% (2633/32901)
Updating files:   9% (2962/32901)
Updating files:  10% (3291/32901)
Updating files:  11% (3620/32901)
Updating files:  12% (3949/32901)
Updating files:  13% (4278/32901)
Updating files:  13% (4515/32901)
Updating files:  14% (4607/32901)
Updating files:  15% (4936/32901)
Updating files:  16% (5265/32901)
Updating files:  17% (5594/32901)
Updating files:  18% (5923/32901)
Updating files:  19% (6252/32901)
Updating files:  20% (6581/32901)
Updating files:  21% (6910/32901)
Updating files:  22% (7239/32901)
Updating files:  23% (7568/32901)
Updating files:  23% (7696/32901)
Updating files:  24% (7897/32901)
Updating files:  25% (8226/32901)
Updating files:  26% (8555/32901)
Updating files:  27% (8884/32901)
Updating files:  28% (9213/32901)
Updating files:  29% (9542/32901)
Updating files:  30% (9871/32901)
Updating files:  31% (10200/32901)
Updating files:  32% (10529/32901)
Updating files:  33% (10858/32901)
Updating files:  33% (11147/32901)
Updating files:  34% (11187/32901)
Updating files:  35% (11516/32901)
Updating files:  36% (11845/32901)
Updating files:  37% (12174/32901)
Updating files:  38% (12503/32901)
Updating files:  39% (12832/32901)
Updating files:  40% (13161/32901)
Updating files:  41% (13490/32901)
Updating files:  42% (13819/32901)
Updating files:  43% (14148/32901)
Updating files:  44% (14477/32901)
Updating files:  44% (14487/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:  54% (17895/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:  68% (22624/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:  84% (27698/32901)
Updating files:  85% (27966/32901)
Updating files:  86% (28295/32901)
Updating files:  87% (28624/32901)
Updating files:  88% (28953/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:  99% (32769/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 macos-homebrew-ocaml-4.14)
2024-02-08 11:51.50 ---> using "0c60f117aee57abea8364cb033d47bb1d63ff0f68e5ee97378e032498e8442af" from cache

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

/: (run (shell "ln -f ~/local/bin/opam-dev ~/local/bin/opam"))
2024-02-08 11:51.50 ---> using "f20a31eccb94af52fa2a3ef86b723bc6460bac3d8a92b8861915540c2498d20a" from cache

/: (run (network host)
        (shell "opam init --reinit -ni"))
No configuration file found, using 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 /Users/mac1000/.opam from version 2.1 to version 2.2~alpha, 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] no changes from git+file:///Users/mac1000/opam-repository
2024-02-08 11:51.50 ---> using "7818e224f85c11d1d318abe9ba4e297be345388b7ed476f912b6900c6bae56aa" from cache

/: (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/"))
2024-02-08 11:51.50 ---> using "9b5ead8a6cc6a4bcf1cfc3a538efa1fd4d0e5bd75de7b544f74767d4dac76ff7" from cache

/: (copy (src .) (dst opam-repository/))
2024-02-08 11:51.58 ---> using "3d1fb225274659aeef4417ad4ab1d4e700c460d4671e5e2bb07973f61ad75556" from cache

/: (run (shell "opam repository set-url -k local --strict default opam-repository/"))
[default] Initialised
2024-02-08 11:51.58 ---> using "34861026e8aac4ce7e255b588427ea7f18305935ec0be44e672e6322d330f3ab" from cache

/: (run (network host)
        (shell "opam update --depexts || true"))
+ /usr/local/bin/brew "update"
- ==> Homebrew collects anonymous analytics.
- Read the analytics documentation (and how to opt-out) here:
-   https://docs.brew.sh/Analytics
- No analytics have been recorded yet (nor will be during this `brew` run).
- 
- ==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
-   https://github.com/Homebrew/brew#donations
- 
- Already up-to-date.
2024-02-08 11:51.58 ---> using "eaeeb60e85a620887ef7793e10173e7a43e30345c904116f4ef66afae0b6527b" from cache

/: (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"))
hpke is now pinned to version 0.0.pre-alpha
2024-02-08 11:51.58 ---> using "a8f05f4ab845a850aaa353440f51d48030a70f9511e10ef07a54015070145c51" from cache

/: (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
        (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 \"\\\"macos-homebrew\\\"\"; 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
Constructing initial basis...
Number of 0-1 knapsack inequalities = 2651
Constructing conflict graph...
Conflict graph has 616 + 222 = 838 vertices
The following actions will be performed:
=== install 20 packages
  - install conf-gmp          4                      [required by conf-gmp-powm-sec, zarith]
  - install conf-gmp-powm-sec 3                      [required by mirage-crypto-pk]
  - install csexp             1.5.2                  [required by dune-configurator]
  - install cstruct           6.2.0                  [required by hpke]
  - install dune              3.13.1                 [required by hpke]
  - install dune-configurator 3.13.1                 [required by mirage-crypto, mirage-crypto-rng]
  - install duration          0.2.1                  [required by mirage-crypto-rng]
  - install eqaf              0.9                    [required by mirage-crypto-pk]
  - install fmt               0.9.0                  [required by cstruct]
  - install hkdf              1.0.4                  [required by hpke]
  - install hpke              0.0.pre-alpha (pinned)
  - install logs              0.7.0                  [required by mirage-crypto-rng]
  - install mirage-crypto     0.11.2                 [required by hpke]
  - install mirage-crypto-pk  0.11.2                 [required by hpke]
  - install mirage-crypto-rng 0.11.2                 [required by mirage-crypto-pk]
  - install ocamlbuild        0.14.3                 [required by fmt]
  - install ocamlfind         1.9.6                  [required by fmt, zarith]
  - install sexplib0          v0.16.0                [required by mirage-crypto-pk]
  - install topkg             1.0.7                  [required by fmt]
  - install zarith            1.13                   [required by mirage-crypto-pk]

The following system packages will first need to be installed:
    gmp

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

opam believes some required external dependencies are missing. opam can:
> 1. Run brew to install them (may need root/sudo access)
  2. Display the recommended brew 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/local/bin/brew "install" "gmp"
- ==> Downloading https://ghcr.io/v2/homebrew/core/gmp/manifests/6.3.0
- Already downloaded: /Users/mac1000/Library/Caches/Homebrew/downloads/70a72a71216843d66a953c06ff6337445ce9bc94fae9f0e301e2f59005274a8e--gmp-6.3.0.bottle_manifest.json
- ==> Fetching gmp
- ==> Downloading https://ghcr.io/v2/homebrew/core/gmp/blobs/sha256:e8410d92339535174e9f4a5eccc403301b70c7287f2f9a87f064a9aa2e21b54b
- Already downloaded: /Users/mac1000/Library/Caches/Homebrew/downloads/8d39e3597db85ea2b4532e0057381937ab6ed92a64a1728c68e57bc6b3aeef95--gmp--6.3.0.sonoma.bottle.tar.gz
- ==> Pouring gmp--6.3.0.sonoma.bottle.tar.gz
- 🍺  /usr/local/Cellar/gmp/6.3.0: 21 files, 3.3MB
- ==> Running `brew cleanup gmp`...
- Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
- Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

<><> 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  (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, 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 sexplib0.v0.16.0
-> installed cstruct.6.2.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:51.59 ---> using "0efab8814e548df50e9cfa4fd5ad739ce628e93fb67e36352c4702eeac8c495a" from cache
Job succeeded
2024-02-08 11:52.24: Job succeeded