From f087ec9f88057e4196b6380a529c90bc55acf809 Mon Sep 17 00:00:00 2001 From: mrleo1nid <43583385+mrleo1nid@users.noreply.github.com> Date: Fri, 23 Oct 2026 12:55:53 +0300 Subject: [PATCH] fix(ci): serialize integration suites sharing a database --- .gitea/workflows/ci-db.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci-db.yml b/.gitea/workflows/ci-db.yml index 07265e6..54bd5a1 100644 --- a/.gitea/workflows/ci-db.yml +++ b/.gitea/workflows/ci-db.yml @@ -71,7 +71,9 @@ jobs: done - name: Go — миграции и запросы store working-directory: services/api - run: go test -tags integration -count=1 -v ./internal/dbtest/ ./internal/social/ + # These suites share one database; dbtest also rolls all migrations down + # and cleans orphan catalog rows. Do not run the packages concurrently. + run: go test -p 1 -tags integration -count=1 -v ./internal/dbtest/ ./internal/social/ - name: Go — сквозной сценарий пользователя (newApp на Postgres, Redis, Meilisearch) working-directory: services/api run: go test -tags integration -count=1 -v -run TestUserJourney ./cmd/api/