(for PR #28625)

2025-09-30 15:26.34: New job: build mirage-monitoring.0.0.8, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/28625/head (2937dccc38eabfb083a7503657ee134bc66d5eea)
                              on freebsd-14.2-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/28625/head" && git reset --hard 2937dccc
git fetch origin master
git merge --no-edit 4f9a23ad7559801de52ddc1916c3fb30ab18c401
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM freebsd-14.2-ocaml-5.3
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/local/bin/opam-dev /usr/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 --strict default opam-repository/
RUN opam update --depexts || true
RUN opam pin add -k version -yn mirage-monitoring.0.0.8 0.0.8
RUN opam reinstall mirage-monitoring.0.0.8; \
    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 "\"freebsd-14.2\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'mirage-monitoring.0.0.8' && 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-09-30 15:26.34: Using cache hint "freebsd-14.2-ocaml-5.3-mirage-monitoring.0.0.8-2937dccc38eabfb083a7503657ee134bc66d5eea"
2025-09-30 15:26.34: Using OBuilder spec:
((from freebsd-14.2-ocaml-5.3)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "sudo ln -f /usr/local/bin/opam-dev /usr/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 --strict default opam-repository/"))
 (run (network host)
      (shell "opam update --depexts || true"))
 (run (shell "opam pin add -k version -yn mirage-monitoring.0.0.8 0.0.8"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall mirage-monitoring.0.0.8;\
             \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 \"\\\"freebsd-14.2\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'mirage-monitoring.0.0.8' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-09-30 15:26.34: Waiting for resource in pool OCluster
2025-09-30 15:26.34: Waiting for worker…
2025-09-30 15:26.34: Got resource from pool OCluster
Building on rosemary
Updating files: 100% (18386/18386), done.
HEAD is now at baa0eeb009 [new release] icalendar (0.1.12)
HEAD is now at 4f9a23ad75 Merge pull request #28622 from Octachron/OCaml_5.4.0_rc1
Updating 4f9a23ad75..2937dccc38
Fast-forward
 .../mirage-monitoring/mirage-monitoring.0.0.8/opam | 46 ++++++++++++++++++++++
 1 file changed, 46 insertions(+)
 create mode 100644 packages/mirage-monitoring/mirage-monitoring.0.0.8/opam

(from freebsd-14.2-ocaml-5.3)
2025-09-30 15:25.48 ---> using "47c9a03b962be450225081ed69acde1f5c6dadb6d1106d9b1a8b4fd61c2defa6" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/local/bin/opam-dev /usr/local/bin/opam"))
2025-09-30 15:25.48 ---> using "7b24029fbcc6efb52852a00476d6ae3e1638f22729cc54d8bdcb0cd7c773256d" from cache

/home/opam: (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 /home/opam/.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:///home/opam/opam-repository
2025-09-30 15:25.49 ---> using "98698f6d610685a43f9f317cbce75aaee821e3598e864f37e08f8fee78e2763a" 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.4.1
# self-upgrade         no
# system               arch=x86_64 os=freebsd os-distribution=freebsd os-version=1402000
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 39
# 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       /home/opam/.opam/5.3.0/lib/ocaml/stublibs:/home/opam/.opam/5.3.0/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       5.3.0
2025-09-30 15:25.49 ---> using "c58d35d332d7ebc8b97d181e9eee29c9134ac91d4e8ed71f571ac7cdb6c6ef03" 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-09-30 15:25.49 ---> using "1d42ce616db407e13ba41bac0993529451b94bca76eb8cf56a6ffd92c99ef48c" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-09-30 15:25.59 ---> saved as "13368a0a50098877a264d198753b9d27518665f994b9dbd018fb0270fe2dc368"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-09-30 15:26.12 ---> saved as "c809ff6fceb8f4737755e8b2d63594cd335b0b3bacd0b81126bd921e0d4ed8f9"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
[WARNING] Unknown update command for bsd, skipping system update
2025-09-30 15:26.13 ---> saved as "abeda0ed8d5d9b05e7a8b394f11be194e7d08809f3a6c29821dca4bafdc37268"

/home/opam: (run (shell "opam pin add -k version -yn mirage-monitoring.0.0.8 0.0.8"))
mirage-monitoring is now pinned to version 0.0.8
2025-09-30 15:26.14 ---> saved as "028d150927cf5dcbab3425dbd3c27378d7fa4d5cb7ccf1501049efa7774566db"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall mirage-monitoring.0.0.8;\
                        \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 \"\\\"freebsd-14.2\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'mirage-monitoring.0.0.8' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
mirage-monitoring.0.0.8 is not installed. Install it? [Y/n] y
  * No agreement on the version of ocaml-base-compiler:
    - (invariant) → ocaml-base-compiler = 5.3.0
    - mirage-monitoring >= 0.0.8 → memtrace-mirage → ocaml < 5 → ocaml-base-compiler < 4.14.3~
    You can temporarily relax the switch invariant with `--update-invariant'
  * Incompatible packages:
    - (invariant) → ocaml-base-compiler = 5.3.0
    - mirage-monitoring >= 0.0.8 → memtrace-mirage → ocaml < 5 → ocaml-variants
  * Missing dependency:
    - mirage-monitoring >= 0.0.8 → memtrace-mirage → ocaml < 5 → ocaml-variants → ocaml-beta
    unmet availability conditions: 'enable-ocaml-beta-repository'
  * Missing dependency:
    - mirage-monitoring >= 0.0.8 → memtrace-mirage → ocaml < 5 → ocaml-variants → system-msvc
    unmet availability conditions: 'os = "win32"'

No solution found, exiting
jail: /usr/bin/su -l opam -c cd '/home/opam' && env OPAM_REPO_CI='true' CI='true' OPAMPRECISETRACKING='1' OPAMERRLOGLEN='0' OPAMDOWNLOADJOBS='1' '/usr/bin/env' 'bash' '-c' 'opam reinstall mirage-monitoring.0.0.8;
        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 "\"freebsd-14.2\""; then
            echo "A package failed and has been disabled for CI using the '\''x-ci-accept-failures'\'' field.";
          fi;
          test "$pkg" != '\''mirage-monitoring.0.0.8'\'' && partial_fails="$partial_fails $pkg";
        done;
        test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}";
        exit 1': failed
"jail" "-c" "name=obuilder_853_41108" "mount.fstab=/tmp/obuilder-jail-85091a/fstab" "mount.devfs" "path=/obuilder/result/09a13db67a10bea43d0593db75f6d01b48344b2d48de68b04cd058c5642883cd/rootfs" "host=inherit" "ip6=inherit" "ip4=inherit" "command=/usr/bin/su" "-l" "opam" "-c" "cd '/home/opam' && env OPAM_REPO_CI='true' CI='true' OPAMPRECISETRACKING='1' OPAMERRLOGLEN='0' OPAMDOWNLOADJOBS='1' '/usr/bin/env' 'bash' '-c' 'opam reinstall mirage-monitoring.0.0.8;
        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 "\"freebsd-14.2\""; then
            echo "A package failed and has been disabled for CI using the '\''x-ci-accept-failures'\'' field.";
          fi;
          test "$pkg" != '\''mirage-monitoring.0.0.8'\'' && partial_fails="$partial_fails $pkg";
        done;
        test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}";
        exit 1'" failed with exit status 1
2025-09-30 15:27.20: Job failed: Failed: Build failed
2025-09-30 15:27.20: Log analysis:
2025-09-30 15:27.20: >>> 
No solution found, exiting
 (score = 100)
2025-09-30 15:27.20: [SKIP] Package not available