(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 ubuntu-22.04-ocaml-4.14/amd64

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:ubuntu-22.04-ocaml-4.14@sha256:867908bd501e74116ca832f5a8a1e2f864b06345c0b6c9b18f833027905bb27a
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 "\"ubuntu-22.04\""; 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:ubuntu-22.04-ocaml-4.14@sha256:867908bd501e74116ca832f5a8a1e2f864b06345c0b6c9b18f833027905bb27a-conf-python-3.9.0.0-408cb884f1855ff33d5c4b904ad54843ed97f9c6"
2022-04-07 12:56.07: Using OBuilder spec:
((from ocaml/opam:ubuntu-22.04-ocaml-4.14@sha256:867908bd501e74116ca832f5a8a1e2f864b06345c0b6c9b18f833027905bb27a)
 (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 \"\\\"ubuntu-22.04\\\"\"; 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:20.34: Waiting for worker...
2022-04-07 13:21.55: Got resource from pool OCluster
Building on iphito.ocamllabs.io
All commits already cached
Updating files:  20% (5147/25409)
Updating files:  21% (5336/25409)
Updating files:  22% (5590/25409)
Updating files:  23% (5845/25409)
Updating files:  24% (6099/25409)
Updating files:  25% (6353/25409)
Updating files:  26% (6607/25409)
Updating files:  27% (6861/25409)
Updating files:  28% (7115/25409)
Updating files:  29% (7369/25409)
Updating files:  30% (7623/25409)
Updating files:  31% (7877/25409)
Updating files:  32% (8131/25409)
Updating files:  33% (8385/25409)
Updating files:  34% (8640/25409)
Updating files:  35% (8894/25409)
Updating files:  35% (9056/25409)
Updating files:  36% (9148/25409)
Updating files:  37% (9402/25409)
Updating files:  38% (9656/25409)
Updating files:  39% (9910/25409)
Updating files:  40% (10164/25409)
Updating files:  41% (10418/25409)
Updating files:  42% (10672/25409)
Updating files:  43% (10926/25409)
Updating files:  44% (11180/25409)
Updating files:  45% (11435/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:  53% (13695/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:  74% (18989/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:  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:  94% (24029/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:ubuntu-22.04-ocaml-4.14@sha256:867908bd501e74116ca832f5a8a1e2f864b06345c0b6c9b18f833027905bb27a)
Unable to find image 'ocaml/opam:ubuntu-22.04-ocaml-4.14@sha256:867908bd501e74116ca832f5a8a1e2f864b06345c0b6c9b18f833027905bb27a' locally
docker.io/ocaml/opam@sha256:867908bd501e74116ca832f5a8a1e2f864b06345c0b6c9b18f833027905bb27a: Pulling from ocaml/opam
11581404396c: Pulling fs layer
36e7f058f960: Pulling fs layer
ff0f9d0ea15b: Pulling fs layer
11581404396c: Verifying Checksum
11581404396c: Download complete
11581404396c: Pull complete
ff0f9d0ea15b: Verifying Checksum
ff0f9d0ea15b: Download complete
36e7f058f960: Verifying Checksum
36e7f058f960: Download complete
36e7f058f960: Pull complete
ff0f9d0ea15b: Pull complete
Digest: sha256:867908bd501e74116ca832f5a8a1e2f864b06345c0b6c9b18f833027905bb27a
Status: Downloaded newer image for ocaml/opam@sha256:867908bd501e74116ca832f5a8a1e2f864b06345c0b6c9b18f833027905bb27a
2022-04-07 13:29.26 ---> using "09ddb2c333d3ce8e7461c89bfcc944087de1188ac4a437a0c608f18d72e268c6" 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.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:29.26 ---> using "4c70dc9dd595ed2e1cc431533a90c1dea615385a8fbbf48bcc88617025a4bef1" 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:29.26 ---> using "f32573f5c036e09f947763f4da01ea34ff30e54173792715034ae49e8be84732" from cache

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam"))
2022-04-07 13:29.26 ---> using "044b407077b4be5780437a5e04dc4f1dac9ff55f8ad03f1063b3a7bbaa77250b" 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:29.26 ---> using "f5f95200826ec3c2fed86384625ff19f453578e79f3c97b3d7dba1e9626deab7" 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:29.26 ---> using "c1a718438fae3d6f16f8412b4d962f6b1f12b35ad2bb2b3637604bc781e4fcfc" from cache

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

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

/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:29.58 ---> saved as "8352e21da40668b871b5be79ea8a984a5ebd77363b160c94ff331b71d37cc3f8"

/home/opam: (run (network host)
                 (shell "opam update --depexts"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://security.ubuntu.com/ubuntu jammy-security InRelease
- Get:2 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
- Hit:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
- Hit:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
- Get:5 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [267 kB]
- Get:6 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages [1782 kB]
- Get:7 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages [147 kB]
- Get:8 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [17.5 MB]
- Fetched 20.0 MB in 3s (7456 kB/s)
- Reading package lists...
- 
2022-04-07 13:30.04 ---> saved as "e1f3b71f3ed5cff83149b46593d594b005af1d855c1e768eab89050f24c8763d"

/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 \"\\\"ubuntu-22.04\\\"\"; 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] conf-python-3.9.0.0 is not installed.

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.10-minimal:amd64.
- (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 ... 15631 files and directories currently installed.)
- Preparing to unpack .../libpython3.10-minimal_3.10.4-3_amd64.deb ...
- Unpacking libpython3.10-minimal:amd64 (3.10.4-3) ...
- Selecting previously unselected package python3.10-minimal.
- Preparing to unpack .../python3.10-minimal_3.10.4-3_amd64.deb ...
- Unpacking python3.10-minimal (3.10.4-3) ...
- Setting up libpython3.10-minimal:amd64 (3.10.4-3) ...
- Setting up python3.10-minimal (3.10.4-3) ...
- 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 ... 15925 files and directories currently installed.)
- Preparing to unpack .../0-python3-minimal_3.10.4-0ubuntu2_amd64.deb ...
- Unpacking python3-minimal (3.10.4-0ubuntu2) ...
- Selecting previously unselected package media-types.
- Preparing to unpack .../1-media-types_7.0.0_all.deb ...
- Unpacking media-types (7.0.0) ...
- Selecting previously unselected package libmpdec3:amd64.
- Preparing to unpack .../2-libmpdec3_2.5.1-2build2_amd64.deb ...
- Unpacking libmpdec3:amd64 (2.5.1-2build2) ...
- Selecting previously unselected package libpython3.10-stdlib:amd64.
- Preparing to unpack .../3-libpython3.10-stdlib_3.10.4-3_amd64.deb ...
- Unpacking libpython3.10-stdlib:amd64 (3.10.4-3) ...
- Selecting previously unselected package python3.10.
- Preparing to unpack .../4-python3.10_3.10.4-3_amd64.deb ...
- Unpacking python3.10 (3.10.4-3) ...
- Selecting previously unselected package libpython3-stdlib:amd64.
- Preparing to unpack .../5-libpython3-stdlib_3.10.4-0ubuntu2_amd64.deb ...
- Unpacking libpython3-stdlib:amd64 (3.10.4-0ubuntu2) ...
- Setting up python3-minimal (3.10.4-0ubuntu2) ...
- 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 ... 16326 files and directories currently installed.)
- Preparing to unpack .../python3_3.10.4-0ubuntu2_amd64.deb ...
- Unpacking python3 (3.10.4-0ubuntu2) ...
- Setting up media-types (7.0.0) ...
- Setting up libmpdec3:amd64 (2.5.1-2build2) ...
- Setting up libpython3.10-stdlib:amd64 (3.10.4-3) ...
- Setting up libpython3-stdlib:amd64 (3.10.4-0ubuntu2) ...
- Setting up python3.10 (3.10.4-3) ...
- Setting up python3 (3.10.4-0ubuntu2) ...
- running python rtupdate hooks for python3.10...
- running python post-rtupdate hooks for python3.10...
- Processing triggers for libc-bin (2.35-0ubuntu3) ...

<><> 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:30.30 ---> saved as "0450a3ba706f3290d7a6b78944c4a130c3974212a763cdfe736ca84175145e4c"
Job succeeded
2022-04-07 13:30.53: Job succeeded