From 3c622ceb41038eeb9b2d6cfd80fdab07844db66d Mon Sep 17 00:00:00 2001 From: Ngo Quoc Dat Date: Wed, 30 Sep 2026 14:17:43 +0700 Subject: [PATCH] ci: retry the test products download once after a minute --- .github/actions/unpack-test-products/action.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/actions/unpack-test-products/action.yml b/.github/actions/unpack-test-products/action.yml index 2be0423a5..44f39cdf7 100644 --- a/.github/actions/unpack-test-products/action.yml +++ b/.github/actions/unpack-test-products/action.yml @@ -22,7 +22,23 @@ runs: GH_TOKEN: ${{ github.token }} run: scripts/download-libs.sh + # download-artifact retries five times over about half a minute, and a blob storage outage has + # outlasted that (#3208), failing a whole shard before any test ran. One more attempt a minute + # later costs nothing when the first succeeds. - name: Download the built products + id: download-products + continue-on-error: true + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + name: test-products + + - name: Wait before retrying the download + if: steps.download-products.outcome == 'failure' + shell: bash + run: sleep 60 + + - name: Retry downloading the built products + if: steps.download-products.outcome == 'failure' uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: name: test-products