(for PR #24267)

2025-11-10 11:02.17: New job: build odnnr.2.0.0, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/24267/head (41de505ec8ff3637ab3cb06a41ccbc29683f566c)
                              on alpine-3.22-ocaml-5.4/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/24267/head" && git reset --hard 41de505e
git fetch origin master
git merge --no-edit 21f97b2e6d7c617fc0a79cc8e59b2e10690960e1
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:alpine-3.22-ocaml-5.4@sha256:efaaa7bdef3b3dc866784204a02682c18285d19896cfb3b2122ed1e824ce683c
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 odnnr.2.0.0 2.0.0
RUN opam reinstall odnnr.2.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 "\"alpine-3.22\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'odnnr.2.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-11-10 11:02.17: Using cache hint "ocaml/opam:alpine-3.22-ocaml-5.4@sha256:efaaa7bdef3b3dc866784204a02682c18285d19896cfb3b2122ed1e824ce683c-odnnr.2.0.0-41de505ec8ff3637ab3cb06a41ccbc29683f566c"
2025-11-10 11:02.17: Using OBuilder spec:
((from ocaml/opam:alpine-3.22-ocaml-5.4@sha256:efaaa7bdef3b3dc866784204a02682c18285d19896cfb3b2122ed1e824ce683c)
 (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 odnnr.2.0.0 2.0.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall odnnr.2.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 \"\\\"alpine-3.22\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'odnnr.2.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-11-10 11:02.17: Waiting for resource in pool OCluster
2025-11-10 12:36.10: Waiting for worker…
2025-11-10 12:41.20: Got resource from pool OCluster
Building on doris.caelum.ci.dev
All commits already cached
HEAD is now at 21f97b2e6d Merge pull request #28836 from dbuenzli/b0-publish-bytesrw.0.3.0
Merge made by the 'ort' strategy.
 packages/odnnr/odnnr.2.0.0/opam                   | 4 +---
 packages/oplsr/oplsr.8.0.1/opam                   | 3 +--
 packages/orrandomForest/orrandomForest.1.0.0/opam | 5 +----
 packages/orrandomForest/orrandomForest.2.0.1/opam | 7 +------
 packages/orrandomForest/orrandomForest.3.0.0/opam | 7 +------
 packages/orsvm_e1071/orsvm_e1071.2.0.0/opam       | 3 ---
 packages/orsvm_e1071/orsvm_e1071.3.0.0/opam       | 5 +----
 packages/orsvm_e1071/orsvm_e1071.3.0.1/opam       | 2 +-
 packages/orsvm_e1071/orsvm_e1071.3.0.2/opam       | 2 +-
 packages/orsvm_e1071/orsvm_e1071.4.0.0/opam       | 2 +-
 packages/orxgboost/orxgboost.1.0.1/opam           | 5 +----
 packages/orxgboost/orxgboost.1.1.0/opam           | 5 +----
 packages/orxgboost/orxgboost.1.2.0/opam           | 5 +----
 13 files changed, 12 insertions(+), 43 deletions(-)

(from ocaml/opam:alpine-3.22-ocaml-5.4@sha256:efaaa7bdef3b3dc866784204a02682c18285d19896cfb3b2122ed1e824ce683c)
Unable to find image 'ocaml/opam:alpine-3.22-ocaml-5.4@sha256:efaaa7bdef3b3dc866784204a02682c18285d19896cfb3b2122ed1e824ce683c' locally
docker.io/ocaml/opam@sha256:efaaa7bdef3b3dc866784204a02682c18285d19896cfb3b2122ed1e824ce683c: Pulling from ocaml/opam
2c9a24bd0ce4: Pulling fs layer
0c236c5e7457: Pulling fs layer
a29438dfdd1c: Pulling fs layer
b45b8f11a859: Pulling fs layer
9e78e28ec2b4: Pulling fs layer
13993310a8e3: Pulling fs layer
2c9a24bd0ce4: Waiting
0c236c5e7457: Waiting
a29438dfdd1c: Waiting
eb1b3aaf663d: Pulling fs layer
b45b8f11a859: Waiting
9e78e28ec2b4: Waiting
13993310a8e3: Waiting
eb1b3aaf663d: Waiting
2c9a24bd0ce4: Download complete
0c236c5e7457: Verifying Checksum
0c236c5e7457: Download complete
a29438dfdd1c: Download complete
b45b8f11a859: Verifying Checksum
b45b8f11a859: Download complete
9e78e28ec2b4: Download complete
13993310a8e3: Verifying Checksum
13993310a8e3: Download complete
eb1b3aaf663d: Verifying Checksum
eb1b3aaf663d: Download complete
2c9a24bd0ce4: Pull complete
0c236c5e7457: Pull complete
a29438dfdd1c: Pull complete
b45b8f11a859: Pull complete
9e78e28ec2b4: Pull complete
13993310a8e3: Pull complete
eb1b3aaf663d: Pull complete
Digest: sha256:efaaa7bdef3b3dc866784204a02682c18285d19896cfb3b2122ed1e824ce683c
Status: Downloaded newer image for ocaml/opam@sha256:efaaa7bdef3b3dc866784204a02682c18285d19896cfb3b2122ed1e824ce683c
2025-11-10 12:52.45 ---> using "eb37ed49d03fa61aa0ddffe0b03ea2c7c83b5e9312dd9850b4959e1b60563649" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2025-11-10 12:52.45 ---> using "48e8f38d7eb31e04f9abf0b362f9da2ffc22e869187b9493b127e038174573f8" 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
2025-11-10 12:52.45 ---> using "2779c071b3aa0a1158bc6438dda07bfed076e4610af11b960ac88cc7e7d051bd" 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~alpha1
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=alpine os-version=3.22.2
# 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.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
2025-11-10 12:52.45 ---> using "a239afba405d972e10f1966d85e4b0d16c79afa239d2634712eec448ca5c4d16" 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-11-10 12:52.45 ---> using "435068515ab1586e1786de67048bb5b6c9acc0cba6d3c6e5e570b4e4ab8c9984" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-11-10 12:52.56 ---> saved as "a7710e8a43c6ba82e156ab041a67b378ddc3795975c1c161c549a55a32205b87"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-11-10 12:53.16 ---> saved as "6f923fdc5a3627974e2b04badca46efca00f67fa2b4b1f4bda9655e96fa4ce6b"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apk" "update"
- fetch https://dl-cdn.alpinelinux.org/alpine/v3.22/main/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/v3.22/community/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
- v3.22.2-172-ge6bdca47b2e [https://dl-cdn.alpinelinux.org/alpine/v3.22/main]
- v3.22.2-166-gebde2617572 [https://dl-cdn.alpinelinux.org/alpine/v3.22/community]
- v20251016-1927-g48290b09546 [https://dl-cdn.alpinelinux.org/alpine/edge/main]
- v20251016-1931-ga4a370d28f6 [https://dl-cdn.alpinelinux.org/alpine/edge/community]
- v20251016-1924-g65079a05d5b [https://dl-cdn.alpinelinux.org/alpine/edge/testing]
- OK: 60029 distinct packages available
2025-11-10 12:54.25 ---> saved as "bbeb96f23458baba2278b2c5fce001e85ffd222e196e723c20bbc9752ba11077"

/home/opam: (run (shell "opam pin add -k version -yn odnnr.2.0.0 2.0.0"))
odnnr is now pinned to version 2.0.0
2025-11-10 12:54.26 ---> saved as "ab4df9f87cce226686c0e6cb22348ff57247c61dd078d2ecda3babc13615f275"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall odnnr.2.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 \"\\\"alpine-3.22\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'odnnr.2.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"))
odnnr.2.0.0 is not installed. Install it? [Y/n] y
The following actions will be performed:
=== install 14 packages
  - install batteries     3.10.0         [required by odnnr]
  - install camlp-streams 5.0.1          [required by batteries]
  - install conf-autoconf 0.2            [required by cpu]
  - install conf-gnuplot  0.1            [required by odnnr]
  - install conf-r        1.0.0          [required by odnnr]
  - install cpm           12.2.0         [required by odnnr]
  - install cpu           2.0.0          [required by parany]
  - install dolog         4.0.0          [required by odnnr]
  - install dune          3.20.2         [required by odnnr]
  - install minicli       5.0.2          [required by odnnr]
  - install num           1.6            [required by batteries]
  - install ocamlfind     1.9.8          [required by batteries]
  - install odnnr         2.0.0 (pinned)
  - install parany        12.2.2         [required by odnnr]

The following system packages will first need to be installed:
    autoconf gnuplot R

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

opam believes some required external dependencies are missing. opam can:
> 1. Run apk to install them (may need root/sudo access)
  2. Display the recommended apk 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/bin/sudo "apk" "add" "autoconf" "gnuplot" "R"
- (1/53) Installing m4 (1.4.19-r4)
- (2/53) Installing perl (5.40.3-r0)
- (3/53) Installing autoconf (2.72-r1)
- (4/53) Installing perl-error (0.17030-r0)
- (5/53) Installing perl-git (2.49.1-r0)
- (6/53) Installing git-perl (2.49.1-r0)
- (7/53) Installing libxext (1.3.6-r2)
- (8/53) Installing libxrender (0.9.12-r0)
- (9/53) Installing libpng (1.6.47-r0)
- (10/53) Installing freetype (2.13.3-r0)
- (11/53) Installing fontconfig (2.15.0-r3)
- (12/53) Installing pixman (0.46.4-r0)
- (13/53) Installing cairo (1.18.4-r0)
- (14/53) Installing libcerf (2.4-r0)
- (15/53) Installing libice (1.1.2-r0)
- (16/53) Installing libuuid (2.41-r9)
- (17/53) Installing libsm (1.2.5-r0)
- (18/53) Installing libxt (1.3.1-r0)
- (19/53) Installing libxpm (3.5.17-r0)
- (20/53) Installing aom-libs (3.12.1-r0)
- (21/53) Installing libdav1d (1.5.1-r0)
- (22/53) Installing libjpeg-turbo (3.1.0-r0)
- (23/53) Installing libyuv (0.0.1887.20251502-r1)
- (24/53) Installing libavif (1.3.0-r0)
- (25/53) Installing libsharpyuv (1.5.0-r0)
- (26/53) Installing libwebp (1.5.0-r0)
- (27/53) Installing tiff (4.7.1-r0)
- (28/53) Installing libgd (2.3.3-r10)
- (29/53) Installing libintl (0.24.1-r0)
- (30/53) Installing libeconf (0.6.3-r0)
- (31/53) Installing libblkid (2.41-r9)
- (32/53) Installing libmount (2.41-r9)
- (33/53) Installing glib (2.84.4-r0)
- (34/53) Installing lua5.3-libs (5.3.6-r6)
- (35/53) Installing libxft (2.3.8-r3)
- (36/53) Installing fribidi (1.0.16-r1)
- (37/53) Installing graphite2 (1.3.14-r6)
- (38/53) Installing harfbuzz (11.2.1-r0)
- (39/53) Installing pango (1.56.3-r0)
- (40/53) Installing libwebpmux (1.5.0-r0)
- (41/53) Installing gnuplot (6.0.2-r0)
- (42/53) Installing R-mathlib (4.5.0-r0)
- (43/53) Installing tzdata (2025b-r0)
- (44/53) Installing libquadmath (14.2.0-r6)
- (45/53) Installing libgfortran (14.2.0-r6)
- (46/53) Installing openblas (0.3.28-r0)
- (47/53) Installing libxmu (1.2.1-r0)
- (48/53) Installing libdeflate (1.23-r0)
- (49/53) Installing icu-data-en (76.1-r1)
- Executing icu-data-en-76.1-r1.post-install
- *
- * If you need ICU with non-English locales and legacy charset support, install
- * package icu-data-full.
- *
- (50/53) Installing icu-libs (76.1-r1)
- (51/53) Installing tcl (8.6.16-r0)
- (52/53) Installing tk (8.6.16-r0)
- (53/53) Installing R (4.5.0-r0)
- Executing R-4.5.0-r0.post-install
- *
- * If you want to install R packages from CRAN that contains native extensions,
- * then you must also install R-dev.
- *
- * To avoid warnings about R.css when installing R extensions also install R-doc.
- *
- Executing busybox-1.37.0-r19.trigger
- Executing glib-2.84.4-r0.trigger
- OK: 458 MiB in 156 packages

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved batteries.3.10.0  (cached)
-> retrieved camlp-streams.5.0.1  (cached)
-> retrieved conf-r.1.0.0  (cached)
-> retrieved cpm.12.2.0  (cached)
-> retrieved cpu.2.0.0  (cached)
-> retrieved dolog.4.0.0  (cached)
-> installed conf-gnuplot.0.1
-> installed conf-autoconf.0.2
-> installed conf-r.1.0.0
-> retrieved dune.3.20.2  (cached)
-> retrieved minicli.5.0.2  (cached)
-> retrieved num.1.6  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved odnnr.2.0.0  (cached)
-> retrieved parany.12.2.2  (cached)
-> installed num.1.6
-> installed ocamlfind.1.9.8
-> installed dune.3.20.2
-> installed dolog.4.0.0
-> installed minicli.5.0.2
-> installed camlp-streams.5.0.1
-> installed cpu.2.0.0
-> installed parany.12.2.2
-> installed batteries.3.10.0
-> installed cpm.12.2.0
-> installed odnnr.2.0.0
Done.

<><> odnnr.2.0.0 installed successfully <><><><><><><><><><><><><><><><><><><><>
=> Please interact with R to install required dependencies in user-space:
   R
   install.packages('keras', repos='http://cran.r-project.org')
   library(keras)
   install_keras(method = 'conda', tensorflow = 'cpu')
# To update the current shell environment, run: eval $(opam env)
2025-11-10 12:57.16 ---> saved as "4c9f9fb10da7bd6c14bebad46c8ebdd300e1ecbe6a82edf3dfbadba964fdf344"
Job succeeded
2025-11-10 12:57.29: Job succeeded