Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 37 additions & 7 deletions .github/actions/download-artifact-extract/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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_1.outcome == 'failure' && 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_1.outcome == 'failure' && steps.download_attempt_2.outcome == 'failure'
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: ${{ inputs.artifact-name }}
github-token: ${{ inputs.gh-token }}
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/zombienet_cumulus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,12 @@ jobs:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.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
Expand Down
Loading