Skip to content

armgit / ARTEX

Public Imported from GitHub
0

ARTEX - AI autonomous penetration testing system (English translation; upstream: Autumn-27/ARTEX, AGPL-3.0)

ci: serialize test packages against the shared postgres

BaaRai78a2d2c01f2a
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