(for PR #27169)

2025-01-20 11:54.11: New job: build conf-allegro5.1, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/27169/head (e573944dde8fbb1db612e0257e42584b0daf41c3)
                              on opensuse-15.6-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/27169/head" && git reset --hard e573944d
git fetch origin master
git merge --no-edit 4d67ef48e6a36b5ba83d930da14d544d46025751
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:opensuse-15.6-ocaml-4.14@sha256:0e031579d661d1dd02de6154f15fe62bb64f533317d730b0801613833e39f224
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 conf-allegro5.1 1
RUN opam reinstall conf-allegro5.1; \
    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" != 'conf-allegro5.1' && 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-01-20 11:54.11: Using cache hint "ocaml/opam:opensuse-15.6-ocaml-4.14@sha256:0e031579d661d1dd02de6154f15fe62bb64f533317d730b0801613833e39f224-conf-allegro5.1-e573944dde8fbb1db612e0257e42584b0daf41c3"
2025-01-20 11:54.11: Using OBuilder spec:
((from ocaml/opam:opensuse-15.6-ocaml-4.14@sha256:0e031579d661d1dd02de6154f15fe62bb64f533317d730b0801613833e39f224)
 (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 conf-allegro5.1 1"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall conf-allegro5.1;\
             \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\" != 'conf-allegro5.1' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-01-20 11:54.11: Waiting for resource in pool OCluster
2025-01-20 11:54.12: Waiting for worker…
2025-01-20 11:54.15: Got resource from pool OCluster
Building on asteria.caelum.ci.dev
All commits already cached
Updating files:  77% (22307/28952)
Updating files:  78% (22583/28952)
Updating files:  79% (22873/28952)
Updating files:  80% (23162/28952)
Updating files:  81% (23452/28952)
Updating files:  82% (23741/28952)
Updating files:  83% (24031/28952)
Updating files:  84% (24320/28952)
Updating files:  85% (24610/28952)
Updating files:  86% (24899/28952)
Updating files:  87% (25189/28952)
Updating files:  88% (25478/28952)
Updating files:  89% (25768/28952)
Updating files:  90% (26057/28952)
Updating files:  91% (26347/28952)
Updating files:  92% (26636/28952)
Updating files:  93% (26926/28952)
Updating files:  94% (27215/28952)
Updating files:  95% (27505/28952)
Updating files:  96% (27794/28952)
Updating files:  97% (28084/28952)
Updating files:  98% (28373/28952)
Updating files:  99% (28663/28952)
Updating files: 100% (28952/28952)
Updating files: 100% (28952/28952), done.
HEAD is now at 4d67ef48e6 Merge pull request #27286 from jmid/qcheck-x-maintenance-intent
Merge made by the 'ort' strategy.
 packages/allegro5/allegro5.0.2/opam         | 47 +++++++++++++++++++++++++++++
 packages/conf-allegro5/conf-allegro5.1/opam | 44 +++++++++++++++++++++++++++
 2 files changed, 91 insertions(+)
 create mode 100644 packages/allegro5/allegro5.0.2/opam
 create mode 100644 packages/conf-allegro5/conf-allegro5.1/opam

(from ocaml/opam:opensuse-15.6-ocaml-4.14@sha256:0e031579d661d1dd02de6154f15fe62bb64f533317d730b0801613833e39f224)
2025-01-20 11:55.03 ---> saved as "df43edea77d4cdc8acfdfa1f05fd0038e9cebe85a89312604025b5162f215ba7"

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2025-01-20 11:55.04 ---> saved as "4627ae99739f0742f31e84b4efee7d3c34d9092ab98b450ea93ef0712fe71608"

/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] synchronised from file:///home/opam/opam-repository
2025-01-20 11:56.08 ---> saved as "0a221d0fc26d321a902e6bccf690e2cb60ff64822eb9408ed6eea32db7dd23ce"

/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.0~alpha1~dev (26290a42e5a3dd44c3e2f8f743e6b8c391bdc206)
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=opensuse-leap os-version=15.6
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 255
# repositories         1 (local)
# 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-01-20 11:56.09 ---> saved as "c88c59ccd4ac17581424e0c89b19158dcc3c39012feafac4d0c9f708be4b5675"

/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-01-20 11:56.18 ---> saved as "1fd79f8c4d94aeb37a39a59cfe241a813cf61ee21b894612bcf075bd809f7fa1"

/home/opam: (copy (src .) (dst opam-repository/))
2025-01-20 11:56.28 ---> saved as "0f1538fbf48409cc53beef6fc3d2f426b678a7620b088b5dc5c80eec3d66da5c"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-01-20 11:57.18 ---> saved as "b731bfb811d078e8c5492c226435cce7064560cfec4bb266c29a783a96666cde"

/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]
- Retrieving repository 'Main Update Repository' metadata [.
- ........done]
- Building repository 'Main Update Repository' cache [....done]
- Retrieving repository 'Update Repository (Non-Oss)' metadata [.
- .......done]
- Building repository 'Update Repository (Non-Oss)' cache [....done]
- All repositories have been refreshed.
2025-01-20 11:57.37 ---> saved as "662a3242b08cdc97416238b2db1d1b3b092e64e1cc9d9c1ae7c19e4694c93407"

/home/opam: (run (shell "opam pin add -k version -yn conf-allegro5.1 1"))
conf-allegro5 is now pinned to version 1
2025-01-20 11:57.38 ---> saved as "5b3cf5dbcb2bc41a1dfb2d70db2c40183db3d5bcdd52c9968298476fa70d1db0"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall conf-allegro5.1;\
                        \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\" != 'conf-allegro5.1' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
[ERROR] Package conf-allegro5.1 depends on the unavailable system package 'allegro'. You can use `--no-depexts' to attempt installation anyway.
"/usr/bin/env" "bash" "-c" "opam reinstall conf-allegro5.1;
        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" != 'conf-allegro5.1' && partial_fails="$partial_fails $pkg";
        done;
        test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}";
        exit 1" failed with exit status 5
2025-01-20 11:57.49: Job failed: Failed: Build failed
2025-01-20 11:57.49: Log analysis:
2025-01-20 11:57.49: >>> 
[ERROR] Package conf-allegro5.1 depends on the unavailable system package 'allegro'. You can use `--no-depexts' to attempt installation anyway.
 (score = 100)
2025-01-20 11:57.49: [SKIP] Package not available