(for PR #27169)

2025-01-20 11:54.11: New job: build allegro5.0.2, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/27169/head (e573944dde8fbb1db612e0257e42584b0daf41c3)
                              on debian-12-ocaml-4.05/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:debian-12-ocaml-4.05@sha256:1d74292056ab7fe11092f9aff7eee0fb01286888200c365b293cc589c49115d9
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 allegro5.0.2 0.2
RUN opam reinstall allegro5.0.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 "\"debian-12\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'allegro5.0.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-01-20 11:54.11: Using cache hint "ocaml/opam:debian-12-ocaml-4.05@sha256:1d74292056ab7fe11092f9aff7eee0fb01286888200c365b293cc589c49115d9-allegro5.0.2-e573944dde8fbb1db612e0257e42584b0daf41c3"
2025-01-20 11:54.11: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.05@sha256:1d74292056ab7fe11092f9aff7eee0fb01286888200c365b293cc589c49115d9)
 (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 allegro5.0.2 0.2"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall allegro5.0.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 \"\\\"debian-12\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'allegro5.0.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-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.12: Got resource from pool OCluster
Building on phoebe.caelum.ci.dev
Updating files:  89% (25852/28951)
Updating files:  90% (26056/28951)
Updating files:  91% (26346/28951)
Updating files:  92% (26635/28951)
Updating files:  93% (26925/28951)
Updating files:  94% (27214/28951)
Updating files:  95% (27504/28951)
Updating files:  96% (27793/28951)
Updating files:  97% (28083/28951)
Updating files:  98% (28372/28951)
Updating files:  99% (28662/28951)
Updating files: 100% (28951/28951)
Updating files: 100% (28951/28951), done.
HEAD is now at e94c1c2291 Add coqide 8.20.1
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:debian-12-ocaml-4.05@sha256:1d74292056ab7fe11092f9aff7eee0fb01286888200c365b293cc589c49115d9)
2025-01-20 11:54.50 ---> saved as "7d284c49807c6dae347911525757a738bb084ae735261a6217e83211d6f59b56"

/: (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:54.50 ---> saved as "7539c96a8e4d40f39472b15e0521cf0c0ca78c03136f97001b37922b27183dca"

/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 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
2025-01-20 11:56.00 ---> saved as "b8601cef1b017f867067383ac0763136c87cf3d8cb8bee68544e5a718c5aecf7"

/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=debian os-version=12
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 71
# repositories         1 (local)
# pinned               1 (version)
# current-switch       4.05
# invariant            ["ocaml-base-compiler" {= "4.05.0"}]
# compiler-packages    ocaml-base-compiler.4.05.0
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/4.05/lib/ocaml/stublibs:/home/opam/.opam/4.05/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       4.05.0
2025-01-20 11:56.02 ---> saved as "1f8c8a20ef6d2fd282826a5c576753176386095b641056bb690e311368bee96d"

/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.12 ---> saved as "89743d63db9271fc0ddbda5c9ca6f19582801e3cc51b065fa22807b0c50bc5fe"

/home/opam: (copy (src .) (dst opam-repository/))
2025-01-20 11:56.30 ---> saved as "67743588e9ea9072924e44ea9662c8f7c59990ec1aa6d1b2ca55670c033462eb"

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

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
- Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
- Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
- Get:4 http://deb.debian.org/debian bookworm/main amd64 Packages [8792 kB]
- Get:5 http://deb.debian.org/debian bookworm-updates/main amd64 Packages.diff/Index [15.1 kB]
- Get:6 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [241 kB]
- Get:7 http://deb.debian.org/debian bookworm-updates/main amd64 Packages T-2025-01-14-2009.05-F-2025-01-14-2009.05.pdiff [5693 B]
- Get:7 http://deb.debian.org/debian bookworm-updates/main amd64 Packages T-2025-01-14-2009.05-F-2025-01-14-2009.05.pdiff [5693 B]
- Fetched 9309 kB in 2s (4002 kB/s)
- Reading package lists...
- 
2025-01-20 11:57.26 ---> saved as "c8cb341ba6fffeed80c51ad0e7cbbc88c94299fe1b3ee874ec7d305cc0814c10"

/home/opam: (run (shell "opam pin add -k version -yn allegro5.0.2 0.2"))
allegro5 is now pinned to version 0.2
2025-01-20 11:57.27 ---> saved as "2f7ebfd848206110dff3c8754ffb8e06e7a234a8a0dbddb05261017b4f683006"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall allegro5.0.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 \"\\\"debian-12\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'allegro5.0.2' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
allegro5.0.2 is not installed. Install it? [Y/n] y
  * No agreement on the version of ocaml:
    - (invariant) -> ocaml-base-compiler = 4.05.0 -> ocaml = 4.05.0
    - allegro5 -> ocaml >= 4.12
    You can temporarily relax the switch invariant with `--update-invariant'

No solution found, exiting
"/usr/bin/env" "bash" "-c" "opam reinstall allegro5.0.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 "\"debian-12\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'allegro5.0.2' && 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
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: >>> 
No solution found, exiting
 (score = 100)
2025-01-20 11:57.49: [SKIP] Package not available