From 78a2d2c01f2abf50c5cf67aedc368739c1133512 Mon Sep 17 00:00:00 2001 From: BaaRai <130491490+BaaRai@users.noreply.github.com> Date: Sat, 10 Oct 2026 17:50:07 +0200 Subject: [PATCH] ci: serialize test packages against the shared postgres The rotating agent-package failures were cross-package database interference: go test runs package binaries in parallel and they all share the one postgres service, so fixtures delete each other's rows. -p 1 makes package execution serial and the database deterministic. --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 07fd52c..7a8737c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,7 +39,11 @@ jobs: # test that passes locally but is timing-sensitive on 2-core CI runners. # Skipping keeps the baseline green so real regressions stand out. - name: go test - run: go test ./... -skip 'TestInterceptFilterHTTP|TestGraphOverviewExpandsAssociatedCompanyScope|TestCaptureApprovalLifecycle|TestSideUsageRecordedOnceOnConsumerCancellation' + # -p 1: package test suites share the single postgres service; running + # them in parallel makes packages delete each other's rows (observed + # as rotating failures in the agent package). Serial package execution + # keeps the database state deterministic. + run: go test -p 1 ./... -skip 'TestInterceptFilterHTTP|TestGraphOverviewExpansAssociatedCompanyScope|TestCaptureApprovalLifecycle|TestSideUsageRecordedOnceOnConsumerCancellation' web: runs-on: ubuntu-latest