(for PR #23309)

2025-01-10 07:43.59: New job: build odnnr.2.0.3, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/23309/head (6b62b33f94fa0d7f64aa4da5cb0c75e78fa3b3ee)
                              on macos-homebrew-ocaml-5.3/arm64

To reproduce locally:

cd $(mktemp -d)
git clone --recursive "https://github.com/ocaml/opam-repository.git" && cd "opam-repository" && git fetch origin "refs/pull/23309/head" && git reset --hard 6b62b33f
git fetch origin master
git merge --no-edit 67e940587b8aca227f511e1943bcd31eabe6b1db
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM macos-homebrew-ocaml-5.3
USER 1000:1000
RUN ln -f ~/local/bin/opam-dev ~/local/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 -k local --strict default opam-repository/
RUN opam update --depexts || true
RUN opam pin add -k version -yn odnnr.2.0.3 2.0.3
RUN opam reinstall odnnr.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 "\"macos-homebrew\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'odnnr.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 .

2025-01-10 07:43.59: Using cache hint "macos-homebrew-ocaml-5.3-odnnr.2.0.3-6b62b33f94fa0d7f64aa4da5cb0c75e78fa3b3ee"
2025-01-10 07:43.59: Using OBuilder spec:
((from macos-homebrew-ocaml-5.3)
 (user (uid 1000) (gid 1000))
 (run (shell "ln -f ~/local/bin/opam-dev ~/local/bin/opam"))
 (run (network host)
      (shell "opam init --reinit -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 -k local --strict default opam-repository/"))
 (run (network host)
      (shell "opam update --depexts || true"))
 (run (shell "opam pin add -k version -yn odnnr.2.0.3 2.0.3"))
 (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
      (network host)
      (shell  "opam reinstall odnnr.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 \"\\\"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\" != 'odnnr.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"))
)

2025-01-10 07:43.59: Connecting to build cluster…
2025-01-10 07:43.59: Waiting for resource in pool OCluster
2025-01-10 07:44.40: Waiting for worker…
2025-01-10 07:49.09: Got resource from pool OCluster
Building on m1-worker-04
All commits already cached
Updating files:  43% (12453/28896)
Updating files:  44% (12715/28896)
Updating files:  45% (13004/28896)
Updating files:  46% (13293/28896)
Updating files:  47% (13582/28896)
Updating files:  48% (13871/28896)
Updating files:  49% (14160/28896)
Updating files:  50% (14448/28896)
Updating files:  51% (14737/28896)
Updating files:  52% (15026/28896)
Updating files:  53% (15315/28896)
Updating files:  54% (15604/28896)
Updating files:  55% (15893/28896)
Updating files:  56% (16182/28896)
Updating files:  57% (16471/28896)
Updating files:  58% (16760/28896)
Updating files:  59% (17049/28896)
Updating files:  60% (17338/28896)
Updating files:  61% (17627/28896)
Updating files:  62% (17916/28896)
Updating files:  63% (18205/28896)
Updating files:  64% (18494/28896)
Updating files:  65% (18783/28896)
Updating files:  66% (19072/28896)
Updating files:  67% (19361/28896)
Updating files:  68% (19650/28896)
Updating files:  69% (19939/28896)
Updating files:  70% (20228/28896)
Updating files:  71% (20517/28896)
Updating files:  72% (20806/28896)
Updating files:  73% (21095/28896)
Updating files:  74% (21384/28896)
Updating files:  75% (21672/28896)
Updating files:  75% (21741/28896)
Updating files:  76% (21961/28896)
Updating files:  77% (22250/28896)
Updating files:  78% (22539/28896)
Updating files:  79% (22828/28896)
Updating files:  80% (23117/28896)
Updating files:  81% (23406/28896)
Updating files:  82% (23695/28896)
Updating files:  83% (23984/28896)
Updating files:  84% (24273/28896)
Updating files:  85% (24562/28896)
Updating files:  86% (24851/28896)
Updating files:  87% (25140/28896)
Updating files:  88% (25429/28896)
Updating files:  89% (25718/28896)
Updating files:  90% (26007/28896)
Updating files:  91% (26296/28896)
Updating files:  92% (26585/28896)
Updating files:  93% (26874/28896)
Updating files:  94% (27163/28896)
Updating files:  95% (27452/28896)
Updating files:  96% (27741/28896)
Updating files:  97% (28030/28896)
Updating files:  98% (28319/28896)
Updating files:  99% (28608/28896)
Updating files: 100% (28896/28896)
Updating files: 100% (28896/28896), done.
HEAD is now at 67e940587b Merge pull request #27236 from kit-ty-kate/opam-publish-mccs.1.1-19
Merge made by the 'ort' strategy.
 packages/odnnr/odnnr.2.0.3/files/install_keras.r |  8 +++++
 packages/odnnr/odnnr.2.0.3/opam                  | 46 ++++++++++++++++++++++++
 2 files changed, 54 insertions(+)
 create mode 100644 packages/odnnr/odnnr.2.0.3/files/install_keras.r
 create mode 100644 packages/odnnr/odnnr.2.0.3/opam

(from macos-homebrew-ocaml-5.3)
2025-01-10 07:49.13 ---> using "6ee950b55569b1a3f8a7953dc679318bf303d3a70ac7d49901c0ac2ca3805d7c" from cache

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

/: (run (shell "ln -f ~/local/bin/opam-dev ~/local/bin/opam"))
ln: /Users/mac1000/local/bin/opam-dev: No such file or directory
"/usr/bin/env" "bash" "-c" "ln -f ~/local/bin/opam-dev ~/local/bin/opam" failed with exit status 1
2025-01-10 07:49.22: Job failed: Failed: Build failed