(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 opensuse-tumbleweed-ocaml-4.14/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/28262/head" && git reset --hard 27b93b8d
git fetch origin master
git merge --no-edit 8aad5f26860255f60c9aa23b310ac61aef78f1c8
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:opensuse-tumbleweed-ocaml-4.14@sha256:583e4e7acfac3107e978a91d69df8ce078c4bfdb6f5f5fbe83df100ae19fdd7f
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 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 "\"opensuse-tumbleweed\""; 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 "ocaml/opam:opensuse-tumbleweed-ocaml-4.14@sha256:583e4e7acfac3107e978a91d69df8ce078c4bfdb6f5f5fbe83df100ae19fdd7f-conf-bpftool.0.1.0-27b93b8d254212c1249540d74f600850023faef7"
2025-08-01 10:09.37: Using OBuilder spec:
((from ocaml/opam:opensuse-tumbleweed-ocaml-4.14@sha256:583e4e7acfac3107e978a91d69df8ce078c4bfdb6f5f5fbe83df100ae19fdd7f)
 (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 conf-bpftool.0.1.0 0.1.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (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 \"\\\"opensuse-tumbleweed\\\"\"; 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 13:59.51: Waiting for worker…
2025-08-01 14:01.24: Got resource from pool OCluster
Building on laodoke.caelum.ci.dev
All commits already cached
Updating files:  97% (17482/17936)
Updating files:  98% (17578/17936)
Updating files:  99% (17757/17936)
Updating files: 100% (17936/17936)
Updating files: 100% (17936/17936), done.
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 ocaml/opam:opensuse-tumbleweed-ocaml-4.14@sha256:583e4e7acfac3107e978a91d69df8ce078c4bfdb6f5f5fbe83df100ae19fdd7f)
2025-08-01 14:01.34 ---> using "db28928054df9ac935fb1388817ade58db5d7e63ccc3656f2c1b75a196cb4746" 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-08-01 14:01.34 ---> using "570451667f7d32d9d7bfb3d0a54832bf167215949c8b9cd6f760639e40a29161" 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-08-01 14:01.34 ---> using "e439764acf87cc0c29ffd69d1b8d5e77817d6127394ba85a6509ba1b48a3ca70" 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=opensuse-tumbleweed os-version=20250724
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 71
# repositories         1 (version-controlled)
# pinned               1 (version)
# current-switch       4.14
# invariant            ["ocaml-base-compiler" {= "4.14.2"}]
# compiler-packages    ocaml-base-compiler.4.14.2, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/4.14/lib/ocaml/stublibs:/home/opam/.opam/4.14/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       4.14.2
2025-08-01 14:01.34 ---> using "dbbbb7dbd5e4538fc75610315fc41988569a3b4026ace59fbf5dec49cd52fbbd" 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-08-01 14:01.34 ---> using "45ef9cb61f1527e319f5995c29d4fea6966c29f6a4cdb657dfc7d268c3052c2e" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-08-01 14:01.40 ---> saved as "eae28a7b53df0e098bfed8caf4e2ae1f1811b5175bba7c4104b8786162a3ef1c"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-08-01 14:01.59 ---> saved as "2b5ac5197cddcc5ed71fb1521e66c2aaa85c66f37e5858a2c7034fd348cd1e99"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "zypper" "--non-interactive" "refresh"
- Retrieving repository 'openSUSE-Tumbleweed-Update' metadata [..
- Looking for gpg keys in repository openSUSE-Tumbleweed-Update.
-   gpgkey=http://download.opensuse.org/update/tumbleweed/repodata/repomd.xml.key
- .....done]
- Building repository 'openSUSE-Tumbleweed-Update' cache [....done]
- Retrieving repository 'openSUSE-Tumbleweed-Non-Oss' metadata [...
- Looking for gpg keys in repository openSUSE-Tumbleweed-Non-Oss.
-   gpgkey=http://download.opensuse.org/tumbleweed/repo/non-oss/repodata/repomd.xml.key
- ....done]
- Building repository 'openSUSE-Tumbleweed-Non-Oss' cache [....done]
- Retrieving repository 'openSUSE-Tumbleweed-Oss' metadata [...
- Looking for gpg keys in repository openSUSE-Tumbleweed-Oss.
-   gpgkey=http://download.opensuse.org/tumbleweed/repo/oss/repodata/repomd.xml.key
- .........
- ...done]
- Building repository 'openSUSE-Tumbleweed-Oss' cache [..
- ..done]
- All repositories have been refreshed.
2025-08-01 14:02.08 ---> saved as "deb707c1106b8c992d88a706092cceff21e8be4386b3e1ac8839a6361edbf9c6"

/home/opam: (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 14:02.09 ---> saved as "63916a2cd1ae3eb148afa97076d56886295842bb7f71b9d38a3676bdd3abeb2a"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (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 \"\\\"opensuse-tumbleweed\\\"\"; 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"))
conf-bpftool.0.1.0 is not installed. Install it? [y/n] y
The following actions will be performed:
=== install 1 package
  - install conf-bpftool 0.1.0 (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed conf-bpftool.0.1.0
Done.
# To update the current shell environment, run: eval $(opam env)
2025-08-01 14:02.15 ---> saved as "80e42853a051c248086e462c1275cb2273d7a227b860418b10c4cb325f90b9f9"
Job succeeded
2025-08-01 14:02.22: Job succeeded