Add overall test retries for all tests to make github action tests even more reliable

This commit is contained in:
David Dworken 2023-09-04 19:30:38 -07:00
parent fd018fa759
commit 22abfbc733
No known key found for this signature in database
2 changed files with 4 additions and 1 deletions

View File

@ -46,7 +46,7 @@ jobs:
- name: Go test
if: ${{ !startsWith(github.event.head_commit.message, 'Release') }}
run: |
make test
make retrying-test
# - name: Setup tmate session
# if: ${{ failure() }}
# uses: mxschmitt/action-tmate@v3

View File

@ -9,6 +9,9 @@ ftest:
go clean -testcache
TZ='America/Los_Angeles' HISHTORY_TEST=1 HISHTORY_SKIP_INIT_IMPORT=1 go test -v -p 1 -run "$(FILTER)" ./...
retrying-test:
for i in `seq 1 3`; do echo "Test attempt number $$i"; make test && break; done
acttest:
act push -j test -e .github/push_event.json --reuse --container-architecture linux/amd64