From b3ff96c46ae45ecfbe3122e29f26c81116bb571f Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Thu, 12 Dec 2024 14:57:15 -0600 Subject: [PATCH 1/2] fix: add retry logic to prevent race condition failure --- .github/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0d8ca6513..b40057a40 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -169,7 +169,9 @@ jobs: run: | cp ./install-foundry-zksync ./foundryup-zksync/* /tmp/ cd /tmp - ./install-foundry-zksync + for i in {1..3}; do + ./install-foundry-zksync && break || echo "Retrying in 5 seconds..." && sleep 5 + done - name: Verify anvil-zksync installation run: anvil-zksync --version \ No newline at end of file From e8dc8728903c7f57092f7476968c2eef4816dda0 Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Thu, 12 Dec 2024 15:15:34 -0600 Subject: [PATCH 2/2] fix: remove macos due to rate limits --- .github/workflows/test.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b40057a40..b535cb275 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -157,11 +157,7 @@ jobs: check-ci-install-anvil: name: CI install anvil-zksync - strategy: - fail-fast: false - matrix: - os: [ubuntu-22.04, macos-latest] - runs-on: ${{ matrix.os }} + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 @@ -169,9 +165,7 @@ jobs: run: | cp ./install-foundry-zksync ./foundryup-zksync/* /tmp/ cd /tmp - for i in {1..3}; do - ./install-foundry-zksync && break || echo "Retrying in 5 seconds..." && sleep 5 - done + ./install-foundry-zksync - name: Verify anvil-zksync installation run: anvil-zksync --version \ No newline at end of file