(for PR #27502)

2025-02-27 14:38.47: New job: build archive.3.7.2+5, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/27502/head (e90d7362f65e9013b405e2247c943bdfccc0ac1e)
                              on debian-12-ocaml-4.06/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/27502/head" && git reset --hard e90d7362
git fetch origin master
git merge --no-edit d9f0c12e04db180fadfffbfec66be4d5e8b39965
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-4.06@sha256:e071728c39c8bd243394170e66479abb43b8f077c02b25855f586f034478ed8c
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 archive.3.7.2+5 3.7.2+5
RUN opam reinstall archive.3.7.2+5; \
    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" != 'archive.3.7.2+5' && 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-02-27 14:38.47: Using cache hint "ocaml/opam:debian-12-ocaml-4.06@sha256:e071728c39c8bd243394170e66479abb43b8f077c02b25855f586f034478ed8c-archive.3.7.2+5-e90d7362f65e9013b405e2247c943bdfccc0ac1e"
2025-02-27 14:38.47: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.06@sha256:e071728c39c8bd243394170e66479abb43b8f077c02b25855f586f034478ed8c)
 (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 archive.3.7.2+5 3.7.2+5"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall archive.3.7.2+5;\
             \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\" != 'archive.3.7.2+5' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-02-27 14:38.47: Waiting for resource in pool OCluster
2025-02-27 14:38.48: Waiting for worker…
2025-02-27 14:40.04: Got resource from pool OCluster
Building on laodoke.caelum.ci.dev
All commits already cached
Updating files:  57% (12875/22507)
Updating files:  58% (13055/22507)
Updating files:  59% (13280/22507)
Updating files:  60% (13505/22507)
Updating files:  61% (13730/22507)
Updating files:  62% (13955/22507)
Updating files:  63% (14180/22507)
Updating files:  64% (14405/22507)
Updating files:  65% (14630/22507)
Updating files:  66% (14855/22507)
Updating files:  67% (15080/22507)
Updating files:  68% (15305/22507)
Updating files:  69% (15530/22507)
Updating files:  70% (15755/22507)
Updating files:  71% (15980/22507)
Updating files:  72% (16206/22507)
Updating files:  73% (16431/22507)
Updating files:  74% (16656/22507)
Updating files:  75% (16881/22507)
Updating files:  76% (17106/22507)
Updating files:  77% (17331/22507)
Updating files:  78% (17556/22507)
Updating files:  79% (17781/22507)
Updating files:  80% (18006/22507)
Updating files:  81% (18231/22507)
Updating files:  82% (18456/22507)
Updating files:  83% (18681/22507)
Updating files:  84% (18906/22507)
Updating files:  85% (19131/22507)
Updating files:  86% (19357/22507)
Updating files:  87% (19582/22507)
Updating files:  88% (19807/22507)
Updating files:  89% (20032/22507)
Updating files:  90% (20257/22507)
Updating files:  91% (20482/22507)
Updating files:  92% (20707/22507)
Updating files:  93% (20932/22507)
Updating files:  94% (21157/22507)
Updating files:  95% (21382/22507)
Updating files:  96% (21607/22507)
Updating files:  97% (21832/22507)
Updating files:  98% (22057/22507)
Updating files:  99% (22282/22507)
Updating files: 100% (22507/22507)
Updating files: 100% (22507/22507), done.
HEAD is now at d9f0c12e04 Merge pull request #27490 from gildor478/release-ocamlify-v0.1.0
Merge made by the 'ort' strategy.
 packages/archive-lwt/archive-lwt.3.7.2+5/opam | 52 ++++++++++++++++++++
 packages/archive/archive.3.7.2+5/opam         | 68 +++++++++++++++++++++++++++
 2 files changed, 120 insertions(+)
 create mode 100644 packages/archive-lwt/archive-lwt.3.7.2+5/opam
 create mode 100644 packages/archive/archive.3.7.2+5/opam

(from ocaml/opam:debian-12-ocaml-4.06@sha256:e071728c39c8bd243394170e66479abb43b8f077c02b25855f586f034478ed8c)
2025-02-27 14:40.42 ---> saved as "e16235432a393cb8b3650124dbb472a11c33d0e095b9aafcf44c92e09e0d8e1b"

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2025-02-27 14:40.43 ---> saved as "ce3b325e5e04debedcd0b9db9f28bc94721d04c5fbeed0d1bddd53ee1db96ef1"

/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 ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[opam-repository-archive] synchronised from git+https://github.com/ocaml/opam-repository-archive
[default] synchronised from file:///home/opam/opam-repository
2025-02-27 14:42.13 ---> saved as "aeb26ba77cb0d5c5258b30f86fe961994da7f02fc269f65e611173f1947e28c7"

/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 (34b7b4ec4af0ebd3c8fc4aee8088471be2ad48c7)
# 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), 1 (version-controlled)
# pinned               1 (version)
# current-switch       4.06
# invariant            ["ocaml-base-compiler" {= "4.06.1"}]
# compiler-packages    ocaml-base-compiler.4.06.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/4.06/lib/ocaml/stublibs:/home/opam/.opam/4.06/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       4.06.1
2025-02-27 14:42.15 ---> saved as "9cc31aebf9588c58de0bbcf3ac37b1fb0d577e7b422bff4442c78de68769a380"

/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-02-27 14:42.23 ---> saved as "361c43ef8afd4fa5292cb0d0d908b3b709287cf37610d477137cb4a7029089ee"

/home/opam: (copy (src .) (dst opam-repository/))
2025-02-27 14:42.38 ---> saved as "642d61b2cb795818c06ac15007ad3e076254c5bf311a8b9ebee3b239b840e212"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-02-27 14:43.25 ---> saved as "1716c7e554b4b8d0857c7c45c4bd6a6d28929f7ac34c51133306ad4a0ac12c4a"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian bookworm InRelease
- 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-security bookworm-security/main amd64 Packages [246 kB]
- Fetched 349 kB in 1s (682 kB/s)
- Reading package lists...
- 
2025-02-27 14:43.27 ---> saved as "32a7b0c241af7c1396b753cc40c48f6c1006831510f8a31213ba7e80451a5808"

/home/opam: (run (shell "opam pin add -k version -yn archive.3.7.2+5 3.7.2+5"))
archive is now pinned to version 3.7.2+5
2025-02-27 14:43.28 ---> saved as "adca68dece89dd7bc59843c85fadfac87f827f67ea75dc49ecca90c371232be7"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall archive.3.7.2+5;\
                        \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\" != 'archive.3.7.2+5' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
archive.3.7.2+5 is not installed. Install it? [Y/n] y
  * No agreement on the version of ocaml:
    - (invariant) -> ocaml-base-compiler = 4.06.1 -> ocaml = 4.06.1
    - archive -> ocaml >= 4.14.1
    You can temporarily relax the switch invariant with `--update-invariant'
  * Incompatible packages:
    - (invariant) -> ocaml-base-compiler = 4.06.1
    - archive -> ocaml >= 4.14.1 -> ocaml-variants >= 4.14.1~
  * Missing dependency:
    - archive -> ocaml >= 4.14.1 -> ocaml-variants >= 4.14.1~ -> system-msvc
    unmet availability conditions: 'os = "win32"'

No solution found, exiting
"/usr/bin/env" "bash" "-c" "opam reinstall archive.3.7.2+5;
        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" != 'archive.3.7.2+5' && 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-02-27 14:43.47: Job failed: Failed: Build failed
2025-02-27 14:43.47: Log analysis:
2025-02-27 14:43.47: >>> 
No solution found, exiting
 (score = 100)
2025-02-27 14:43.47: [SKIP] Package not available