(for PR #21050)

2022-04-07 12:56.07: New job: test 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/i386

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:48cfdf74b7deb30c788be4c6506daae92227397a0566512365b58da1f663b280
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
RUN opam update --depexts
RUN opam remove conf-python-3.9.0.0 && opam install --deps-only --with-test conf-python-3.9.0.0 && opam install -v --with-test 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:48cfdf74b7deb30c788be4c6506daae92227397a0566512365b58da1f663b280-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:48cfdf74b7deb30c788be4c6506daae92227397a0566512365b58da1f663b280)
 (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"))
 (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 --with-test conf-python-3.9.0.0 && opam install -v --with-test 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 13:21.08: Waiting for worker...
2022-04-07 13:22.35: Got resource from pool OCluster
Building on m1-c.ocamllabs.io
All commits already cached
Updating files:  45% (11666/25409)
Updating files:  46% (11689/25409)
Updating files:  47% (11943/25409)
Updating files:  48% (12197/25409)
Updating files:  49% (12451/25409)
Updating files:  50% (12705/25409)
Updating files:  51% (12959/25409)
Updating files:  52% (13213/25409)
Updating files:  53% (13467/25409)
Updating files:  54% (13721/25409)
Updating files:  55% (13975/25409)
Updating files:  56% (14230/25409)
Updating files:  57% (14484/25409)
Updating files:  58% (14738/25409)
Updating files:  59% (14992/25409)
Updating files:  60% (15246/25409)
Updating files:  61% (15500/25409)
Updating files:  62% (15754/25409)
Updating files:  63% (16008/25409)
Updating files:  64% (16262/25409)
Updating files:  65% (16516/25409)
Updating files:  66% (16770/25409)
Updating files:  67% (17025/25409)
Updating files:  68% (17279/25409)
Updating files:  69% (17533/25409)
Updating files:  70% (17787/25409)
Updating files:  71% (18041/25409)
Updating files:  72% (18295/25409)
Updating files:  73% (18549/25409)
Updating files:  74% (18803/25409)
Updating files:  75% (19057/25409)
Updating files:  76% (19311/25409)
Updating files:  77% (19565/25409)
Updating files:  78% (19820/25409)
Updating files:  79% (20074/25409)
Updating files:  80% (20328/25409)
Updating files:  80% (20379/25409)
Updating files:  81% (20582/25409)
Updating files:  82% (20836/25409)
Updating files:  83% (21090/25409)
Updating files:  84% (21344/25409)
Updating files:  85% (21598/25409)
Updating files:  86% (21852/25409)
Updating files:  87% (22106/25409)
Updating files:  88% (22360/25409)
Updating files:  89% (22615/25409)
Updating files:  90% (22869/25409)
Updating files:  91% (23123/25409)
Updating files:  92% (23377/25409)
Updating files:  93% (23631/25409)
Updating files:  94% (23885/25409)
Updating files:  95% (24139/25409)
Updating files:  96% (24393/25409)
Updating files:  97% (24647/25409)
Updating files:  98% (24901/25409)
Updating files:  99% (25155/25409)
Updating files: 100% (25409/25409)
Updating files: 100% (25409/25409), 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:48cfdf74b7deb30c788be4c6506daae92227397a0566512365b58da1f663b280)
Unable to find image 'ocaml/opam:debian-11-ocaml-4.14@sha256:48cfdf74b7deb30c788be4c6506daae92227397a0566512365b58da1f663b280' locally
docker.io/ocaml/opam@sha256:48cfdf74b7deb30c788be4c6506daae92227397a0566512365b58da1f663b280: Pulling from ocaml/opam
861044c16856: Pulling fs layer
7ddff7f96987: Pulling fs layer
88ab59095253: Pulling fs layer
861044c16856: Verifying Checksum
861044c16856: Download complete
861044c16856: Pull complete
88ab59095253: Verifying Checksum
88ab59095253: Download complete
7ddff7f96987: Verifying Checksum
7ddff7f96987: Download complete
7ddff7f96987: Pull complete
88ab59095253: Pull complete
Digest: sha256:48cfdf74b7deb30c788be4c6506daae92227397a0566512365b58da1f663b280
Status: Downloaded newer image for ocaml/opam@sha256:48cfdf74b7deb30c788be4c6506daae92227397a0566512365b58da1f663b280
WARNING: The requested image's platform (linux/386) does not match the detected host platform (linux/amd64) and no specific platform was requested
2022-04-07 13:24.10 ---> saved as "2ed9bc4b2a51f1eb8c70a6819e68141bee52239e22393c4801fe266d76c03469"

/: (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 13:24.19 ---> saved as "598ac2fc5dd0b01ae56f02220c27eadc52f8387988ff63d3dd301bd3985b398d"

/home/opam: (run (shell "opam repository remove -a multicore || true"))
[WARNING] No configured repositories by these names found: multicore
2022-04-07 13:24.20 ---> saved as "79ec8f207b541a95f9fb29114fba6e91b093a414434d41c5df5f277f2376a96c"

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam"))
2022-04-07 13:24.21 ---> saved as "562daedbdac4530ae114165b9bba40ef33afbac66c1268444e08a9a5d91f5c8e"

/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:25.48 ---> saved as "d1dade10cc547368b79214fc75eaff420d5ae1162312bfc062f22a776f6bd0e1"

/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:25.59 ---> saved as "74eb5bfa2c4a58cdd119cd2db20c2f2cd6d73b2dfde27e4d8e3164efe11beb4a"

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

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

/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 13:26.44 ---> saved as "9c8a83b0c3288ff74af401b6804130244e7fe6f670f37b78c63916523839318a"

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

/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:i386.
- (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 ... 18285 files and directories currently installed.)
- Preparing to unpack .../libpython3.9-minimal_3.9.2-1_i386.deb ...
- Unpacking libpython3.9-minimal:i386 (3.9.2-1) ...
- Selecting previously unselected package python3.9-minimal.
- Preparing to unpack .../python3.9-minimal_3.9.2-1_i386.deb ...
- Unpacking python3.9-minimal (3.9.2-1) ...
- Setting up libpython3.9-minimal:i386 (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 ... 18570 files and directories currently installed.)
- Preparing to unpack .../0-python3-minimal_3.9.2-3_i386.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:i386.
- Preparing to unpack .../2-libmpdec3_2.5.1-1_i386.deb ...
- Unpacking libmpdec3:i386 (2.5.1-1) ...
- Selecting previously unselected package libpython3.9-stdlib:i386.
- Preparing to unpack .../3-libpython3.9-stdlib_3.9.2-1_i386.deb ...
- Unpacking libpython3.9-stdlib:i386 (3.9.2-1) ...
- Selecting previously unselected package python3.9.
- Preparing to unpack .../4-python3.9_3.9.2-1_i386.deb ...
- Unpacking python3.9 (3.9.2-1) ...
- Selecting previously unselected package libpython3-stdlib:i386.
- Preparing to unpack .../5-libpython3-stdlib_3.9.2-3_i386.deb ...
- Unpacking libpython3-stdlib:i386 (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 ... 18967 files and directories currently installed.)
- Preparing to unpack .../python3_3.9.2-3_i386.deb ...
- Unpacking python3 (3.9.2-3) ...
- Setting up media-types (4.0.0) ...
- Setting up libmpdec3:i386 (2.5.1-1) ...
- Setting up libpython3.9-stdlib:i386 (3.9.2-1) ...
- Setting up libpython3-stdlib:i386 (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 13:27.19 ---> saved as "15f27dc40fb7b880487174a6134a09fd1ad1f1ba8fb858361b00c8bab2e59108"

/home/opam: (run (network host)
                 (shell "opam update --depexts"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian bullseye InRelease
- Hit:2 http://deb.debian.org/debian bullseye-updates InRelease
- Hit:3 http://security.debian.org/debian-security bullseye-security InRelease
- Reading package lists...
- 
2022-04-07 13:27.21 ---> saved as "7736a434487fec8dc4a263ead1324845c73ce454e2e36fabcf1f0696648ebeea"

/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 --with-test conf-python-3.9.0.0 && opam install -v --with-test 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"))
The following actions will be performed:
  - remove conf-python-3 9.0.0*

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> removed   conf-python-3.9.0.0
Done.
# Run eval $(opam env) to update the current shell environment
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*

<><> 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 13:28.01 ---> saved as "e6b026057d25eea0633f43e9eec91ef1bea7ce629eaa237aa253eed0b2a27d6f"
Job succeeded
2022-04-07 13:28.18: Job succeeded