(for PR #28621)

2025-09-30 18:48.49: New job: build handlebars-ml.0.1.2, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/28621/head (1e4cbaf8008aa5e4d13e76475487eb802bc2b185)
                              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/28621/head" && git reset --hard 1e4cbaf8
git fetch origin master
git merge --no-edit 4f9a23ad7559801de52ddc1916c3fb30ab18c401
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:opensuse-tumbleweed-ocaml-4.14@sha256:486eeb9774c6c08c3143e6ff94961be6e2a21a781c8ec891b4ceab39c5ce91cd
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 handlebars-ml.0.1.2 0.1.2
RUN opam reinstall handlebars-ml.0.1.2; \
    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" != 'handlebars-ml.0.1.2' && 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 18:48.49: Using cache hint "ocaml/opam:opensuse-tumbleweed-ocaml-4.14@sha256:486eeb9774c6c08c3143e6ff94961be6e2a21a781c8ec891b4ceab39c5ce91cd-handlebars-ml.0.1.2-1e4cbaf8008aa5e4d13e76475487eb802bc2b185"
2025-09-30 18:48.49: Using OBuilder spec:
((from ocaml/opam:opensuse-tumbleweed-ocaml-4.14@sha256:486eeb9774c6c08c3143e6ff94961be6e2a21a781c8ec891b4ceab39c5ce91cd)
 (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 handlebars-ml.0.1.2 0.1.2"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall handlebars-ml.0.1.2;\
             \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\" != 'handlebars-ml.0.1.2' && 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 18:48.49: Waiting for resource in pool OCluster
2025-09-30 18:48.49: Waiting for worker…
2025-09-30 18:48.50: Got resource from pool OCluster
Building on bremusa.ocamllabs.io
All commits already cached
HEAD is now at 4f9a23ad75 Merge pull request #28622 from Octachron/OCaml_5.4.0_rc1
Updating 4f9a23ad75..1e4cbaf800
Fast-forward
 packages/handlebars-ml/handlebars-ml.0.1.2/opam | 43 +++++++++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 packages/handlebars-ml/handlebars-ml.0.1.2/opam

(from ocaml/opam:opensuse-tumbleweed-ocaml-4.14@sha256:486eeb9774c6c08c3143e6ff94961be6e2a21a781c8ec891b4ceab39c5ce91cd)
2025-09-30 18:49.15 ---> using "6394a3419c7bf173b1d4be0cd67cf152c28a36832d0363c8501e32bd50078a33" 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-09-30 18:49.15 ---> using "beffbf7585680e896103dbc62a6b4882c03bb23bd445b20ca48a6e923dc5d6bf" from cache

/home/opam: (run (network host)
                 (shell "opam init --reinit --config .opamrc-sandbox -ni"))
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.

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.

Continue? [Y/n] y
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-09-30 18:49.15 ---> using "8bbec9d5ff4ae6cc094bca536a41f26e0db44600afac4527a5c7fe47622ec83f" 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=linux os-distribution=opensuse-tumbleweed os-version=20250911
# 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-09-30 18:49.15 ---> using "e0a70da18f0c64181ab3130511ee1d72971e37618b6ef1b35cf66f61c1fafa52" 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 18:49.15 ---> using "3ad79eb4b3744744631e9bef038d97e577a626e4879c20848a894bd8ace35a92" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-09-30 18:49.26 ---> saved as "f1a8566348060a1aab909b10c22b534fe140ad8bbc484422f3e49fd524b4261e"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-09-30 18:49.45 ---> saved as "3d1fa72913c4642dedb4284e187a07ba54e687597c4ec8cabd1a07917103d5c0"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "zypper" "--non-interactive" "refresh"
- Repository 'openSUSE-Tumbleweed-Update' is up to date.
- 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-09-30 18:49.59 ---> saved as "599f8d162e9173af7bf27268bf42ea68a5210707fd0290588652c27e15eefa59"

/home/opam: (run (shell "opam pin add -k version -yn handlebars-ml.0.1.2 0.1.2"))
handlebars-ml is now pinned to version 0.1.2
2025-09-30 18:50.00 ---> saved as "f34b00d8a43394f00d834c7765c0ab9a6ed69bc3d281baa9f8838729407775b1"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall handlebars-ml.0.1.2;\
                        \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\" != 'handlebars-ml.0.1.2' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
handlebars-ml.0.1.2 is not installed. Install it? [Y/n] y
The following actions will be performed:
=== install 11 packages
  - install cppo                1.8.0          [required by ppx_deriving]
  - install dune                3.20.2         [required by handlebars-ml]
  - install handlebars-ml       0.1.2 (pinned)
  - install ocaml-compiler-libs v0.12.4        [required by ppxlib]
  - install ocamlfind           1.9.8          [required by ppx_deriving]
  - install ppx_derivers        1.2.1          [required by ppx_deriving]
  - install ppx_deriving        6.1.1          [required by handlebars-ml]
  - install ppxlib              0.36.0         [required by ppx_deriving]
  - install sexplib0            v0.17.0        [required by ppxlib]
  - install stdlib-shims        0.3.0          [required by ppxlib]
  - install yojson              3.0.0          [required by handlebars-ml]

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved cppo.1.8.0  (cached)
-> retrieved dune.3.20.2  (cached)
-> retrieved handlebars-ml.0.1.2  (https://github.com/nikochiko/handlebars-ml/archive/refs/tags/0.1.2.tar.gz)
-> retrieved ocaml-compiler-libs.v0.12.4  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved ppx_derivers.1.2.1  (cached)
-> retrieved ppx_deriving.6.1.1  (cached)
-> retrieved ppxlib.0.36.0  (cached)
-> retrieved sexplib0.v0.17.0  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> retrieved yojson.3.0.0  (cached)
-> installed ocamlfind.1.9.8
-> installed dune.3.20.2
-> installed ppx_derivers.1.2.1
-> installed stdlib-shims.0.3.0
-> installed sexplib0.v0.17.0
-> installed cppo.1.8.0
-> installed ocaml-compiler-libs.v0.12.4
-> installed yojson.3.0.0
-> installed ppxlib.0.36.0
-> installed ppx_deriving.6.1.1
-> installed handlebars-ml.0.1.2
Done.
# To update the current shell environment, run: eval $(opam env)
2025-09-30 18:50.52 ---> saved as "82a53451eaaa56e7e9b75fba298db01c0fce5ff5cbc04d69f9862b9944518034"
Job succeeded
2025-09-30 18:50.58: Job succeeded