(for PR #27856)

2025-05-15 10:25.34: New job: build ocaml-unikraft-x86_64.1.0.0, using opam 2.3
                              from https://github.com/ocaml/opam-repository.git#refs/pull/27856/head (b7f2900402f37475f1877086298b23e1320cc7ca)
                              on fedora-41-ocaml-5.3/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/27856/head" && git reset --hard b7f29004
git fetch origin master
git merge --no-edit 19c8e74c010228407e25949e40cac8e17ab856a3
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:fedora-41-ocaml-5.3@sha256:abc80c782e7acbd09ffd49defcb056c2fc402593e57bcb537add09330e2c3992
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-2.3 /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 ocaml-unikraft-x86_64.1.0.0 1.0.0
RUN opam reinstall ocaml-unikraft-x86_64.1.0.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 "\"fedora-41\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'ocaml-unikraft-x86_64.1.0.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 .

2025-05-15 10:25.34: Using cache hint "ocaml/opam:fedora-41-ocaml-5.3@sha256:abc80c782e7acbd09ffd49defcb056c2fc402593e57bcb537add09330e2c3992-ocaml-unikraft-x86_64.1.0.0-b7f2900402f37475f1877086298b23e1320cc7ca"
2025-05-15 10:25.34: Using OBuilder spec:
((from ocaml/opam:fedora-41-ocaml-5.3@sha256:abc80c782e7acbd09ffd49defcb056c2fc402593e57bcb537add09330e2c3992)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "sudo ln -f /usr/bin/opam-2.3 /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 ocaml-unikraft-x86_64.1.0.0 1.0.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall ocaml-unikraft-x86_64.1.0.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 \"\\\"fedora-41\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'ocaml-unikraft-x86_64.1.0.0' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-05-15 10:25.34: Connecting to build cluster…
2025-05-15 10:25.34: Waiting for resource in pool OCluster
2025-05-15 10:49.26: Waiting for worker…
2025-05-15 10:51.11: Got resource from pool OCluster
Building on asteria.caelum.ci.dev
All commits already cached
Updating files:  92% (21355/23053)
Updating files:  93% (21440/23053)
Updating files:  94% (21670/23053)
Updating files:  95% (21901/23053)
Updating files:  96% (22131/23053)
Updating files:  97% (22362/23053)
Updating files:  98% (22592/23053)
Updating files:  99% (22823/23053)
Updating files: 100% (23053/23053)
Updating files: 100% (23053/23053), done.
HEAD is now at 19c8e74c01 Merge pull request #27876 from hannesm/release-happy-eyeballs-v2.0.1
Merge made by the 'ort' strategy.
 .../conf-aarch64-linux-gnu-gcc.1/opam              | 20 +++++++++++
 .../conf-x86_64-linux-gnu-gcc.1/opam               | 20 +++++++++++
 .../ocaml-unikraft-arm64.1.0.0/opam                | 42 ++++++++++++++++++++++
 .../opam                                           | 39 ++++++++++++++++++++
 .../opam                                           | 39 ++++++++++++++++++++
 .../ocaml-unikraft-backend-firecracker.0.18.0/opam | 19 ++++++++++
 .../ocaml-unikraft-backend-qemu-arm64.0.18.0/opam  | 39 ++++++++++++++++++++
 .../ocaml-unikraft-backend-qemu-x86_64.0.18.0/opam | 39 ++++++++++++++++++++
 .../ocaml-unikraft-backend-qemu.0.18.0/opam        | 19 ++++++++++
 .../ocaml-unikraft-default-arm64.1.0.0/opam        | 25 +++++++++++++
 .../ocaml-unikraft-default-x86_64.1.0.0/opam       | 25 +++++++++++++
 .../ocaml-unikraft-option-debug.0.18.0/opam        | 12 +++++++
 .../ocaml-unikraft-toolchain-arm64.0.18.0/opam     | 33 +++++++++++++++++
 .../ocaml-unikraft-toolchain-x86_64.0.18.0/opam    | 33 +++++++++++++++++
 .../ocaml-unikraft-x86_64.1.0.0/opam               | 42 ++++++++++++++++++++++
 packages/ocaml-unikraft/ocaml-unikraft.1.0.0/opam  | 15 ++++++++
 packages/unikraft-musl/unikraft-musl.0.18.0/opam   | 26 ++++++++++++++
 packages/unikraft/unikraft.0.18.0/opam             | 30 ++++++++++++++++
 18 files changed, 517 insertions(+)
 create mode 100644 packages/conf-aarch64-linux-gnu-gcc/conf-aarch64-linux-gnu-gcc.1/opam
 create mode 100644 packages/conf-x86_64-linux-gnu-gcc/conf-x86_64-linux-gnu-gcc.1/opam
 create mode 100644 packages/ocaml-unikraft-arm64/ocaml-unikraft-arm64.1.0.0/opam
 create mode 100644 packages/ocaml-unikraft-backend-firecracker-arm64/ocaml-unikraft-backend-firecracker-arm64.0.18.0/opam
 create mode 100644 packages/ocaml-unikraft-backend-firecracker-x86_64/ocaml-unikraft-backend-firecracker-x86_64.0.18.0/opam
 create mode 100644 packages/ocaml-unikraft-backend-firecracker/ocaml-unikraft-backend-firecracker.0.18.0/opam
 create mode 100644 packages/ocaml-unikraft-backend-qemu-arm64/ocaml-unikraft-backend-qemu-arm64.0.18.0/opam
 create mode 100644 packages/ocaml-unikraft-backend-qemu-x86_64/ocaml-unikraft-backend-qemu-x86_64.0.18.0/opam
 create mode 100644 packages/ocaml-unikraft-backend-qemu/ocaml-unikraft-backend-qemu.0.18.0/opam
 create mode 100644 packages/ocaml-unikraft-default-arm64/ocaml-unikraft-default-arm64.1.0.0/opam
 create mode 100644 packages/ocaml-unikraft-default-x86_64/ocaml-unikraft-default-x86_64.1.0.0/opam
 create mode 100644 packages/ocaml-unikraft-option-debug/ocaml-unikraft-option-debug.0.18.0/opam
 create mode 100644 packages/ocaml-unikraft-toolchain-arm64/ocaml-unikraft-toolchain-arm64.0.18.0/opam
 create mode 100644 packages/ocaml-unikraft-toolchain-x86_64/ocaml-unikraft-toolchain-x86_64.0.18.0/opam
 create mode 100644 packages/ocaml-unikraft-x86_64/ocaml-unikraft-x86_64.1.0.0/opam
 create mode 100644 packages/ocaml-unikraft/ocaml-unikraft.1.0.0/opam
 create mode 100644 packages/unikraft-musl/unikraft-musl.0.18.0/opam
 create mode 100644 packages/unikraft/unikraft.0.18.0/opam

(from ocaml/opam:fedora-41-ocaml-5.3@sha256:abc80c782e7acbd09ffd49defcb056c2fc402593e57bcb537add09330e2c3992)
Unable to find image 'ocaml/opam:fedora-41-ocaml-5.3@sha256:abc80c782e7acbd09ffd49defcb056c2fc402593e57bcb537add09330e2c3992' locally
docker.io/ocaml/opam@sha256:abc80c782e7acbd09ffd49defcb056c2fc402593e57bcb537add09330e2c3992: Pulling from ocaml/opam
e0caea583fc1: Pulling fs layer
e0caea583fc1: Verifying Checksum
e0caea583fc1: Download complete
e0caea583fc1: Pull complete
Digest: sha256:abc80c782e7acbd09ffd49defcb056c2fc402593e57bcb537add09330e2c3992
Status: Downloaded newer image for ocaml/opam@sha256:abc80c782e7acbd09ffd49defcb056c2fc402593e57bcb537add09330e2c3992
2025-05-15 10:53.08 ---> using "da0437edefc3074e740b2380711421a58ad6af000252c27345a9c063faf0cc10" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam"))
2025-05-15 10:53.08 ---> using "e833ac3457899ccaae15fb853ecba4205a061c03c99d3b56cfc9dca5fdfd41fe" 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, 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
2025-05-15 10:53.08 ---> using "5b9378c4368654a1e42c0b58a1b1b855d77697c967ba417f4988054492006ce4" 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.3.0 (35acd0c5abc5e66cdbd5be16ba77aa6c33a4c724)
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=fedora os-version=41
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 255
# repositories         1 (version-controlled)
# pinned               1 (version)
# current-switch       5.3
# invariant            ["ocaml-base-compiler" {>= "5.3.0"}]
# compiler-packages    ocaml-base-compiler.5.3.0, ocaml-compiler.5.3.0, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/5.3/lib/ocaml/stublibs:/home/opam/.opam/5.3/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       5.3.0
2025-05-15 10:53.08 ---> using "8c5eb5242251e81437c14d007cf8da5cd6a9ff40f0aedf6a46c93dbaa06635e7" 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/"))
2025-05-15 10:53.08 ---> using "fa4e1a05d14195bedfc69d489958d269fa2e804160a92530b9f0c5df587b19e3" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-05-15 10:53.09 ---> using "977b315197e6ee2c36c3b5f71283a5f6aaac77fb66cc98c6094046a8f610be90" from cache

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-05-15 10:53.13 ---> saved as "c3aa53d59ea567e8f9b25205b04d8eb4ba46b50e6c3e5eeff2538ec4e8eb498e"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "yum" "makecache"
- Updating and loading repositories:
-  Fedora 41 - x86_64                     100% | 199.8 KiB/s |  25.4 KiB |  00m00s
-  Fedora 41 - x86_64 - Updates           100% | 185.2 KiB/s |  23.3 KiB |  00m00s
-  Fedora 41 - x86_64 - Updates           100% |   7.3 MiB/s |   4.5 MiB |  00m01s
- Repositories loaded.
- Metadata cache created.
2025-05-15 10:53.17 ---> saved as "b3e80be50b7d5beccccf05b9678e3536a93d9e503e49f0c2f59b78da0e8e252a"

/home/opam: (run (shell "opam pin add -k version -yn ocaml-unikraft-x86_64.1.0.0 1.0.0"))
ocaml-unikraft-x86_64 is now pinned to version 1.0.0
2025-05-15 10:53.18 ---> saved as "8a8b964fa1ec8c381234c82aaaa1f60e6ac0d676c350d08b67a2e1745bb356ad"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall ocaml-unikraft-x86_64.1.0.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 \"\\\"fedora-41\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'ocaml-unikraft-x86_64.1.0.0' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
ocaml-unikraft-x86_64.1.0.0 is not installed. Install it? [y/n] y
The following actions will be performed:
=== install 11 packages
  - install conf-bison                         2              [required by unikraft]
  - install conf-flex                          2              [required by unikraft]
  - install conf-git                           1.1            [required by ocaml-unikraft-x86_64]
  - install conf-python-3                      9.0.0          [required by unikraft]
  - install ocaml-src                          5.3.0          [required by ocaml-unikraft-x86_64]
  - install ocaml-unikraft-backend-qemu-x86_64 0.18.0         [required by ocaml-unikraft-toolchain-x86_64]
  - install ocaml-unikraft-toolchain-x86_64    0.18.0         [required by ocaml-unikraft-x86_64]
  - install ocaml-unikraft-x86_64              1.0.0 (pinned)
  - install ocamlfind                          1.9.8          [required by ocaml-unikraft-x86_64]
  - install unikraft                           0.18.0         [required by ocaml-unikraft-backend-qemu-x86_64]
  - install unikraft-musl                      0.18.0         [required by ocaml-unikraft-backend-qemu-x86_64]

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved conf-python-3.9.0.0  (cached)
-> installed conf-bison.2
-> installed conf-flex.2
-> installed conf-git.1.1
-> installed conf-python-3.9.0.0
-> retrieved ocaml-src.5.3.0  (cached)
-> retrieved ocaml-unikraft-backend-qemu-x86_64.0.18.0, ocaml-unikraft-toolchain-x86_64.0.18.0, ocaml-unikraft-x86_64.1.0.0  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved unikraft.0.18.0  (cached)
-> installed ocaml-src.5.3.0
-> retrieved unikraft-musl.0.18.0  (cached)
-> installed unikraft.0.18.0
-> installed unikraft-musl.0.18.0
-> installed ocamlfind.1.9.8
-> installed ocaml-unikraft-backend-qemu-x86_64.0.18.0
-> installed ocaml-unikraft-toolchain-x86_64.0.18.0
-> installed ocaml-unikraft-x86_64.1.0.0
Done.
# To update the current shell environment, run: eval $(opam env)
2025-05-15 10:55.12 ---> saved as "e8b9c5154156a76096b1213c36798621a037721b707632b3036dd0ee0add6ec3"
Job succeeded
2025-05-15 10:55.50: Job succeeded