(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 oraclelinux-8-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:oraclelinux-8-ocaml-4.14@sha256:7c5c7121cfc167cfe4869c103c3461eae9de1b08fbf358b2323b20d0354e0762
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 "\"oraclelinux-8\""; 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:oraclelinux-8-ocaml-4.14@sha256:7c5c7121cfc167cfe4869c103c3461eae9de1b08fbf358b2323b20d0354e0762-conf-python-3.9.0.0-408cb884f1855ff33d5c4b904ad54843ed97f9c6"
2022-04-07 12:56.07: Using OBuilder spec:
((from ocaml/opam:oraclelinux-8-ocaml-4.14@sha256:7c5c7121cfc167cfe4869c103c3461eae9de1b08fbf358b2323b20d0354e0762)
 (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 \"\\\"oraclelinux-8\\\"\"; 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.45: Waiting for worker...
2022-04-07 13:22.02: Got resource from pool OCluster
Building on phoebe.ocamllabs.io
All commits already cached
Updating files:  37% (9490/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:  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:  81% (20582/25409)
Updating files:  81% (20826/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:oraclelinux-8-ocaml-4.14@sha256:7c5c7121cfc167cfe4869c103c3461eae9de1b08fbf358b2323b20d0354e0762)
2022-04-07 13:22.29 ---> using "10b016b1a97471a61730024bbaacbbe17c7e4d533657e2fdd4b7f713039c2b49" 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:22.29 ---> using "6d9193fc128803b53e2d842b073a945cda9d277d2f798edefe3dfe055f7ba5c9" 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:22.29 ---> using "0ce6dc1d1ae8239e84cfdef549390b0825649f48aa39691574cfbfd211b45b0f" from cache

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam"))
2022-04-07 13:22.29 ---> using "a610733621587651c240167f15c0959069098f22a79159d37b8f6052d7441696" 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:22.29 ---> using "a14b73f048df1f68d0dc088fc074ebf96ab9d8dbbb00b0b8af9ffebc7a123ffe" 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:22.29 ---> using "edc69ccf16b1fc3347594370e1de93048c9e70ae8fa5d095bdcc8851d47b0e70" from cache

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

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

/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:23.06 ---> saved as "98e7b3d88a9bfb1ea5527dfa4dd8586d200d7f13d8959a45b0b26da2cf9c11d8"

/home/opam: (run (network host)
                 (shell "opam update --depexts"))
+ /usr/bin/sudo "yum" "makecache"
- Oracle Linux 8 BaseOS Latest (x86_64)            53 MB/s |  43 MB     00:00    
- Oracle Linux 8 Application Stream (x86_64)       40 MB/s |  32 MB     00:00    
- Last metadata expiration check: 0:00:10 ago on Thu Apr  7 13:23:18 2022.
- Metadata cache created.
2022-04-07 13:23.33 ---> saved as "f58f11058aba25b069c2640dad1d440a2b7ad81bdfa8e75b3433bc64c7247884"

/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 \"\\\"oraclelinux-8\\\"\"; 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 "yum" "install" "-y" "python3"
- Last metadata expiration check: 0:00:33 ago on Thu Apr  7 13:23:18 2022.
- Dependencies resolved.
- ==============================================================================================
-  Package               Arch    Version                                Repository          Size
- ==============================================================================================
- Installing:
-  python36              x86_64  3.6.8-38.module+el8.5.0+20329+5c5719bc ol8_appstream       19 k
- Installing dependencies:
-  platform-python-pip   noarch  9.0.3-20.el8                           ol8_baseos_latest  1.7 M
-  python3-pip           noarch  9.0.3-20.el8                           ol8_appstream       20 k
-  python3-setuptools    noarch  39.2.0-6.el8                           ol8_baseos_latest  163 k
- Enabling module streams:
-  python36                      3.6                                                            
- 
- Transaction Summary
- ==============================================================================================
- Install  4 Packages
- 
- Total download size: 1.9 M
- Installed size: 7.6 M
- Downloading Packages:
- (1/4): python3-pip-9.0.3-20.el8.noarch.rpm      213 kB/s |  20 kB     00:00    
- (2/4): python3-setuptools-39.2.0-6.el8.noarch.r 1.6 MB/s | 163 kB     00:00    
- (3/4): python36-3.6.8-38.module+el8.5.0+20329+5 2.2 MB/s |  19 kB     00:00    
- (4/4): platform-python-pip-9.0.3-20.el8.noarch.  12 MB/s | 1.7 MB     00:00    
- --------------------------------------------------------------------------------
- Total                                            13 MB/s | 1.9 MB     00:00     
- Running transaction check
- Transaction check succeeded.
- Running transaction test
- Transaction test succeeded.
- Running transaction
-   Preparing        :                                                        1/1
-  
-   Installing       : python3-setuptools-39.2.0-6.el8.noarch                 1/4 
-   Installing       : platform-python-pip-9.0.3-20.el8.noarch                2/4 
-   Installing       : python36-3.6.8-38.module+el8.5.0+20329+5c5719bc.x86_   3/4 
-   Running scriptlet: python36-3.6.8-38.module+el8.5.0+20329+5c5719bc.x86_   3/4 
-   Installing       : python3-pip-9.0.3-20.el8.noarch                        4/4 
-   Running scriptlet: python3-pip-9.0.3-20.el8.noarch                        4/4 
-   Verifying        : platform-python-pip-9.0.3-20.el8.noarch                1/4 
-   Verifying        : python3-setuptools-39.2.0-6.el8.noarch                 2/4 
-   Verifying        : python3-pip-9.0.3-20.el8.noarch                        3/4 
-   Verifying        : python36-3.6.8-38.module+el8.5.0+20329+5c5719bc.x86_   4/4 
- 
- Installed:
-   platform-python-pip-9.0.3-20.el8.noarch                                       
-   python3-pip-9.0.3-20.el8.noarch                                               
-   python3-setuptools-39.2.0-6.el8.noarch                                        
-   python36-3.6.8-38.module+el8.5.0+20329+5c5719bc.x86_64                        
- 
- Complete!
+ /usr/bin/sudo "rpm" "-q" "--whatprovides" "python3"
- python36-3.6.8-38.module+el8.5.0+20329+5c5719bc.x86_64

<><> 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:24.00 ---> saved as "0d3b75e3bb8dd43e715515d12fac84ae1549ba51c0b0c92de742b3531a5b1141"
Job succeeded
2022-04-07 13:24.16: Job succeeded