Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

fix(ci): run the release path's Postgres specs in band

Yudhi Armyndharisd89ebd59af44
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index df5333f81..287252f25 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -208,7 +208,12 @@ jobs:
# one database). Both specs self-skip unless DATABASE_TYPE=postgres, so they are a no-op
# in the default test job and only execute here against the postgres:16 service.
- name: Postgres specs (FTS provider + boot-migration lock)
- run: npx jest src/database/migrations/__tests__/1782400000000-AddMessagesFts.pg.spec.ts src/database/migrations/__tests__/pg-boot-migrations.pg.spec.ts
+ # --runInBand: same reason the CI job passes it — both specs issue DDL against the one
+ # shared service database, and jest's default file-parallelism races their catalog writes
+ # (the first v0.19.0 tag failed this step on `relation "messages" already exists` over a
+ # tree CI had passed minutes earlier). The lock spec's own two-migrator race is in-file
+ # (Promise.all) and unaffected by runInBand.
+ run: npx jest --runInBand src/database/migrations/__tests__/1782400000000-AddMessagesFts.pg.spec.ts src/database/migrations/__tests__/pg-boot-migrations.pg.spec.ts
env:
DATABASE_TYPE: postgres
DATABASE_HOST: localhost
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0d2255514..a020086c7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -35,6 +35,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `POST /sessions/:sessionId/stop` escalates to a force-destroy when the graceful disconnect fails and answers a retryable `502` (`code: 'SESSION_STOP_INCOMPLETE'`, session left `disconnected`, no success audit) only when both fail — a wedged browser no longer leaks until the next start. The `502` is documented in the API reference and all five SDKs.
- The status and chat-media stores share one orphaned-file reconciliation sweep, and the integration module reads the engine registry and session table through narrow dependencies instead of importing the session module.
- Removed unused code, dead DTO types and three dev dependencies, plus dead dashboard API helpers.
+- The release workflow now runs its two Postgres-gated specs in band, matching the CI job it mirrors: jest's default file-parallelism ran them simultaneously against the one shared postgres service, racing their schema resets — the first v0.19.0 tag attempt failed its own release gate on the boot-migration advisory-lock spec (`relation "messages" already exists`) over a tree CI had passed minutes earlier, because the CI job already passes `--runInBand` for exactly this reason.
### Removed