mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-17 10:20:44 +00:00
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:
parent
a574ae6ef0
commit
2d3894fb97
1 changed files with 4 additions and 1 deletions
5
.github/workflows/go.yml
vendored
5
.github/workflows/go.yml
vendored
|
|
@ -17,4 +17,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
go-version: 1.21.4
|
go-version: 1.21.4
|
||||||
- name: Run tests
|
- 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}");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue