(for PR #28262)

2025-08-01 10:09.37: New job: build conf-bpftool.0.1.0, using opam 2.3
                              from https://github.com/ocaml/opam-repository.git#refs/pull/28262/head (27b93b8d254212c1249540d74f600850023faef7)
                              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/28262/head" && git reset --hard 27b93b8d
git fetch origin master
git merge --no-edit 8aad5f26860255f60c9aa23b310ac61aef78f1c8
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM macos-homebrew-ocaml-5.3
USER 1000:1000
RUN ln -f ~/local/bin/opam-2.3 ~/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 conf-bpftool.0.1.0 0.1.0
RUN opam reinstall conf-bpftool.0.1.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 "\"macos-homebrew\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'conf-bpftool.0.1.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-08-01 10:09.37: Using cache hint "macos-homebrew-ocaml-5.3-conf-bpftool.0.1.0-27b93b8d254212c1249540d74f600850023faef7"
2025-08-01 10:09.37: Using OBuilder spec:
((from macos-homebrew-ocaml-5.3)
 (user (uid 1000) (gid 1000))
 (run (shell "ln -f ~/local/bin/opam-2.3 ~/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 conf-bpftool.0.1.0 0.1.0"))
 (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
      (network host)
      (shell  "opam reinstall conf-bpftool.0.1.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 \"\\\"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\" != 'conf-bpftool.0.1.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-08-01 10:09.37: Waiting for resource in pool OCluster
2025-08-01 10:09.37: Waiting for worker…
2025-08-01 10:14.12: Got resource from pool OCluster
Building on m1-worker-03
Updating files:  66% (11940/17949)
Updating files:  67% (12026/17949)
Updating files:  68% (12206/17949)
Updating files:  69% (12385/17949)
Updating files:  70% (12565/17949)
Updating files:  71% (12744/17949)
Updating files:  72% (12924/17949)
Updating files:  73% (13103/17949)
Updating files:  74% (13283/17949)
Updating files:  75% (13462/17949)
Updating files:  76% (13642/17949)
Updating files:  77% (13821/17949)
Updating files:  78% (14001/17949)
Updating files:  79% (14180/17949)
Updating files:  80% (14360/17949)
Updating files:  81% (14539/17949)
Updating files:  82% (14719/17949)
Updating files:  83% (14898/17949)
Updating files:  84% (15078/17949)
Updating files:  85% (15257/17949)
Updating files:  86% (15437/17949)
Updating files:  87% (15616/17949)
Updating files:  88% (15796/17949)
Updating files:  89% (15975/17949)
Updating files:  90% (16155/17949)
Updating files:  91% (16334/17949)
Updating files:  92% (16514/17949)
Updating files:  93% (16693/17949)
Updating files:  94% (16873/17949)
Updating files:  95% (17052/17949)
Updating files:  96% (17232/17949)
Updating files:  97% (17411/17949)
Updating files:  98% (17591/17949)
Updating files:  99% (17770/17949)
Updating files: 100% (17949/17949)
Updating files: 100% (17949/17949), done.
HEAD is now at b84e13e209 [new release] dns (13 packages) (10.2.0)
HEAD is now at 8aad5f2686 Merge pull request #28272 from ocaml/mseri-patch-1
Merge made by the 'ort' strategy.
 packages/conf-bpftool/conf-bpftool.0.1.0/opam |  4 +++-
 packages/libbpf/libbpf.0.1.0/opam             | 11 ++++++-----
 2 files changed, 9 insertions(+), 6 deletions(-)

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

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

/: (run (shell "ln -f ~/local/bin/opam-2.3 ~/local/bin/opam"))
2025-08-01 10:14.24 ---> using "92705670bd1f6c37fa31d9a6dfa42537267d9f8e4fd7c2ec00237f6a7d22e661" from cache

/: (run (network host)
        (shell "opam init --reinit -ni"))
No configuration file found, using 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 /Users/mac1000/.opam from version 2.1 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 1 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=1 --global
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] no changes from git+file:///Users/mac1000/opam-repository
2025-08-01 10:14.24 ---> using "8bd5d340faa8ad1722e010203f7a4caea560522985969db275c7542dbb56b072" from cache

/: (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
# self-upgrade         no
# system               arch=arm64 os=macos os-distribution=homebrew os-version=15.5
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 7
# repositories         1 (version-controlled)
# pinned               0
# current-switch       5.3.0
# invariant            ["ocaml-base-compiler" {= "5.3.0"} | "ocaml-system" {= "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       /Users/mac1000/.opam/5.3.0/lib/ocaml/stublibs:/Users/mac1000/.opam/5.3.0/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       5.3.0
2025-08-01 10:14.24 ---> using "401f61792e35006b8b67fb65b6928feb197e69b5582a54739bb4533b10bc0056" from cache

/: (env OPAMDOWNLOADJOBS 1)

/: (env OPAMERRLOGLEN 0)

/: (env OPAMPRECISETRACKING 1)

/: (env CI true)

/: (env OPAM_REPO_CI true)

/: (run (shell "rm -rf opam-repository/"))
2025-08-01 10:14.25 ---> using "30332a7c2ac1a8ef60b47b6542aab2c86d16592008aab0760c9c2da8824ae6fb" from cache

/: (copy (src .) (dst opam-repository/))
2025-08-01 10:14.29 ---> saved as "6b070effbd4f51cccdc68b4e3f99b4d4da53deee1818f701131fda7dd6fa47d6"

/: (run (shell "opam repository set-url -k local --strict default opam-repository/"))
[default] Initialised
2025-08-01 10:14.38 ---> saved as "583d50ff7cde6aafecde25f8fc321972088ad99dfb8a592a6a1d867735f767b4"

/: (run (network host)
        (shell "opam update --depexts || true"))
+ /opt/homebrew/bin/brew "update"
- ==> Updating Homebrew...
- ==> Homebrew collects anonymous analytics.
- Read the analytics documentation (and how to opt-out) here:
-   https://docs.brew.sh/Analytics
- No analytics have been recorded yet (nor will be during this `brew` run).
- 
- ==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
-   https://github.com/Homebrew/brew#donations
- 
- Already up-to-date.
2025-08-01 10:14.53 ---> saved as "5e86ac853b1140a32342eb0ec2ec58fa8cd8c85cf023b0b7957d0e44200ab533"

/: (run (shell "opam pin add -k version -yn conf-bpftool.0.1.0 0.1.0"))
conf-bpftool is now pinned to version 0.1.0
2025-08-01 10:14.54 ---> saved as "d40fc3294b3d314eefa5701056978e6f86b7fe815acf3c712ef9c13428180308"

/: (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
        (network host)
        (shell  "opam reinstall conf-bpftool.0.1.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 \"\\\"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\" != 'conf-bpftool.0.1.0' && partial_fails=\"$partial_fails $pkg\";\
               \n        done;\
               \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
               \n        exit 1"))
[ERROR] conf-bpftool = 0.1.0: unmet availability conditions: 'os = "linux"'
"/usr/bin/env" "bash" "-c" "opam reinstall conf-bpftool.0.1.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 "\"macos-homebrew\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'conf-bpftool.0.1.0' && partial_fails="$partial_fails $pkg";
        done;
        test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}";
        exit 1" failed with exit status 5
2025-08-01 10:15.09: Job failed: Failed: Build failed
2025-08-01 10:15.09: Log analysis:
2025-08-01 10:15.09: >>> 
[ERROR] conf-bpftool = 0.1.0: unmet availability conditions: 'os = "linux"'
 (score = 100)
2025-08-01 10:15.09: [SKIP] Package not available