(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 archlinux-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:archlinux-ocaml-5.3@sha256:4d0653d3b75e1c6bf4154faf7fa7058d84f0e0b8e798e68086cee2e491d54e60
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 "\"archlinux\""; 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:archlinux-ocaml-5.3@sha256:4d0653d3b75e1c6bf4154faf7fa7058d84f0e0b8e798e68086cee2e491d54e60-ocaml-unikraft-x86_64.1.0.0-b7f2900402f37475f1877086298b23e1320cc7ca"
2025-05-15 10:25.34: Using OBuilder spec:
((from ocaml/opam:archlinux-ocaml-5.3@sha256:4d0653d3b75e1c6bf4154faf7fa7058d84f0e0b8e798e68086cee2e491d54e60)
 (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 \"\\\"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\" != '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:47.45: Waiting for worker…
2025-05-15 10:49.36: Got resource from pool OCluster
Building on doris.caelum.ci.dev
All commits already cached
Updating files:  87% (20103/23053)
Updating files:  88% (20287/23053)
Updating files:  89% (20518/23053)
Updating files:  90% (20748/23053)
Updating files:  91% (20979/23053)
Updating files:  92% (21209/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:archlinux-ocaml-5.3@sha256:4d0653d3b75e1c6bf4154faf7fa7058d84f0e0b8e798e68086cee2e491d54e60)
2025-05-15 10:51.46 ---> using "7a9adca8a16f02c508b70739626741474042aa9b4cb4693bd02e0216c65fe9cd" 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:51.46 ---> using "7b8562f93de13b495e6cd4bfc6b8e36fe20fb3014b508b24e5bb6056db99d2f6" 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
[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] Initialised
2025-05-15 10:51.46 ---> using "d3ab2257b89d40145d3a706fa7c289662e1877a3b762db2a49a6c76c7f5cf5f6" 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=arch os-version=20250504.0.344409
# 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:51.46 ---> using "3c8a2950777031b6c55eaa349af6e02b67b0c6e7c8c6d4c5348bb2206cb03cfb" 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:51.46 ---> using "0f38b74a51f1a8f9a59acf5a0670ef57f88bdb5c1c299bd47fb76e41d555c711" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-05-15 10:51.47 ---> using "8c15a76082ac596a22e7fbf8e353f4b6bb57f4ef2679155ee9b1e47c787e41b9" from cache

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

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/sbin/sudo "pacman" "-Sy"
- :: Synchronizing package databases...
-  core downloading...
-  extra downloading...
2025-05-15 10:52.13 ---> saved as "690ab5cf9fdaeee4e55cb3b81d841d63ed40d09ab6977d5268d043867d73b625"

/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:52.15 ---> saved as "6c34bfb43bf194df886cb1a967afbf0587c87abfb6065b37b704b34d4e9d76b0"

/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 \"\\\"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\" != '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
  ∗ conf-bison                         2              [required by unikraft]
  ∗ conf-flex                          2              [required by unikraft]
  ∗ conf-git                           1.1            [required by ocaml-unikraft-x86_64]
  ∗ conf-python-3                      9.0.0          [required by unikraft]
  ∗ ocaml-src                          5.3.0          [required by ocaml-unikraft-x86_64]
  ∗ ocaml-unikraft-backend-qemu-x86_64 0.18.0         [required by ocaml-unikraft-toolchain-x86_64]
  ∗ ocaml-unikraft-toolchain-x86_64    0.18.0         [required by ocaml-unikraft-x86_64]
  ∗ ocaml-unikraft-x86_64              1.0.0 (pinned)
  ∗ ocamlfind                          1.9.8          [required by ocaml-unikraft-x86_64]
  ∗ unikraft                           0.18.0         [required by ocaml-unikraft-backend-qemu-x86_64]
  ∗ unikraft-musl                      0.18.0         [required by ocaml-unikraft-backend-qemu-x86_64]

The following system packages will first need to be installed:
    bison flex python

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

opam believes some required external dependencies are missing. opam can:
> 1. Run pacman to install them (may need root/sudo access)
  2. Display the recommended pacman 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/sbin/sudo "pacman" "-Su" "--noconfirm" "bison" "flex" "python"
- :: Starting full system upgrade...
- resolving dependencies...
- looking for conflicting packages...
- 
- Package (12)             Old Version  New Version  Net Change  Download Size
- 
- extra/git                2.49.0-1     2.49.0-2      -0.07 MiB       6.56 MiB
- core/libxml2             2.14.2-2     2.14.3-1       0.00 MiB       0.78 MiB
- core/m4                               1.4.20-1       0.70 MiB       0.26 MiB
- core/mpdecimal                        4.0.1-1        0.33 MiB       0.10 MiB
- core/ncurses             6.5-3        6.5-4          0.00 MiB       1.13 MiB
- core/systemd             257.5-2      257.5-3       -0.09 MiB       8.79 MiB
- core/systemd-libs        257.5-2      257.5-3       -0.03 MiB       1.20 MiB
- core/systemd-sysvcompat  257.5-2      257.5-3        0.00 MiB       0.01 MiB
- extra/zlib-ng                         2.2.4-1        0.26 MiB       0.10 MiB
- core/bison                            3.8.2-8        2.52 MiB       0.75 MiB
- core/flex                             2.6.4-5        0.93 MiB       0.30 MiB
- core/python                           3.13.3-1      67.42 MiB      12.25 MiB
- 
- Total Download Size:    32.22 MiB
- Total Installed Size:  144.61 MiB
- Net Upgrade Size:       71.97 MiB
- 
- :: Proceed with installation? [Y/n] 
- :: Retrieving packages...
-  python-3.13.3-1-x86_64 downloading...
-  systemd-257.5-3-x86_64 downloading...
-  git-2.49.0-2-x86_64 downloading...
-  systemd-libs-257.5-3-x86_64 downloading...
-  ncurses-6.5-4-x86_64 downloading...
-  libxml2-2.14.3-1-x86_64 downloading...
-  bison-3.8.2-8-x86_64 downloading...
-  flex-2.6.4-5-x86_64 downloading...
-  m4-1.4.20-1-x86_64 downloading...
-  mpdecimal-4.0.1-1-x86_64 downloading...
-  zlib-ng-2.2.4-1-x86_64 downloading...
-  systemd-sysvcompat-257.5-3-x86_64 downloading...
- checking keyring...
- checking package integrity...
- loading package files...
- checking for file conflicts...
- :: Processing package changes...
- upgrading ncurses...
- installing m4...
- upgrading libxml2...
- installing bison...
- installing flex...
- installing mpdecimal...
- installing python...
- Optional dependencies for python
-     python-setuptools: for building Python packages using tooling that is usually bundled with Python
-     python-pip: for installing Python packages using tooling that is usually bundled with Python
-     python-pipx: for installing Python software not packaged on Arch Linux
-     sqlite: for a default database integration [installed]
-     xz: for lzma [installed]
-     tk: for tkinter
- installing zlib-ng...
- upgrading systemd-libs...
- upgrading git...
- upgrading systemd...
- upgrading systemd-sysvcompat...
- :: Running post-transaction hooks...
- ( 1/11) Creating system user accounts...
- ( 2/11) Updating journal message catalog...
- ( 3/11) Reloading system manager configuration...
- Failed to check for chroot() environment: Permission denied
-   Skipped: Current root is not booted.
- ( 4/11) Reloading user manager configuration...
- Failed to check for chroot() environment: Permission denied
-   Skipped: Current root is not booted.
- ( 5/11) Updating udev hardware database...
- ( 6/11) Restarting marked services...
- Failed to check for chroot() environment: Permission denied
-   Skipped: Current root is not booted.
- ( 7/11) Applying kernel sysctl settings...
- Failed to check for chroot() environment: Permission denied
-   Skipped: Current root is not booted.
- ( 8/11) Creating temporary files...
- /usr/lib/tmpfiles.d/journal-nocow.conf:26: Failed to resolve specifier: uninitialized /etc/ detected, skipping.
- All rules containing unresolvable specifiers will be skipped.
- ( 9/11) Reloading device manager configuration...
- Failed to check for chroot() environment: Permission denied
-   Skipped: Device manager is not running.
- (10/11) Arming ConditionNeedsUpdate...
- (11/11) Reloading system bus configuration...
- Failed to check for chroot() environment: Permission denied
-   Skipped: Current root is not booted.

<><> 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:54.42 ---> saved as "0d10a451a08ea606434651580afb572e0ae5b32fc1ba7c719feb8731c5d88888"
Job succeeded
2025-05-15 10:54.51: Job succeeded