fix: run flaky upstream tests sequentially

This commit is contained in:
Arran Schlosberg 2024-09-12 11:23:24 +01:00
parent d31803a0ee
commit b869f36afb
No known key found for this signature in database
GPG key ID: 8A30F7E4344B4EF3

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 test -short $(go list ./... | grep -Pv "${FLAKY_REGEX}");
go list ./... | grep -P "${FLAKY_REGEX}" | xargs -n 1 go test -short;