(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 opensuse-15.3-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:opensuse-15.3-ocaml-4.14@sha256:18bd6a5b9c5a8bd8d5fa948c22ab4136eba6c220ec70283511471f85377c5c72
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 "\"opensuse-15.3\""; 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:opensuse-15.3-ocaml-4.14@sha256:18bd6a5b9c5a8bd8d5fa948c22ab4136eba6c220ec70283511471f85377c5c72-conf-python-3.9.0.0-408cb884f1855ff33d5c4b904ad54843ed97f9c6"
2022-04-07 12:56.07: Using OBuilder spec:
((from ocaml/opam:opensuse-15.3-ocaml-4.14@sha256:18bd6a5b9c5a8bd8d5fa948c22ab4136eba6c220ec70283511471f85377c5c72)
 (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 \"\\\"opensuse-15.3\\\"\"; 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.43: Waiting for worker...
2022-04-07 13:22.01: Got resource from pool OCluster
Building on x86-bm-12.ocamllabs.io
All commits already cached
Updating files:  26% (6623/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:  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:  47% (12023/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:  71% (18117/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:  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:  95% (24349/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:opensuse-15.3-ocaml-4.14@sha256:18bd6a5b9c5a8bd8d5fa948c22ab4136eba6c220ec70283511471f85377c5c72)
2022-04-07 13:22.21 ---> using "8882f0c1e04659c545092aeb4282ea51c95329753808e75f1cf5482f9b3702f1" 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.21 ---> using "102d72d8901ca227b745bf1b99842e97aaad663142de4a64ee72de909bdd8c27" 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.21 ---> using "09b85a2b77e72448d1c789186a9450ce6a353ddf790fd5a7bf81351d92b42bd7" from cache

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam"))
2022-04-07 13:22.21 ---> using "5647f4778ae5e807f84254c756a1a7d5ec414ae0b13290c935d7c6bf5ce5237b" 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.21 ---> using "25cecbc2e7fa4afa9998f4143adc4e9887ed2ec99f4dc2316a8f07ac41239c7b" 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.21 ---> using "844d1c542a8abf49d3f3252f27f4b795d308e10602a13dfcd7bd416a2a903069" from cache

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

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

/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.16 ---> saved as "b899d367293570d6abece6fe43498af9ddeb92b3faacd4811592a23ab963ec01"

/home/opam: (run (network host)
                 (shell "opam update --depexts"))
+ /usr/bin/sudo "zypper" "--non-interactive" "update"
- Retrieving repository 'Update repository of openSUSE Backports' metadata [.
- done]
- Building repository 'Update repository of openSUSE Backports' cache [..
- ..done]
- Retrieving repository 'Update repository with updates from SUSE Linux Enterprise 15' metadata [.
- .
- .
- .
- .
- .
- done]
- Building repository 'Update repository with updates from SUSE Linux Enterprise 15' cache [..
- ..done]
- Loading repository data...
- Reading installed packages...
- Nothing to do.
2022-04-07 13:23.51 ---> saved as "c4ec0f5b991b692e930d27553f7d89ce610fd9ac9c20890ee4e451497a82bc24"

/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 \"\\\"opensuse-15.3\\\"\"; 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 "zypper" "--non-interactive" "install" "python3"
- Loading repository data...
- Reading installed packages...
- Resolving package dependencies...
- 
- The following 3 NEW packages are going to be installed:
-   libpython3_6m1_0 python3 python3-base
- 
- 3 new packages to install.
- Overall download size: 8.4 MiB. Already cached: 0 B. After the operation, additional 33.4 MiB will be used.
- Continue? [y/n/v/...? shows all options] (y): y
- Retrieving package libpython3_6m1_0-3.6.15-150300.10.21.1.x86_64 (1/3), 865.2 KiB (  2.7 MiB unpacked)
- Retrieving: libpython3_6m1_0-3.6.15-150300.10.21.1.x86_64.rpm [done]
- Retrieving package python3-base-3.6.15-150300.10.21.1.x86_64 (2/3),   7.5 MiB ( 30.5 MiB unpacked)
- Retrieving: python3-base-3.6.15-150300.10.21.1.x86_64.rpm [.
- done (18.7 KiB/s)]
- Retrieving package python3-3.6.15-150300.10.21.1.x86_64 (3/3),  82.9 KiB (141.3 KiB unpacked)
- Retrieving: python3-3.6.15-150300.10.21.1.x86_64.rpm [
- .done]
- 
- Checking for file conflicts: [......done]
- (1/3) Installing: libpython3_6m1_0-3.6.15-150300.10.21.1.x86_64 [............done]
- (2/3) Installing: python3-base-3.6.15-150300.10.21.1.x86_64 [...
- .......
- ..done]
- (3/3) Installing: python3-3.6.15-150300.10.21.1.x86_64 [........done]

<><> 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.47 ---> saved as "4b49d5ee09457b3be210210132b01ca4c04fb39c8288e261af098494f9b69efd"
Job succeeded
2022-04-07 13:27.43: Job succeeded