(for PR #21122)

2022-04-07 12:54.47: New job: build mirage-block-ccm.1.0.2, using opam 2.1
                              from https://github.com/ocaml/opam-repository.git#refs/pull/21122/head (854464dcb0d584c0d9a7b6cbdf5b33d0d390d5b6)
                              on debian-11-ocaml-4.02/amd64

To reproduce locally:

git clone --recursive "https://github.com/ocaml/opam-repository.git" && cd "opam-repository" && git fetch origin "refs/pull/21122/head" && git reset --hard 854464dc
git fetch origin master
git merge 4d72a962379797389a56c9429260f356d6033ac7
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-11-ocaml-4.02@sha256:b7077841c8c61437fef21866c4111c3b252cba0050a21731c4ed8342a78f76c3
USER 1000:1000
WORKDIR /home/opam
RUN for pkg in $(opam pin list --short); do opam pin remove "$pkg"; done
RUN opam repository remove -a multicore || true
RUN sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam
RUN opam init --reinit -ni
ENV OPAMDOWNLOADJOBS="1"
ENV OPAMERRLOGLEN="0"
ENV OPAMSOLVERTIMEOUT="500"
ENV OPAMPRECISETRACKING="1"
RUN rm -rf opam-repository/
COPY --chown=1000:1000 . opam-repository/
RUN opam repository set-url --strict default opam-repository/
RUN opam pin add -k version -yn mirage-block-ccm.1.0.2 1.0.2
RUN opam update --depexts
RUN opam remove mirage-block-ccm.1.0.2 && opam install --deps-only mirage-block-ccm.1.0.2 && opam install -v mirage-block-ccm.1.0.2; \
    res=$?; \
    test "$res" != 31 && exit "$res"; \
    export OPAMCLI=2.0; \
    build_dir=$(opam var prefix)/.opam-switch/build; \
    failed=$(ls "$build_dir"); \
    for pkg in $failed; do \
    if opam show -f x-ci-accept-failures: "$pkg" | grep -qF "\"debian-11\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    done; \
    exit 1

END-OF-DOCKERFILE
docker build -f ../Dockerfile .

2022-04-07 12:54.47: Using cache hint "ocaml/opam:debian-11-ocaml-4.02@sha256:b7077841c8c61437fef21866c4111c3b252cba0050a21731c4ed8342a78f76c3-mirage-block-ccm.1.0.2-854464dcb0d584c0d9a7b6cbdf5b33d0d390d5b6"
2022-04-07 12:54.47: Using OBuilder spec:
((from ocaml/opam:debian-11-ocaml-4.02@sha256:b7077841c8c61437fef21866c4111c3b252cba0050a21731c4ed8342a78f76c3)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "for pkg in $(opam pin list --short); do opam pin remove \"$pkg\"; done"))
 (run (shell "opam repository remove -a multicore || true"))
 (run (shell "sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam"))
 (run (shell "opam init --reinit --config .opamrc-sandbox -ni"))
 (env OPAMDOWNLOADJOBS 1)
 (env OPAMERRLOGLEN 0)
 (env OPAMSOLVERTIMEOUT 500)
 (env OPAMPRECISETRACKING 1)
 (run (shell "rm -rf opam-repository/"))
 (copy (src .) (dst opam-repository/))
 (run (shell "opam repository set-url --strict default opam-repository/"))
 (run (shell "opam pin add -k version -yn mirage-block-ccm.1.0.2 1.0.2"))
 (run (network host)
      (shell "opam update --depexts"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam remove mirage-block-ccm.1.0.2 && opam install --deps-only mirage-block-ccm.1.0.2 && opam install -v mirage-block-ccm.1.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        for pkg in $failed; do\
             \n          if opam show -f x-ci-accept-failures: \"$pkg\" | grep -qF \"\\\"debian-11\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n        done;\
             \n        exit 1"))
)

2022-04-07 12:54.47: Waiting for resource in pool OCluster
2022-04-07 13:17.27: Waiting for worker...
2022-04-07 13:19.58: Got resource from pool OCluster
Building on x86-bm-1.ocamllabs.io
All commits already cached
Updating files:  10% (2633/25407)
Updating files:  11% (2795/25407)
Updating files:  12% (3049/25407)
Updating files:  13% (3303/25407)
Updating files:  14% (3557/25407)
Updating files:  15% (3812/25407)
Updating files:  16% (4066/25407)
Updating files:  17% (4320/25407)
Updating files:  18% (4574/25407)
Updating files:  19% (4828/25407)
Updating files:  19% (5080/25407)
Updating files:  20% (5082/25407)
Updating files:  21% (5336/25407)
Updating files:  22% (5590/25407)
Updating files:  23% (5844/25407)
Updating files:  24% (6098/25407)
Updating files:  25% (6352/25407)
Updating files:  26% (6606/25407)
Updating files:  27% (6860/25407)
Updating files:  28% (7114/25407)
Updating files:  29% (7369/25407)
Updating files:  30% (7623/25407)
Updating files:  31% (7877/25407)
Updating files:  31% (8078/25407)
Updating files:  32% (8131/25407)
Updating files:  33% (8385/25407)
Updating files:  34% (8639/25407)
Updating files:  35% (8893/25407)
Updating files:  36% (9147/25407)
Updating files:  37% (9401/25407)
Updating files:  38% (9655/25407)
Updating files:  39% (9909/25407)
Updating files:  40% (10163/25407)
Updating files:  41% (10417/25407)
Updating files:  42% (10671/25407)
Updating files:  42% (10724/25407)
Updating files:  43% (10926/25407)
Updating files:  44% (11180/25407)
Updating files:  45% (11434/25407)
Updating files:  46% (11688/25407)
Updating files:  47% (11942/25407)
Updating files:  48% (12196/25407)
Updating files:  49% (12450/25407)
Updating files:  50% (12704/25407)
Updating files:  51% (12958/25407)
Updating files:  51% (13143/25407)
Updating files:  52% (13212/25407)
Updating files:  53% (13466/25407)
Updating files:  54% (13720/25407)
Updating files:  55% (13974/25407)
Updating files:  56% (14228/25407)
Updating files:  57% (14482/25407)
Updating files:  58% (14737/25407)
Updating files:  59% (14991/25407)
Updating files:  60% (15245/25407)
Updating files:  61% (15499/25407)
Updating files:  62% (15753/25407)
Updating files:  62% (15827/25407)
Updating files:  63% (16007/25407)
Updating files:  64% (16261/25407)
Updating files:  65% (16515/25407)
Updating files:  66% (16769/25407)
Updating files:  67% (17023/25407)
Updating files:  67% (17252/25407)
Updating files:  68% (17277/25407)
Updating files:  69% (17531/25407)
Updating files:  70% (17785/25407)
Updating files:  71% (18039/25407)
Updating files:  72% (18294/25407)
Updating files:  73% (18548/25407)
Updating files:  73% (18578/25407)
Updating files:  74% (18802/25407)
Updating files:  75% (19056/25407)
Updating files:  76% (19310/25407)
Updating files:  77% (19564/25407)
Updating files:  77% (19662/25407)
Updating files:  78% (19818/25407)
Updating files:  79% (20072/25407)
Updating files:  80% (20326/25407)
Updating files:  81% (20580/25407)
Updating files:  82% (20834/25407)
Updating files:  82% (21049/25407)
Updating files:  83% (21088/25407)
Updating files:  84% (21342/25407)
Updating files:  85% (21596/25407)
Updating files:  86% (21851/25407)
Updating files:  87% (22105/25407)
Updating files:  88% (22359/25407)
Updating files:  89% (22613/25407)
Updating files:  90% (22867/25407)
Updating files:  91% (23121/25407)
Updating files:  92% (23375/25407)
Updating files:  92% (23376/25407)
Updating files:  93% (23629/25407)
Updating files:  94% (23883/25407)
Updating files:  95% (24137/25407)
Updating files:  96% (24391/25407)
Updating files:  96% (24576/25407)
Updating files:  97% (24645/25407)
Updating files:  98% (24899/25407)
Updating files:  99% (25153/25407)
Updating files: 100% (25407/25407)
Updating files: 100% (25407/25407), done.
HEAD is now at 4d72a96237 Merge pull request #21082 from zoggy/opam-publish-chamo.3.0
Merge made by the 'recursive' strategy.
 .../mirage-block-ccm/mirage-block-ccm.1.0.2/opam   | 51 ++++++++++++++++++++++
 1 file changed, 51 insertions(+)
 create mode 100644 packages/mirage-block-ccm/mirage-block-ccm.1.0.2/opam

(from ocaml/opam:debian-11-ocaml-4.02@sha256:b7077841c8c61437fef21866c4111c3b252cba0050a21731c4ed8342a78f76c3)
2022-04-07 13:20.26 ---> using "e6e1c6b0c9f4a80da4e872cf678eb235264228427503c0cf91e8d2faaa96515f" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "for pkg in $(opam pin list --short); do opam pin remove \"$pkg\"; done"))
Ok, ocaml-base-compiler is no longer pinned to https://github.com/ocaml/ocaml/archive/4.02.3.tar.gz (version 4.02.3)
No package build needed.
Nothing to do.
# Run eval $(opam env) to update the current shell environment
2022-04-07 13:20.26 ---> using "e74296967f283a804af07259866c66ea89a86454363f22431fb01b5f6cd2cc89" from cache

/home/opam: (run (shell "opam repository remove -a multicore || true"))
[WARNING] No configured repositories by these names found: multicore
2022-04-07 13:20.26 ---> using "8ba674356dcb5b87f974dd14d7df192efe29c3162d49ac4820680e98c530f10e" from cache

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam"))
2022-04-07 13:20.26 ---> using "36857b4741b3b4a3138d5c2fe61d7ed273dd1e2353dd2ee5a8a9a14f01deceae" from cache

/home/opam: (run (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.1, 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
2022-04-07 13:20.26 ---> using "57f93049825f016418aa31bd31ea7ef176bc0f5e2e4605d517e8b7c232c21170" from cache

/home/opam: (env OPAMDOWNLOADJOBS 1)

/home/opam: (env OPAMERRLOGLEN 0)

/home/opam: (env OPAMSOLVERTIMEOUT 500)

/home/opam: (env OPAMPRECISETRACKING 1)

/home/opam: (run (shell "rm -rf opam-repository/"))
2022-04-07 13:20.26 ---> using "ef4aa2412d0952888e30f72b38a1da970c310948bc4fdd1261da1e035b430720" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2022-04-07 13:20.39 ---> saved as "f2436e9d378e1f0f96d6ffec8f6c6ff749d482d447ccee5d7318731245ad004f"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2022-04-07 13:21.03 ---> saved as "c7a6a9983f758e70d93e409a7e209625dbd3ea40970637b1aacc06d3d08ddf03"

/home/opam: (run (shell "opam pin add -k version -yn mirage-block-ccm.1.0.2 1.0.2"))
mirage-block-ccm is now pinned to version 1.0.2
2022-04-07 13:21.05 ---> saved as "5a68112aa31954dc2da9cbe4b0f42a41a24180a7f9343cce101d4d7666104177"

/home/opam: (run (network host)
                 (shell "opam update --depexts"))
+ /usr/bin/sudo "apt-get" "update"
- Get:1 http://security.debian.org/debian-security bullseye-security InRelease [44.1 kB]
- Hit:2 http://deb.debian.org/debian bullseye InRelease
- Get:3 http://deb.debian.org/debian bullseye-updates InRelease [39.4 kB]
- Get:4 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [124 kB]
- Fetched 207 kB in 1s (193 kB/s)
- Reading package lists...
- 
2022-04-07 13:21.10 ---> saved as "715f1564433d0b0ece53258c783d2a42b977db38663af8c66884321c46a9ba91"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam remove mirage-block-ccm.1.0.2 && opam install --deps-only mirage-block-ccm.1.0.2 && opam install -v mirage-block-ccm.1.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        for pkg in $failed; do\
                        \n          if opam show -f x-ci-accept-failures: \"$pkg\" | grep -qF \"\\\"debian-11\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n        done;\
                        \n        exit 1"))
Nothing to do.
[NOTE] mirage-block-ccm.1.0.2 is not installed.

[ERROR] Package conflict!
No solution found, exiting
  * No agreement on the version of ocaml:
    - (invariant) -> ocaml-base-compiler = 4.02.3 -> ocaml = 4.02.3
    - mirage-block-ccm >= 1.0.2 -> ocaml >= 4.08.0
    You can temporarily relax the switch invariant with `--update-invariant'

"/bin/bash" "-c"
"opam remove mirage-block-ccm.1.0.2 && opam install --deps-only mirage-block-ccm.1.0.2 && opam install -v mirage-block-ccm.1.0.2;
        res=$?;
        test "$res" != 31 && exit "$res";
        export OPAMCLI=2.0;
        build_dir=$(opam var prefix)/.opam-switch/build;
        failed=$(ls "$build_dir");
        for pkg in $failed; do
          if opam show -f x-ci-accept-failures: "$pkg" | grep -qF "\"debian-11\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
        done;
        exit 1" failed with exit status 20
2022-04-07 13:22.02: Job failed: Failed: Build failed
2022-04-07 13:22.02: Log analysis:
2022-04-07 13:22.02: >>> 
[ERROR] Package conflict!
 (score = 100)
2022-04-07 13:22.02: [SKIP] Package not available