(for PR #25002)

2024-09-03 20:16.44: New job: build llvm.16.0.6+nnp+fix-homebrew, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/25002/head (4d9fad21a5bc93fd3b1cd19733ce12ee7f259505)
                              on opensuse-15.6-ocaml-5.2/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/25002/head" && git reset --hard 4d9fad21
git fetch origin master
git merge --no-edit 5ced20d683d7ac5cb4ba6b9468b14458fb69a213
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:opensuse-15.6-ocaml-5.2@sha256:aae5b87d533a51140ad9b1f39ff99fa81880fa2ad9dc8f2b078d254f7d95c3d3
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-dev /usr/bin/opam
RUN opam init --reinit -ni
RUN uname -rs && opam exec -- ocaml -version && opam --version
ENV OPAMDOWNLOADJOBS="1"
ENV OPAMERRLOGLEN="0"
ENV OPAMSOLVERTIMEOUT="500"
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 llvm.16.0.6+nnp+fix-homebrew 16.0.6+nnp+fix-homebrew
RUN opam reinstall llvm.16.0.6+nnp+fix-homebrew; \
    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-15.6\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'llvm.16.0.6+nnp+fix-homebrew' && 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 .

2024-09-03 20:16.44: Using cache hint "ocaml/opam:opensuse-15.6-ocaml-5.2@sha256:aae5b87d533a51140ad9b1f39ff99fa81880fa2ad9dc8f2b078d254f7d95c3d3-llvm.16.0.6+nnp+fix-homebrew-4d9fad21a5bc93fd3b1cd19733ce12ee7f259505"
2024-09-03 20:16.44: Using OBuilder spec:
((from ocaml/opam:opensuse-15.6-ocaml-5.2@sha256:aae5b87d533a51140ad9b1f39ff99fa81880fa2ad9dc8f2b078d254f7d95c3d3)
 (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 "uname -rs && opam exec -- ocaml -version && opam --version"))
 (env OPAMDOWNLOADJOBS 1)
 (env OPAMERRLOGLEN 0)
 (env OPAMSOLVERTIMEOUT 500)
 (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 llvm.16.0.6+nnp+fix-homebrew 16.0.6+nnp+fix-homebrew"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall llvm.16.0.6+nnp+fix-homebrew;\
             \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-15.6\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'llvm.16.0.6+nnp+fix-homebrew' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2024-09-03 20:16.44: Waiting for resource in pool OCluster
2024-09-03 20:25.26: Waiting for worker…
2024-09-03 20:25.46: Got resource from pool OCluster
Building on x86-bm-c14.sw.ocaml.org
All commits already cached
Updating files:  82% (26301/32068)
Updating files:  83% (26617/32068)
Updating files:  84% (26938/32068)
Updating files:  85% (27258/32068)
Updating files:  86% (27579/32068)
Updating files:  87% (27900/32068)
Updating files:  88% (28220/32068)
Updating files:  89% (28541/32068)
Updating files:  90% (28862/32068)
Updating files:  91% (29182/32068)
Updating files:  92% (29503/32068)
Updating files:  93% (29824/32068)
Updating files:  94% (30144/32068)
Updating files:  95% (30465/32068)
Updating files:  96% (30786/32068)
Updating files:  97% (31106/32068)
Updating files:  98% (31427/32068)
Updating files:  99% (31748/32068)
Updating files: 100% (32068/32068)
Updating files: 100% (32068/32068), done.
HEAD is now at 5ced20d683 Merge pull request #26442 from jchavarri/release-melange-json-1.3.0
Merge made by the 'ort' strategy.
 packages/llvm/llvm.16.0.6+nnp+fix-homebrew/opam | 37 +++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 packages/llvm/llvm.16.0.6+nnp+fix-homebrew/opam

(from ocaml/opam:opensuse-15.6-ocaml-5.2@sha256:aae5b87d533a51140ad9b1f39ff99fa81880fa2ad9dc8f2b078d254f7d95c3d3)
2024-09-03 20:25.55 ---> using "4df735824e7ae1db2b611ef392a4a1a0304b26a8d028f752710489b1968c51b3" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2024-09-03 20:25.55 ---> using "3c95589fa2b0afb0db720ef33f86e1de86860b0d7bb00e50d95e65fc3a093efe" 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
[NOTE] The 'jobs' option was reset, its value was 255 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=255 --global
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
2024-09-03 20:25.55 ---> using "e1569eeb4d8dffb9119ce69ec8b978ce35259dfe15f5d5a7347d90e1cd677593" from cache

/home/opam: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-119-generic
The OCaml toplevel, version 5.2.0
2.3.0~alpha~dev
2024-09-03 20:25.55 ---> using "18e0756a4df3354870fc86fa2869d7c11d1c1bf58ed320687804e2d657a1a3e5" from cache

/home/opam: (env OPAMDOWNLOADJOBS 1)

/home/opam: (env OPAMERRLOGLEN 0)

/home/opam: (env OPAMSOLVERTIMEOUT 500)

/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/"))
2024-09-03 20:25.55 ---> using "d0f955d91f0c6db80ab426f6c72b63c2959f9317eb3c9d2fa3ccd787acba1b02" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2024-09-03 20:26.05 ---> saved as "57c90e242036041d3c4b01af4c17a4369f4b3a9c301a505e827489d85911e081"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2024-09-03 20:26.53 ---> saved as "ec5001ec868f94948e07e837c94c091dd75f6516e461b97166ebce1c4023d208"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "zypper" "--non-interactive" "refresh"
- Retrieving repository 'Update repository of openSUSE Backports' metadata [...
- ........done]
- Building repository 'Update repository of openSUSE Backports' cache [...done]
- Repository 'Non-OSS Repository' is up to date.
- Repository 'Main Repository' is up to date.
- Retrieving repository 'Update repository with updates from SUSE Linux Enterprise 15' metadata [.......
- ........
- ....done]
- Building repository 'Update repository with updates from SUSE Linux Enterprise 15' cache [..
- ..done]
- Repository 'Main Update Repository' is up to date.
- Retrieving repository 'Update Repository (Non-Oss)' metadata [..
- ......done]
- Building repository 'Update Repository (Non-Oss)' cache [...done]
- All repositories have been refreshed.
2024-09-03 20:27.05 ---> saved as "8529cedc6198738bed5c520a498fb801de81b8b88e56559073c920e581027f32"

/home/opam: (run (shell "opam pin add -k version -yn llvm.16.0.6+nnp+fix-homebrew 16.0.6+nnp+fix-homebrew"))
llvm is now pinned to version 16.0.6+nnp+fix-homebrew
2024-09-03 20:27.06 ---> saved as "5b27bdaaff20243cbd7206096d8034dc1c3041649d71d71fa69c30b3470eba13"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall llvm.16.0.6+nnp+fix-homebrew;\
                        \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-15.6\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'llvm.16.0.6+nnp+fix-homebrew' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
llvm.16.0.6+nnp+fix-homebrew is not installed. Install it? [y/n] y
  * Missing dependency:
    - conf-llvm = 16
    depends on the unavailable system package 'llvm16-devel'. Use `--no-depexts' to attempt installation anyway, or it is possible that a depext package name in the opam file is incorrect.

No solution found, exiting
"/usr/bin/env" "bash" "-c" "opam reinstall llvm.16.0.6+nnp+fix-homebrew;
        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-15.6\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'llvm.16.0.6+nnp+fix-homebrew' && partial_fails="$partial_fails $pkg";
        done;
        test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}";
        exit 1" failed with exit status 20
2024-09-03 20:27.59: Job failed: Failed: Build failed
2024-09-03 20:27.59: Log analysis:
2024-09-03 20:27.59: >>> 
No solution found, exiting
 (score = 100)
2024-09-03 20:27.59: [SKIP] Package not available