From 948c0f151b3c68f9a481968fa6b601e01ea2b554 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Fri, 28 Jun 2024 16:24:43 -0400 Subject: [PATCH] Add retries to `system-test-opensuse` setup which flakes during database updates (#4622) e.g. failure at https://github.com/astral-sh/uv/actions/runs/9714929523/job/26815318110 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. --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 83b34f850..a79f3b932 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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