Add retries to system-test-opensuse setup which flakes during database updates (#4622)

e.g. failure at
2681531811

Seems to be some sort of issue where they're updating their package
repository / database causing a spurious failure. I've seen this fail a
lot lately.
This commit is contained in:
Zanie Blue 2024-06-28 16:24:43 -04:00 committed by GitHub
parent 164160da34
commit 948c0f151b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -675,11 +675,19 @@ jobs:
name: "check system | python on opensuse"
runs-on: ubuntu-latest
container: opensuse/tumbleweed
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: "Install Python"
run: zypper install -y python310 which && python3.10 -m ensurepip && mv /usr/bin/python3.10 /usr/bin/python3
run: >
until
zypper install -y python310 which && python3.10 -m ensurepip && mv /usr/bin/python3.10 /usr/bin/python3;
do sleep 10;
done
# We retry because `zypper` can fail during remote repository updates
# The above will not sleep forever due to the job level timeout
- name: "Download binary"
uses: actions/download-artifact@v4