Retry setup tests on non-staging branches to prevent flakeyness

This commit is contained in:
Konstantin Wohlwend 2026-04-13 14:32:46 -07:00
parent f7c6e69704
commit c46767f4e8
2 changed files with 16 additions and 2 deletions

View File

@ -48,5 +48,12 @@ jobs:
tail: true
wait-for: 120s
log-output-if: true
- name: Run tests
- name: Run tests (first attempt)
id: run-tests-first-attempt
continue-on-error: ${{ (github.head_ref || github.ref_name) != 'main' && (github.head_ref || github.ref_name) != 'dev' }}
run: pnpm run test run --reporter=verbose
# These tests are often flakey, as a temporary measure we retry them once.
- name: Run tests (retry once on non-dev/main branches)
if: ${{ (github.head_ref || github.ref_name) != 'main' && (github.head_ref || github.ref_name) != 'dev' && steps.run-tests-first-attempt.outcome == 'failure' }}
run: pnpm run test run --reporter=verbose

View File

@ -46,5 +46,12 @@ jobs:
tail: true
wait-for: 120s
log-output-if: true
- name: Run tests
- name: Run tests (first attempt)
id: run-tests-first-attempt
continue-on-error: ${{ (github.head_ref || github.ref_name) != 'main' && (github.head_ref || github.ref_name) != 'dev' }}
run: pnpm run test run --reporter=verbose
# These tests are often flakey, as a temporary measure we retry them once.
- name: Run tests (retry once on non-dev/main branches)
if: ${{ (github.head_ref || github.ref_name) != 'main' && (github.head_ref || github.ref_name) != 'dev' && steps.run-tests-first-attempt.outcome == 'failure' }}
run: pnpm run test run --reporter=verbose