From 2d3894fb9790453053ebe570df57b456794d96a8 Mon Sep 17 00:00:00 2001 From: Arran Schlosberg <519948+ARR4N@users.noreply.github.com> Date: Thu, 12 Sep 2024 19:53:38 +0100 Subject: [PATCH] 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. --- .github/workflows/go.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 62517d0699..48f6560953 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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}");