From 7e24bbc0875094a21a14ec743ad76b2326a0a7d5 Mon Sep 17 00:00:00 2001 From: Houmgaor Date: Fri, 27 Feb 2026 13:28:45 +0100 Subject: [PATCH] ci: serialize test packages to fix shared database race condition The migrations and channelserver packages both DROP and recreate the public schema on the shared erupe_test database. With parallel package execution, they destroy each other's schema mid-migration. Adding -p 1 serializes package execution while preserving t.Parallel() within each package. --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 248517aa8..9749509ba 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -57,7 +57,7 @@ jobs: run: go mod download - name: Run Tests with Race Detector and Coverage - run: go test -race -coverprofile=coverage.out ./... -timeout=10m + run: go test -race -p 1 -coverprofile=coverage.out ./... -timeout=10m env: TEST_DB_HOST: localhost TEST_DB_PORT: 5433