Skip to content

Commit cfbb55c

Browse files
committed
Check production schema compatibility before staging releases.
1 parent d5ddae4 commit cfbb55c

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎.github/workflows/platform-deploy-staging.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
3636
if: ${{ vars.VOID_PLATFORM_DEPLOY_ENABLED == 'true' && github.ref == 'refs/heads/main' }}
3737
needs: check-ref
3838
uses: ./.github/workflows/platform-ci.yml
39+
with:
40+
# Exercise the production baseline before main can be tagged for release.
41+
require-schema-compat: true
3942
permissions:
4043
contents: read
4144
deployments: read

‎TESTING.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ API integration fixtures reset their tables with one ordered SQL block. Use `cle
166166
than repeating per-table cleanup; it keeps foreign-key delete behavior and migration history
167167
intact in PGlite and PostgreSQL.
168168

169-
The schema-compatibility job copies the candidate's `.github/scripts/schema-compat-tests.ts` runner
169+
Staging CI on main also runs the production schema-compatibility gate, so its failures are caught
170+
before tagging a release. The job copies the candidate's `.github/scripts/schema-compat-tests.ts` runner
170171
before checking out the deployed revision. It runs every deployed API test file against its own
171172
clone of the upgraded PostgreSQL database, with two files in flight. Separate databases
172173
prevent cross-project cleanup races and leaked fixture tables while preserving real multi-connection

0 commit comments

Comments
 (0)