diff --git a/.github/actions/download-artifact-extract/action.yml b/.github/actions/download-artifact-extract/action.yml index 6a9ec3308511f..688f0f6a02ec4 100644 --- a/.github/actions/download-artifact-extract/action.yml +++ b/.github/actions/download-artifact-extract/action.yml @@ -29,15 +29,45 @@ inputs: runs: using: "composite" steps: - - name: Download artifact + - name: Download artifact (attempt 1) + id: download_attempt_1 + continue-on-error: true + uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 + with: + name: ${{ inputs.artifact-name }} + github-token: ${{ inputs.gh-token }} + run-id: ${{ inputs.run-id }} + path: ${{ inputs.extract-path }} + + - name: Wait before retry 1 + if: steps.download_attempt_1.outcome == 'failure' shell: bash run: | - echo "::group::📦 Downloading ${{ inputs.artifact-name }}" - echo "Artifact: ${{ inputs.artifact-name }}" - echo "Run ID: ${{ inputs.run-id }}" - echo "::endgroup::" - - - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 + echo "::warning::Attempt 1 failed, retrying in 10s..." + sleep 10 + + - name: Download artifact (attempt 2) + id: download_attempt_2 + if: steps.download_attempt_1.outcome == 'failure' + continue-on-error: true + uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 + with: + name: ${{ inputs.artifact-name }} + github-token: ${{ inputs.gh-token }} + run-id: ${{ inputs.run-id }} + path: ${{ inputs.extract-path }} + + - name: Wait before retry 2 + if: steps.download_attempt_2.outcome == 'failure' + shell: bash + run: | + echo "::warning::Attempt 2 failed, retrying in 20s..." + sleep 20 + + - name: Download artifact (attempt 3) + id: download_attempt_3 + if: steps.download_attempt_2.outcome == 'failure' + uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 with: name: ${{ inputs.artifact-name }} github-token: ${{ inputs.gh-token }} diff --git a/.github/workflows/zombienet_cumulus.yml b/.github/workflows/zombienet_cumulus.yml index 0bbc040b7ca74..29f5490091f51 100644 --- a/.github/workflows/zombienet_cumulus.yml +++ b/.github/workflows/zombienet_cumulus.yml @@ -80,11 +80,12 @@ jobs: - name: Checkout uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - - uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0 + - name: Download test parachain artifact if: ${{ matrix.test.needs-wasm-binary }} + uses: ./.github/actions/download-artifact-extract with: - name: build-test-parachain-${{ needs.preflight.outputs.SOURCE_REF_SLUG }} - github-token: ${{ secrets.GITHUB_TOKEN }} + artifact-name: build-test-parachain-${{ needs.preflight.outputs.SOURCE_REF_SLUG }} + gh-token: ${{ secrets.GITHUB_TOKEN }} run-id: ${{ needs.preflight.outputs.BUILD_RUN_ID }} - name: zombienet_test