(for PR #21050)

2022-04-07 12:56.07: New job: build conf-python-3.9.0.0, using opam 2.1
                              from https://github.com/ocaml/opam-repository.git#refs/pull/21050/head (408cb884f1855ff33d5c4b904ad54843ed97f9c6)
                              on debian-11-ocaml-4.14/arm32v7

To reproduce locally:

git clone --recursive "https://github.com/ocaml/opam-repository.git" && cd "opam-repository" && git fetch origin "refs/pull/21050/head" && git reset --hard 408cb884
git fetch origin master
git merge 4d72a962379797389a56c9429260f356d6033ac7
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-11-ocaml-4.14@sha256:96ed6fed7343d05ca5e2b3e0ad374f7b5a7356bef8625669728e3bef8148d7d2
SHELL [ "/usr/bin/linux32", "/bin/sh", "-c" ]
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 conf-python-3.9.0.0 9.0.0
RUN opam update --depexts
RUN opam remove conf-python-3.9.0.0 && opam install --deps-only conf-python-3.9.0.0 && opam install -v conf-python-3.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"); \
    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:56.07: Using cache hint "ocaml/opam:debian-11-ocaml-4.14@sha256:96ed6fed7343d05ca5e2b3e0ad374f7b5a7356bef8625669728e3bef8148d7d2-conf-python-3.9.0.0-408cb884f1855ff33d5c4b904ad54843ed97f9c6"
2022-04-07 12:56.07: Using OBuilder spec:
((from ocaml/opam:debian-11-ocaml-4.14@sha256:96ed6fed7343d05ca5e2b3e0ad374f7b5a7356bef8625669728e3bef8148d7d2)
 (shell /usr/bin/linux32 /bin/sh -c)
 (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 conf-python-3.9.0.0 9.0.0"))
 (run (network host)
      (shell "opam update --depexts"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam remove conf-python-3.9.0.0 && opam install --deps-only conf-python-3.9.0.0 && opam install -v conf-python-3.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        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:56.07: Waiting for resource in pool OCluster
2022-04-07 12:56.07: Waiting for worker...
2022-04-07 12:56.07: Got resource from pool OCluster
Building on okypous.ocamllabs.io
All commits already cached
Updating files:  50% (12955/25408)
Updating files:  51% (12959/25408)
Updating files:  52% (13213/25408)
Updating files:  53% (13467/25408)
Updating files:  54% (13721/25408)
Updating files:  55% (13975/25408)
Updating files:  56% (14229/25408)
Updating files:  57% (14483/25408)
Updating files:  58% (14737/25408)
Updating files:  59% (14991/25408)
Updating files:  60% (15245/25408)
Updating files:  61% (15499/25408)
Updating files:  62% (15753/25408)
Updating files:  63% (16008/25408)
Updating files:  64% (16262/25408)
Updating files:  65% (16516/25408)
Updating files:  66% (16770/25408)
Updating files:  67% (17024/25408)
Updating files:  68% (17278/25408)
Updating files:  69% (17532/25408)
Updating files:  70% (17786/25408)
Updating files:  71% (18040/25408)
Updating files:  72% (18294/25408)
Updating files:  73% (18548/25408)
Updating files:  74% (18802/25408)
Updating files:  75% (19056/25408)
Updating files:  76% (19311/25408)
Updating files:  77% (19565/25408)
Updating files:  78% (19819/25408)
Updating files:  79% (20073/25408)
Updating files:  80% (20327/25408)
Updating files:  81% (20581/25408)
Updating files:  82% (20835/25408)
Updating files:  83% (21089/25408)
Updating files:  84% (21343/25408)
Updating files:  85% (21597/25408)
Updating files:  86% (21851/25408)
Updating files:  87% (22105/25408)
Updating files:  88% (22360/25408)
Updating files:  89% (22614/25408)
Updating files:  90% (22868/25408)
Updating files:  91% (23122/25408)
Updating files:  92% (23376/25408)
Updating files:  93% (23630/25408)
Updating files:  94% (23884/25408)
Updating files:  95% (24138/25408)
Updating files:  96% (24392/25408)
Updating files:  97% (24646/25408)
Updating files:  98% (24900/25408)
Updating files:  99% (25154/25408)
Updating files: 100% (25408/25408)
Updating files: 100% (25408/25408), done.
HEAD is now at 4d72a96237 Merge pull request #21082 from zoggy/opam-publish-chamo.3.0
Merge made by the 'recursive' strategy.
 .../conf-python-3.9.0.0/files/test.py              |  1 +
 packages/conf-python-3/conf-python-3.9.0.0/opam    | 33 ++++++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 100644 packages/conf-python-3/conf-python-3.9.0.0/files/test.py
 create mode 100644 packages/conf-python-3/conf-python-3.9.0.0/opam

(from ocaml/opam:debian-11-ocaml-4.14@sha256:96ed6fed7343d05ca5e2b3e0ad374f7b5a7356bef8625669728e3bef8148d7d2)
Unable to find image 'ocaml/opam:debian-11-ocaml-4.14@sha256:96ed6fed7343d05ca5e2b3e0ad374f7b5a7356bef8625669728e3bef8148d7d2' locally
docker.io/ocaml/opam@sha256:96ed6fed7343d05ca5e2b3e0ad374f7b5a7356bef8625669728e3bef8148d7d2: Pulling from ocaml/opam
fc87a15f2d54: Already exists
db3f94370de2: Already exists
4a45085ba3dd: Pulling fs layer
4a45085ba3dd: Verifying Checksum
4a45085ba3dd: Download complete
4a45085ba3dd: Pull complete
Digest: sha256:96ed6fed7343d05ca5e2b3e0ad374f7b5a7356bef8625669728e3bef8148d7d2
Status: Downloaded newer image for ocaml/opam@sha256:96ed6fed7343d05ca5e2b3e0ad374f7b5a7356bef8625669728e3bef8148d7d2
WARNING: The requested image's platform (linux/arm/v7) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
2022-04-07 12:56.13 ---> using "bfe15b82e4365770e1248baf5db32f41a4450a082f85d3d2b50af41764a70c4d" from cache

/: (shell /usr/bin/linux32 /bin/sh -c)

/: (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.14.0.tar.gz (version 4.14.0)
Already up-to-date.
Nothing to do.
# Run eval $(opam env) to update the current shell environment
2022-04-07 12:56.13 ---> using "4048ce4d51c9820b837c96f019b7f26f55cccd06e769f340b11c4ba91308e3ab" from cache

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

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam"))
2022-04-07 12:56.13 ---> using "27cb9bae50c679c0a2d41ffffa65f98d010cc79e38e78114f5b46445b8c491b1" 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.

Continue? [Y/n] y
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.

Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
2022-04-07 12:56.13 ---> using "2f7c3e833222b76afa677722bd13bbd1d1fdf4c901ce066a1e538bbe38ac7168" 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 12:56.13 ---> using "0a84651021dcb81f45fb0dc8c26e80f0e13511402fc113abfdc1cb807157e522" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2022-04-07 12:56.26 ---> saved as "a2d9f7f0dcdd6e496d547234a021057d9f148f64b3ea30198b0cf292cad683af"

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

/home/opam: (run (shell "opam pin add -k version -yn conf-python-3.9.0.0 9.0.0"))
conf-python-3 is now pinned to version 9.0.0
2022-04-07 12:56.49 ---> saved as "ca007bf7548d09f702a9509e5cd730e6312a1c89a80ca588a27477b50ac0faad"

/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 armhf Packages [126 kB]
- Fetched 209 kB in 0s (432 kB/s)
- Reading package lists...
- 
2022-04-07 12:56.50 ---> saved as "63c3a1b628e74365e98e4aa18482410061ad27f7491a8f591b80ed5672a10ed6"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam remove conf-python-3.9.0.0 && opam install --deps-only conf-python-3.9.0.0 && opam install -v conf-python-3.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        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"))
[NOTE] conf-python-3.9.0.0 is not installed.

Nothing to do.
Nothing to do.
# Run eval $(opam env) to update the current shell environment
The following actions will be performed:
  - install conf-python-3 9.0.0*

The following system packages will first need to be installed:
    python3

<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>
Let opam run your package manager to install the required system packages?
(answer 'n' for other options) [Y/n] y
+ /usr/bin/sudo "apt-get" "install" "-qq" "-yy" "python3"
- debconf: delaying package configuration, since apt-utils is not installed
- Selecting previously unselected package libpython3.9-minimal:armhf.
- (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 18026 files and directories currently installed.)
- Preparing to unpack .../libpython3.9-minimal_3.9.2-1_armhf.deb ...
- Unpacking libpython3.9-minimal:armhf (3.9.2-1) ...
- Selecting previously unselected package python3.9-minimal.
- Preparing to unpack .../python3.9-minimal_3.9.2-1_armhf.deb ...
- Unpacking python3.9-minimal (3.9.2-1) ...
- Setting up libpython3.9-minimal:armhf (3.9.2-1) ...
- Setting up python3.9-minimal (3.9.2-1) ...
- Selecting previously unselected package python3-minimal.
- (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 18311 files and directories currently installed.)
- Preparing to unpack .../0-python3-minimal_3.9.2-3_armhf.deb ...
- Unpacking python3-minimal (3.9.2-3) ...
- Selecting previously unselected package media-types.
- Preparing to unpack .../1-media-types_4.0.0_all.deb ...
- Unpacking media-types (4.0.0) ...
- Selecting previously unselected package libmpdec3:armhf.
- Preparing to unpack .../2-libmpdec3_2.5.1-1_armhf.deb ...
- Unpacking libmpdec3:armhf (2.5.1-1) ...
- Selecting previously unselected package libpython3.9-stdlib:armhf.
- Preparing to unpack .../3-libpython3.9-stdlib_3.9.2-1_armhf.deb ...
- Unpacking libpython3.9-stdlib:armhf (3.9.2-1) ...
- Selecting previously unselected package python3.9.
- Preparing to unpack .../4-python3.9_3.9.2-1_armhf.deb ...
- Unpacking python3.9 (3.9.2-1) ...
- Selecting previously unselected package libpython3-stdlib:armhf.
- Preparing to unpack .../5-libpython3-stdlib_3.9.2-3_armhf.deb ...
- Unpacking libpython3-stdlib:armhf (3.9.2-3) ...
- Setting up python3-minimal (3.9.2-3) ...
- Selecting previously unselected package python3.
- (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 18708 files and directories currently installed.)
- Preparing to unpack .../python3_3.9.2-3_armhf.deb ...
- Unpacking python3 (3.9.2-3) ...
- Setting up media-types (4.0.0) ...
- Setting up libmpdec3:armhf (2.5.1-1) ...
- Setting up libpython3.9-stdlib:armhf (3.9.2-1) ...
- Setting up libpython3-stdlib:armhf (3.9.2-3) ...
- Setting up python3.9 (3.9.2-1) ...
- Setting up python3 (3.9.2-3) ...
- running python rtupdate hooks for python3.9...
- running python post-rtupdate hooks for python3.9...
- Processing triggers for libc-bin (2.31-13+deb11u3) ...

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  2/3: [conf-python-3: python3 test.py]
+ /home/opam/.opam/opam-init/hooks/sandbox.sh "build" "python3" "test.py" (CWD=/home/opam/.opam/4.14/.opam-switch/build/conf-python-3.9.0.0)
- python-3 OK
-> compiled  conf-python-3.9.0.0
-> installed conf-python-3.9.0.0
Done.
# Run eval $(opam env) to update the current shell environment
2022-04-07 12:57.23 ---> saved as "3cfaec6a16827deab01175ceabd6fb60aac1577cee502f6a54085a0113f9202a"
Job succeeded
2022-04-07 12:57.38: Job succeeded