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.
This commit is contained in:
BaaRai
2026-10-10 17:50:07 +02:00
parent 24e40338b1
commit 78a2d2c01f
+5 -1
View File
@@ -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