From ae79d4c902e0a7f53c9c2b885fcc7f4fc26c42db Mon Sep 17 00:00:00 2001 From: Fraz Arshad Date: Mon, 22 Jul 2024 11:57:18 +0500 Subject: [PATCH 1/2] ci: added cleanup on retry --- .github/workflows/integration.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 3e3794c832e..0816e68ac5a 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -99,6 +99,7 @@ jobs: # won't increase the time for this workflow to complete. timeout_minutes: 20 command: scripts/registry.sh test ${{ matrix.cli }} ${{steps.get-branch.outputs.result}} + on_retry_command: rm $HOME/bin/agoric - name: notify on failure if: > From 0b1bf64916fda1a4b38b2eea1b2fbdcdcdc6b544 Mon Sep 17 00:00:00 2001 From: Fraz Arshad Date: Mon, 22 Jul 2024 22:17:37 +0500 Subject: [PATCH 2/2] chore: removing redundant code --- scripts/registry.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/registry.sh b/scripts/registry.sh index 6cc7f442325..4824ac1c3b4 100755 --- a/scripts/registry.sh +++ b/scripts/registry.sh @@ -104,8 +104,6 @@ integrationTest() { # Install the Agoric CLI on this machine's $PATH. case $1 in link-cli | link-cli/*) - # Prevent retries from failing with "must not already exist" - rm -f "$HOME/bin/agoric" yarn link-cli "$HOME/bin/agoric" persistVar AGORIC_CMD "[\"$HOME/bin/agoric\"]" ;;