Skip to content

Commit

Permalink
Merge pull request #4922 from systeminit/fix/try-again-on-deploy
Browse files Browse the repository at this point in the history
fix: up max retrys on api test to remove test flake
  • Loading branch information
johnrwatson authored Nov 5, 2024
2 parents 3c67e5b + 228ce45 commit cd78f09
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/action-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5

- name: Install actionlint
run: go install github.com/rhysd/actionlint/cmd/actionlint@latest
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/run-api-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ jobs:
echo "Using workspace ID: $workspace_id"
# Retry loop with 3 attempts
# Retry loop with 5 attempts
n=0
max_retries=3
max_retries=5
until [ $n -ge $max_retries ]
do
Expand All @@ -115,6 +115,7 @@ jobs:
n=$((n+1))
echo "Attempt $n/$max_retries failed with exit code $exit_code! Retrying..."
sleep 5
done
if [ $n -ge $max_retries ]; then
Expand Down

0 comments on commit cd78f09

Please sign in to comment.