diff --git a/.github/workflows/axon-start-test.yml b/.github/workflows/axon-start-test.yml index 89c3fd8c6..15876aeb5 100644 --- a/.github/workflows/axon-start-test.yml +++ b/.github/workflows/axon-start-test.yml @@ -56,7 +56,7 @@ jobs: npx zx <<'EOF' import { waitXBlocksPassed } from './devtools/ci/scripts/helper.js' - await waitXBlocksPassed('http://127.0.0.1:8000', 2); + await retry(3, '6s', () => waitXBlocksPassed('http://127.0.0.1:8000', 2)) EOF timeout-minutes: 1 @@ -122,12 +122,12 @@ jobs: npx zx <<'EOF' import { waitXBlocksPassed } from './devtools/ci/scripts/helper.js' - await Promise.all([ + await retry(3, '6s', () => Promise.all([ waitXBlocksPassed('http://127.0.0.1:8001', 4), waitXBlocksPassed('http://127.0.0.1:8002', 4), waitXBlocksPassed('http://127.0.0.1:8003', 4), waitXBlocksPassed('http://127.0.0.1:8004', 4), - ]) + ])) EOF timeout-minutes: 1 diff --git a/.github/workflows/build_image_ghcr.yml b/.github/workflows/build_image_ghcr.yml index 6a797f1c3..027fd6b45 100644 --- a/.github/workflows/build_image_ghcr.yml +++ b/.github/workflows/build_image_ghcr.yml @@ -122,6 +122,6 @@ jobs: npx zx <<'EOF' import { waitXBlocksPassed } from '../ci/scripts/helper.js' - await waitXBlocksPassed('http://127.0.0.1:8000', 2); + await retry(3, '6s', () => waitXBlocksPassed('http://127.0.0.1:8000', 2)) EOF timeout-minutes: 2 diff --git a/.github/workflows/hardfork_test.yml b/.github/workflows/hardfork_test.yml index c8ecb6b5a..6cfb47e1b 100644 --- a/.github/workflows/hardfork_test.yml +++ b/.github/workflows/hardfork_test.yml @@ -65,12 +65,12 @@ jobs: npx zx <<'EOF' import { waitXBlocksPassed } from './devtools/ci/scripts/helper.js' - await Promise.all([ + await retry(3, '6s', () => Promise.all([ waitXBlocksPassed('http://127.0.0.1:8001', 4), waitXBlocksPassed('http://127.0.0.1:8002', 4), waitXBlocksPassed('http://127.0.0.1:8003', 4), waitXBlocksPassed('http://127.0.0.1:8004', 4), - ]) + ])) EOF timeout-minutes: 1 diff --git a/.github/workflows/web3_compatible.yml b/.github/workflows/web3_compatible.yml index b395a4fdb..179fef948 100644 --- a/.github/workflows/web3_compatible.yml +++ b/.github/workflows/web3_compatible.yml @@ -140,8 +140,9 @@ jobs: run: | npx zx <<'EOF' import { waitXBlocksPassed } from './devtools/ci/scripts/helper.js' - await waitXBlocksPassed('http://127.0.0.1:8000', 2); + await retry(3, '6s', () => waitXBlocksPassed('http://127.0.0.1:8000', 2)) EOF + - name: Publish reports if: success() || failure() uses: actions/upload-artifact@v3