(for PR #19229)

2024-04-17 19:21.16: New job: build conf-llvm.9.0.0, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/19229/head (e200798bccb6e55ca7626dbc7b08164746413023)
                              on opensuse-15.5-ocaml-5.1/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/19229/head" && git reset --hard e200798b
git fetch origin master
git merge --no-edit f089d8564db935c703bea70a4b3d8335ffa1bef3
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:opensuse-15.5-ocaml-5.1@sha256:fa06263ee3e6482eca4215bc6f2388aba42ee6a6b19a07a4cce19f54b3f5ce48
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
ENV OPAMCRITERIA="-removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed"
ENV OPAMFIXUPCRITERIA="-removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed"
ENV OPAMUPGRADECRITERIA="-removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed"
RUN opam pin add -k version -yn conf-llvm.9.0.0 9.0.0
RUN opam reinstall conf-llvm.9.0.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-15.5\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'conf-llvm.9.0.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 .

2024-04-17 19:21.16: Using cache hint "ocaml/opam:opensuse-15.5-ocaml-5.1@sha256:fa06263ee3e6482eca4215bc6f2388aba42ee6a6b19a07a4cce19f54b3f5ce48-conf-llvm.9.0.0-e200798bccb6e55ca7626dbc7b08164746413023"
2024-04-17 19:21.16: Using OBuilder spec:
((from ocaml/opam:opensuse-15.5-ocaml-5.1@sha256:fa06263ee3e6482eca4215bc6f2388aba42ee6a6b19a07a4cce19f54b3f5ce48)
 (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"))
 (env OPAMCRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)
 (env OPAMFIXUPCRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)
 (env OPAMUPGRADECRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)
 (run (shell "opam pin add -k version -yn conf-llvm.9.0.0 9.0.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall conf-llvm.9.0.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-15.5\\\"\"; 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-llvm.9.0.0' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2024-04-17 19:21.16: Waiting for resource in pool OCluster
2024-04-17 19:28.43: Waiting for worker…
2024-04-17 19:30.46: Got resource from pool OCluster
Building on asteria.caelum.ci.dev
All commits already cached
Updating files:  85% (28563/33522)
Updating files:  86% (28829/33522)
Updating files:  87% (29165/33522)
Updating files:  88% (29500/33522)
Updating files:  89% (29835/33522)
Updating files:  90% (30170/33522)
Updating files:  91% (30506/33522)
Updating files:  92% (30841/33522)
Updating files:  93% (31176/33522)
Updating files:  94% (31511/33522)
Updating files:  95% (31846/33522)
Updating files:  96% (32182/33522)
Updating files:  97% (32517/33522)
Updating files:  98% (32852/33522)
Updating files:  99% (33187/33522)
Updating files: 100% (33522/33522)
Updating files: 100% (33522/33522), done.
HEAD is now at f089d8564d Merge pull request #25672 from gborough/opam-publish-fred.0.1.0
Auto-merging packages/conf-llvm/conf-llvm.10.0.0/opam
Auto-merging packages/conf-llvm/conf-llvm.11.0.0/opam
Auto-merging packages/conf-llvm/conf-llvm.3.8/opam
Auto-merging packages/conf-llvm/conf-llvm.3.9/opam
Auto-merging packages/conf-llvm/conf-llvm.4.0.0/opam
Auto-merging packages/conf-llvm/conf-llvm.5.0.0/opam
Auto-merging packages/conf-llvm/conf-llvm.6.0.0/opam
Auto-merging packages/conf-llvm/conf-llvm.7.0.0/opam
Auto-merging packages/conf-llvm/conf-llvm.8.0.0/opam
Auto-merging packages/conf-llvm/conf-llvm.9.0.0/opam
Merge made by the 'ort' strategy.
 packages/conf-llvm/conf-llvm.10.0.0/files/configure.sh | 2 +-
 packages/conf-llvm/conf-llvm.10.0.0/opam               | 2 +-
 packages/conf-llvm/conf-llvm.11.0.0/files/configure.sh | 2 +-
 packages/conf-llvm/conf-llvm.11.0.0/opam               | 2 +-
 packages/conf-llvm/conf-llvm.3.4/files/configure       | 2 +-
 packages/conf-llvm/conf-llvm.3.4/opam                  | 2 +-
 packages/conf-llvm/conf-llvm.3.8/files/configure.sh    | 2 +-
 packages/conf-llvm/conf-llvm.3.8/opam                  | 2 +-
 packages/conf-llvm/conf-llvm.3.9/files/configure.sh    | 2 +-
 packages/conf-llvm/conf-llvm.3.9/opam                  | 2 +-
 packages/conf-llvm/conf-llvm.4.0.0/files/configure.sh  | 2 +-
 packages/conf-llvm/conf-llvm.4.0.0/opam                | 2 +-
 packages/conf-llvm/conf-llvm.5.0.0/files/configure.sh  | 2 +-
 packages/conf-llvm/conf-llvm.5.0.0/opam                | 2 +-
 packages/conf-llvm/conf-llvm.6.0.0/files/configure.sh  | 2 +-
 packages/conf-llvm/conf-llvm.6.0.0/opam                | 2 +-
 packages/conf-llvm/conf-llvm.7.0.0/files/configure.sh  | 2 +-
 packages/conf-llvm/conf-llvm.7.0.0/opam                | 2 +-
 packages/conf-llvm/conf-llvm.8.0.0/files/configure.sh  | 2 +-
 packages/conf-llvm/conf-llvm.8.0.0/opam                | 2 +-
 packages/conf-llvm/conf-llvm.9.0.0/files/configure.sh  | 2 +-
 packages/conf-llvm/conf-llvm.9.0.0/opam                | 2 +-
 22 files changed, 22 insertions(+), 22 deletions(-)

(from ocaml/opam:opensuse-15.5-ocaml-5.1@sha256:fa06263ee3e6482eca4215bc6f2388aba42ee6a6b19a07a4cce19f54b3f5ce48)
2024-04-17 19:31.32 ---> using "3bfea9fe35bbc259aa1bc25203a01440eb802f9a3843f863dbbc5d1d74e90a0a" 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-04-17 19:31.32 ---> using "b882588ad9873866c37c3046db5c2bed1b2465e8dca8e1aae8cf0eb3d8fc2269" 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~alpha, 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 39 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=39 --global
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
2024-04-17 19:31.32 ---> using "978d8023c2febe1e0a92c3ca3b585e60e88c5471b547ab8897cedae0d06cc472" from cache

/home/opam: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-101-generic
The OCaml toplevel, version 5.1.1
2.2.0~beta3~dev
2024-04-17 19:31.32 ---> using "0b737c75eb77947b6454e6d14c76e22b5b352a715b0de93fcd64b37876528d7e" 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-04-17 19:31.32 ---> using "e2f66bd610c603c2e55cb9deaa2eff9b59c0a24eb7929a172dc69b40cdc2c222" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2024-04-17 19:31.49 ---> saved as "7826530258c8e15b8682ddb7877372e91baa0dbb4eac2137ba023e007ea5fd07"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2024-04-17 19:32.29 ---> saved as "cbcd2d3ef4b15104e145844bf84677fcd2db517f77ed5392a738689ed1e14af4"

/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-04-17 19:32.50 ---> saved as "e064fe9ed2a3380170438cbe3b49133ab224f3d269696c5475bc952957702d03"

/home/opam: (env OPAMCRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)

/home/opam: (env OPAMFIXUPCRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)

/home/opam: (env OPAMUPGRADECRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)

/home/opam: (run (shell "opam pin add -k version -yn conf-llvm.9.0.0 9.0.0"))
conf-llvm is now pinned to version 9.0.0
2024-04-17 19:32.51 ---> saved as "ab70d95b966ae171eba931a4ba57bf444dbdcc4bcb99687cf5b25ea468fca055"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall conf-llvm.9.0.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-15.5\\\"\"; 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-llvm.9.0.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-llvm.9.0.0 is not installed. Install it? [y/n] y
The following actions will be performed:
=== install 2 packages
  - install conf-bash 1              [required by conf-llvm]
  - install conf-llvm 9.0.0 (pinned)

The following system packages will first need to be installed:
    llvm9-devel

<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>

opam believes some required external dependencies are missing. opam can:
> 1. Run zypper to install them (may need root/sudo access)
  2. Display the recommended zypper command and wait while you run it manually (e.g. in another terminal)
  3. Continue anyway, and, upon success, permanently register that this external dependency is present, but not detectable
  4. Abort the installation

[1/2/3/4] 1

+ /usr/bin/sudo "zypper" "--non-interactive" "install" "llvm9-devel"
- Loading repository data...
- Reading installed packages...
- Resolving package dependencies...
- 
- The following 11 NEW packages are going to be installed:
-   libLLVM9 libLTO9 libedit0 libpython3_6m1_0 llvm9 llvm9-LTO-devel llvm9-devel llvm9-gold llvm9-polly llvm9-polly-devel python3-base
- 
- 11 new packages to install.
- Overall download size: 34.4 MiB. Already cached: 0 B. After the operation, additional 148.9 MiB will be used.
- Continue? [y/n/v/...? shows all options] (y): y
- Retrieving: libedit0-3.1.snap20150325-2.12.x86_64 (Main Repository) (1/11),  94.3 KiB    
- Retrieving: libedit0-3.1.snap20150325-2.12.x86_64.rpm [..done]
- Retrieving: llvm9-polly-9.0.1-150200.3.6.1.x86_64 (Main Repository) (2/11),   1.4 MiB    
- Retrieving: llvm9-polly-9.0.1-150200.3.6.1.x86_64.rpm [.....done (5.2 MiB/s)]
- Retrieving: libLLVM9-9.0.1-150200.3.6.1.x86_64 (Main Repository) (3/11),  16.4 MiB    
- Retrieving: libLLVM9-9.0.1-150200.3.6.1.x86_64.rpm [...
- ......done (22.8 MiB/s)]
- Retrieving: llvm9-polly-devel-9.0.1-150200.3.6.1.x86_64 (Main Repository) (4/11), 238.5 KiB    
- Retrieving: llvm9-polly-devel-9.0.1-150200.3.6.1.x86_64.rpm [...done (1.6 MiB/s)]
- Retrieving: llvm9-gold-9.0.1-150200.3.6.1.x86_64 (Main Repository) (5/11),  91.3 KiB    
- Retrieving: llvm9-gold-9.0.1-150200.3.6.1.x86_64.rpm [..
- done]
- Retrieving: libLTO9-9.0.1-150200.3.6.1.x86_64 (Main Repository) (6/11),  79.3 KiB    
- Retrieving: libLTO9-9.0.1-150200.3.6.1.x86_64.rpm [...done (271.1 KiB/s)]
- Retrieving: python3-base-3.6.15-150300.10.60.1.x86_64 (Update repository with updates from SUSE Linux Enterprise 15) (7/11),   7.5 MiB    
- Retrieving: python3-base-3.6.15-150300.10.60.1.x86_64.rpm [......
- .........
- ..........
- .....done (2.4 MiB/s)]
- Retrieving: libpython3_6m1_0-3.6.15-150300.10.60.1.x86_64 (Update repository with updates from SUSE Linux Enterprise 15) (8/11), 871.6 KiB    
- Retrieving: libpython3_6m1_0-3.6.15-150300.10.60.1.x86_64.rpm [...
- done (3.5 MiB/s)]
- Retrieving: llvm9-9.0.1-150200.3.6.1.x86_64 (Main Repository) (9/11),   5.1 MiB    
- Retrieving: llvm9-9.0.1-150200.3.6.1.x86_64.rpm [.......done (9.9 MiB/s)]
- Retrieving: llvm9-LTO-devel-9.0.1-150200.3.6.1.x86_64 (Main Repository) (10/11),  49.2 KiB    
- Retrieving: llvm9-LTO-devel-9.0.1-150200.3.6.1.x86_64.rpm [...done (264.5 KiB/s)]
- Retrieving: llvm9-devel-9.0.1-150200.3.6.1.x86_64 (Main Repository) (11/11),   2.6 MiB    
- Retrieving: llvm9-devel-9.0.1-150200.3.6.1.x86_64.rpm [.
- ....done (6.9 MiB/s)]
- 
- Checking for file conflicts: [...done]
- ( 1/11) Installing: libedit0-3.1.snap20150325-2.12.x86_64 [..done]
- ( 2/11) Installing: llvm9-polly-9.0.1-150200.3.6.1.x86_64 [...done]
- ( 3/11) Installing: libLLVM9-9.0.1-150200.3.6.1.x86_64 [...
- ..........
- ...done]
- ( 4/11) Installing: llvm9-polly-devel-9.0.1-150200.3.6.1.x86_64 [..done]
- ( 5/11) Installing: llvm9-gold-9.0.1-150200.3.6.1.x86_64 [..done]
- ( 6/11) Installing: libLTO9-9.0.1-150200.3.6.1.x86_64 [..done]
- ( 7/11) Installing: python3-base-3.6.15-150300.10.60.1.x86_64 [....
- .....done]
- ( 8/11) Installing: libpython3_6m1_0-3.6.15-150300.10.60.1.x86_64 [..done]
- ( 9/11) Installing: llvm9-9.0.1-150200.3.6.1.x86_64 [.
- .....
- update-alternatives: using /usr/bin/llvm-ar-9.0.1 to provide /usr/bin/llvm-ar (llvm-ar) in auto mode
- done]
- (10/11) Installing: llvm9-LTO-devel-9.0.1-150200.3.6.1.x86_64 [..done]
- (11/11) Installing: llvm9-devel-9.0.1-150200.3.6.1.x86_64 [....done]

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed conf-bash.1
-> installed conf-llvm.9.0.0
Done.
# Run eval $(opam env) to update the current shell environment
2024-04-17 19:33.22 ---> saved as "597fc6d08ca1796ec63755390e5b8e31ba95e2519f7b16889897f9ecabada415"
Job succeeded
2024-04-17 19:33.45: Job succeeded