From f16aac07f3346964323aa1bb353d3c9033ec2962 Mon Sep 17 00:00:00 2001 From: Dipesh Babu Date: Mon, 16 Nov 2026 23:49:58 -0500 Subject: [PATCH] Retry the package smoke artifact download The artifact service sometimes cannot find a just-uploaded artifact, even by ID, failing the package smoke job. Retry the download twice with 20s and 60s waits instead of granting actions permissions that the reusable release workflow does not pass. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b57cbcf..17e4ac4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -355,10 +355,37 @@ jobs: path: dist/* if-no-files-found: error - # Download by the returned ID: a by-name lookup immediately after upload - # can miss the newly finalized artifact. + # Download by the returned ID. The artifact service can take a moment to + # list a newly finalized artifact, so retry with growing waits instead of + # requesting actions permissions that release.yml does not grant. - name: Download validated release artifact + id: download-package if: ${{ inputs.upload_release_artifact || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }} + continue-on-error: true + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 + with: + artifact-ids: ${{ steps.upload-package.outputs.artifact-id }} + path: .artifact-download-smoke + + - name: Wait before second download attempt + if: steps.download-package.outcome == 'failure' + run: sleep 20 + + - name: Retry validated release artifact download + id: download-package-retry + if: steps.download-package.outcome == 'failure' + continue-on-error: true + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 + with: + artifact-ids: ${{ steps.upload-package.outputs.artifact-id }} + path: .artifact-download-smoke + + - name: Wait before final download attempt + if: steps.download-package-retry.outcome == 'failure' + run: sleep 60 + + - name: Final validated release artifact download + if: steps.download-package-retry.outcome == 'failure' uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: artifact-ids: ${{ steps.upload-package.outputs.artifact-id }}