fix: run flaky upstream tests sequentially (#15)

* fix: run flaky upstream tests sequentially

* chore: run flaky tests first to fail early

There are fewer of them so they'll fail quickly and allow the CI run to just be restarted.
This commit is contained in:
Arran Schlosberg 2024-09-12 19:53:38 +01:00 committed by GitHub
parent a574ae6ef0
commit 2d3894fb97
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,4 +17,7 @@ jobs:
with:
go-version: 1.21.4
- name: Run tests
run: go test -short $(go list ./... | grep -Pv 'go-ethereum/(accounts/keystore|eth/downloader|miner)$')
run: | # Upstream flakes are race conditions exacerbated by concurrent tests
FLAKY_REGEX='go-ethereum/(eth|accounts/keystore|eth/downloader|miner)$';
go list ./... | grep -P "${FLAKY_REGEX}" | xargs -n 1 go test -short;
go test -short $(go list ./... | grep -Pv "${FLAKY_REGEX}");