(for PR #29368)

2026-02-10 15:24.05: New job: build mirage-crypto-ec.2.0.3, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29368/head (66e177c9ccf11298b53a7c2c24dada57dd487d9b)
                              on ubuntu-24.04-ocaml-5.4/riscv64

To reproduce locally:

cd $(mktemp -d)
git clone --recursive "https://github.com/ocaml/opam-repository.git" && cd "opam-repository" && git fetch origin "refs/pull/29368/head" && git reset --hard 66e177c9
git fetch origin master
git merge --no-edit f4c12add9cacd610d7ec6cc9fcb057902ca0a0f6
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:ubuntu-24.04-ocaml-5.4@sha256:705890ca65fe646d8e26c7b170e25fbb764742d3d3cac1c1981e8abe89feaad5
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-dev /usr/bin/opam
RUN opam init --reinit -ni
RUN opam option solver=builtin-0install && 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 update --depexts || true
RUN opam pin add -k version -yn mirage-crypto-ec.2.0.3 2.0.3
RUN opam reinstall mirage-crypto-ec.2.0.3; \
    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 "\"ubuntu-24.04\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'mirage-crypto-ec.2.0.3' && 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 .

2026-02-10 15:24.05: Using cache hint "ocaml/opam:ubuntu-24.04-ocaml-5.4@sha256:705890ca65fe646d8e26c7b170e25fbb764742d3d3cac1c1981e8abe89feaad5-mirage-crypto-ec.2.0.3-66e177c9ccf11298b53a7c2c24dada57dd487d9b"
2026-02-10 15:24.05: Using OBuilder spec:
((from ocaml/opam:ubuntu-24.04-ocaml-5.4@sha256:705890ca65fe646d8e26c7b170e25fbb764742d3d3cac1c1981e8abe89feaad5)
 (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 "opam option solver=builtin-0install && 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 update --depexts || true"))
 (run (shell "opam pin add -k version -yn mirage-crypto-ec.2.0.3 2.0.3"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall mirage-crypto-ec.2.0.3;\
             \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 \"\\\"ubuntu-24.04\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'mirage-crypto-ec.2.0.3' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2026-02-10 15:24.05: Waiting for resource in pool OCluster
2026-02-10 15:24.07: Waiting for worker…
2026-02-10 15:39.47: Got resource from pool OCluster
Building on riscv-bm-01.sw.ci.dev
All commits already cached
Updating files:  12% (2363/19367)
Updating files:  13% (2518/19367)
Updating files:  14% (2712/19367)
Updating files:  15% (2906/19367)
Updating files:  16% (3099/19367)
Updating files:  17% (3293/19367)
Updating files:  18% (3487/19367)
Updating files:  19% (3680/19367)
Updating files:  20% (3874/19367)
Updating files:  21% (4068/19367)
Updating files:  22% (4261/19367)
Updating files:  23% (4455/19367)
Updating files:  24% (4649/19367)
Updating files:  25% (4842/19367)
Updating files:  25% (4889/19367)
Updating files:  26% (5036/19367)
Updating files:  27% (5230/19367)
Updating files:  28% (5423/19367)
Updating files:  29% (5617/19367)
Updating files:  30% (5811/19367)
Updating files:  31% (6004/19367)
Updating files:  32% (6198/19367)
Updating files:  33% (6392/19367)
Updating files:  34% (6585/19367)
Updating files:  35% (6779/19367)
Updating files:  36% (6973/19367)
Updating files:  37% (7166/19367)
Updating files:  38% (7360/19367)
Updating files:  38% (7374/19367)
Updating files:  39% (7554/19367)
Updating files:  40% (7747/19367)
Updating files:  41% (7941/19367)
Updating files:  42% (8135/19367)
Updating files:  43% (8328/19367)
Updating files:  44% (8522/19367)
Updating files:  45% (8716/19367)
Updating files:  46% (8909/19367)
Updating files:  47% (9103/19367)
Updating files:  48% (9297/19367)
Updating files:  49% (9490/19367)
Updating files:  49% (9607/19367)
Updating files:  50% (9684/19367)
Updating files:  51% (9878/19367)
Updating files:  52% (10071/19367)
Updating files:  53% (10265/19367)
Updating files:  54% (10459/19367)
Updating files:  55% (10652/19367)
Updating files:  56% (10846/19367)
Updating files:  57% (11040/19367)
Updating files:  58% (11233/19367)
Updating files:  59% (11427/19367)
Updating files:  60% (11621/19367)
Updating files:  61% (11814/19367)
Updating files:  61% (11919/19367)
Updating files:  62% (12008/19367)
Updating files:  63% (12202/19367)
Updating files:  64% (12395/19367)
Updating files:  65% (12589/19367)
Updating files:  66% (12783/19367)
Updating files:  67% (12976/19367)
Updating files:  68% (13170/19367)
Updating files:  69% (13364/19367)
Updating files:  70% (13557/19367)
Updating files:  71% (13751/19367)
Updating files:  72% (13945/19367)
Updating files:  73% (14138/19367)
Updating files:  73% (14246/19367)
Updating files:  74% (14332/19367)
Updating files:  75% (14526/19367)
Updating files:  76% (14719/19367)
Updating files:  77% (14913/19367)
Updating files:  78% (15107/19367)
Updating files:  79% (15300/19367)
Updating files:  80% (15494/19367)
Updating files:  81% (15688/19367)
Updating files:  82% (15881/19367)
Updating files:  83% (16075/19367)
Updating files:  84% (16269/19367)
Updating files:  85% (16462/19367)
Updating files:  85% (16637/19367)
Updating files:  86% (16656/19367)
Updating files:  87% (16850/19367)
Updating files:  88% (17043/19367)
Updating files:  89% (17237/19367)
Updating files:  90% (17431/19367)
Updating files:  91% (17624/19367)
Updating files:  92% (17818/19367)
Updating files:  93% (18012/19367)
Updating files:  94% (18205/19367)
Updating files:  95% (18399/19367)
Updating files:  96% (18593/19367)
Updating files:  97% (18786/19367)
Updating files:  97% (18877/19367)
Updating files:  98% (18980/19367)
Updating files:  99% (19174/19367)
Updating files: 100% (19367/19367)
Updating files: 100% (19367/19367), done.
HEAD is now at f4c12add9c Merge pull request #29362 from xvw/fix-primavera-ownership
Updating f4c12add9c..66e177c9cc
Fast-forward
 .../mirage-crypto-ec/mirage-crypto-ec.2.0.3/opam   | 62 ++++++++++++++++++++++
 .../mirage-crypto-pk/mirage-crypto-pk.2.0.3/opam   | 43 +++++++++++++++
 .../mirage-crypto-rng-miou-unix.2.0.3/opam         | 39 ++++++++++++++
 .../mirage-crypto-rng-mirage.2.0.3/opam            | 40 ++++++++++++++
 .../mirage-crypto-rng-mkernel.2.0.3/opam           | 38 +++++++++++++
 .../mirage-crypto-rng/mirage-crypto-rng.2.0.3/opam | 42 +++++++++++++++
 packages/mirage-crypto/mirage-crypto.2.0.3/opam    | 39 ++++++++++++++
 7 files changed, 303 insertions(+)
 create mode 100644 packages/mirage-crypto-ec/mirage-crypto-ec.2.0.3/opam
 create mode 100644 packages/mirage-crypto-pk/mirage-crypto-pk.2.0.3/opam
 create mode 100644 packages/mirage-crypto-rng-miou-unix/mirage-crypto-rng-miou-unix.2.0.3/opam
 create mode 100644 packages/mirage-crypto-rng-mirage/mirage-crypto-rng-mirage.2.0.3/opam
 create mode 100644 packages/mirage-crypto-rng-mkernel/mirage-crypto-rng-mkernel.2.0.3/opam
 create mode 100644 packages/mirage-crypto-rng/mirage-crypto-rng.2.0.3/opam
 create mode 100644 packages/mirage-crypto/mirage-crypto.2.0.3/opam

(from ocaml/opam:ubuntu-24.04-ocaml-5.4@sha256:705890ca65fe646d8e26c7b170e25fbb764742d3d3cac1c1981e8abe89feaad5)
2026-02-10 15:39.59 ---> using "19fd5310986077fc9698037d8848c513269f88343bf50236940dc6e2d3c6d7c0" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2026-02-10 15:39.59 ---> using "fcef2120c5f3b76d7ad6eb4a94105ff487a50e3d65e1b1520aabfbd775aafd28" 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.2, 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] Initialised
2026-02-10 15:39.59 ---> using "2cee530e5308139ef61cecd0969942b0aab34ec3c8bdb86a0df0549004741f23" from cache

/home/opam: (run (shell "opam option solver=builtin-0install && opam config report"))
Set to 'builtin-0install' the field solver in global configuration
# opam config report
# opam-version         2.5.0
# self-upgrade         no
# system               arch=riscv64 os=linux os-distribution=ubuntu os-version=24.04
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 3
# repositories         1 (version-controlled)
# pinned               1 (version)
# current-switch       5.4
# invariant            ["ocaml-base-compiler" {>= "5.4.0"}]
# compiler-packages    ocaml-base-compiler.5.4.0, ocaml-compiler.5.4.0, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/5.4/lib/ocaml/stublibs:/home/opam/.opam/5.4/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       5.4.0
2026-02-10 15:39.59 ---> using "15720d4f339b54afb0578f6c93315afa93902017b3d501aa7f9717ac9490344c" from cache

/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/"))
2026-02-10 15:39.59 ---> using "889653886c1aae366b15ac5c93e5bc4f64353d8e8ea26b1f0bd74d2778241f15" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2026-02-10 15:40.05 ---> using "b5e0c139927f49164fb90eb51207967b3d1e55f470d86a55d9213f130219917a" from cache

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2026-02-10 15:40.05 ---> using "fc4f1786f9cdfbe5791f6e9a600a3953b93dd35026c8a551240343eded4c8d49" from cache

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease
- Get:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease [126 kB]
- Get:3 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease [126 kB]
- Get:4 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease [126 kB]
- Get:5 http://ports.ubuntu.com/ubuntu-ports noble-updates/universe riscv64 Packages [1491 kB]
- Get:6 http://ports.ubuntu.com/ubuntu-ports noble-updates/main riscv64 Packages [924 kB]
- Get:7 http://ports.ubuntu.com/ubuntu-ports noble-security/universe riscv64 Packages [938 kB]
- Get:8 http://ports.ubuntu.com/ubuntu-ports noble-security/main riscv64 Packages [598 kB]
- Fetched 4330 kB in 2s (1820 kB/s)
- Reading package lists...
- 
2026-02-10 15:40.05 ---> using "c0d860a9d9566606d66f27dc77427c40a07304e0cb028aea132a0981bcfefe7e" from cache

/home/opam: (run (shell "opam pin add -k version -yn mirage-crypto-ec.2.0.3 2.0.3"))
mirage-crypto-ec is now pinned to version 2.0.3
2026-02-10 15:40.08 ---> saved as "d26d8c6a0d46145b7363d698482edb983d1cd29ec765bb59254b93bce5396b9b"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall mirage-crypto-ec.2.0.3;\
                        \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 \"\\\"ubuntu-24.04\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'mirage-crypto-ec.2.0.3' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
mirage-crypto-ec.2.0.3 is not installed. Install it? [Y/n] y
The following actions will be performed:
=== install 13 packages
  - install csexp             1.5.2          [required by dune-configurator]
  - install digestif          1.3.0          [required by mirage-crypto-ec]
  - install dune              3.21.0         [required by mirage-crypto-ec]
  - install dune-configurator 3.21.0         [required by mirage-crypto-ec]
  - install duration          0.2.1          [required by mirage-crypto-rng]
  - install eqaf              0.10           [required by mirage-crypto-ec]
  - install logs              0.10.0         [required by mirage-crypto-rng]
  - install mirage-crypto     2.0.3          [required by mirage-crypto-rng]
  - install mirage-crypto-ec  2.0.3 (pinned)
  - install mirage-crypto-rng 2.0.3          [required by mirage-crypto-ec]
  - install ocamlbuild        0.16.1         [required by logs]
  - install ocamlfind         1.9.8          [required by logs]
  - install topkg             1.1.1          [required by logs]

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved csexp.1.5.2  (cached)
-> retrieved digestif.1.3.0  (cached)
-> retrieved dune.3.21.0, dune-configurator.3.21.0  (cached)
-> retrieved duration.0.2.1  (cached)
-> retrieved eqaf.0.10  (cached)
-> retrieved logs.0.10.0  (cached)
-> retrieved mirage-crypto.2.0.3, mirage-crypto-ec.2.0.3, mirage-crypto-rng.2.0.3  (cached)
-> retrieved ocamlbuild.0.16.1  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved topkg.1.1.1  (cached)
-> installed ocamlfind.1.9.8
-> installed ocamlbuild.0.16.1
-> installed topkg.1.1.1
-> installed logs.0.10.0
-> installed dune.3.21.0
-> installed duration.0.2.1
-> installed csexp.1.5.2
-> installed eqaf.0.10
-> installed dune-configurator.3.21.0
-> installed digestif.1.3.0
-> installed mirage-crypto.2.0.3
-> installed mirage-crypto-rng.2.0.3
-> installed mirage-crypto-ec.2.0.3
Done.
# To update the current shell environment, run: eval $(opam env)
2026-02-10 15:46.50 ---> saved as "c2ed2402807fd0a7f3634aa97a80acd06d9966335ed05be4a4fede279d29135d"
Job succeeded
2026-02-10 15:47.26: Job succeeded