From 6d761baef823f6993e4afe2f668703e831813ed1 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Tue, 27 Jan 2026 20:59:30 -0800 Subject: [PATCH] [Tests] add retry logic --- .github/workflows/tests.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8d412ca..3be3016 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -69,7 +69,19 @@ jobs: - run: npm ls urchin - run: npx which urchin - run: env - - run: make TERM=xterm-256color TEST_SUITE="${{ matrix.suite }}" SHELL="${{ matrix.shell }}" URCHIN="$(npx which urchin)" test-${{ matrix.shell }} + - name: Run tests + shell: bash + run: | + for attempt in 1 2 3; do + timeout 600 make TERM=xterm-256color TEST_SUITE="${{ matrix.suite }}" SHELL="${{ matrix.shell }}" URCHIN="$(npx which urchin)" test-${{ matrix.shell }} && exit 0 + EXIT_CODE=$? + if [ $EXIT_CODE -ne 124 ]; then + exit $EXIT_CODE + fi + echo "Attempt ${attempt} timed out; retrying..." + done + echo "All 3 attempts timed out." + exit 1 nvm: permissions: