mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-11-13 11:40:53 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user