سامانه صدور فاکتور و حسابداری
ci(stage3): apply posted-source freeze migration only after base SQL on disposable JWT test stack
davoodmehraban89 committed
Oct 23, 2026 at 14:48 UTC
4c3f1d2f344260bdf503f5fc5f3798a6bc14c5ba
1 file changed
+13
.github/workflows/stage3-commercial-local-regression.yml
+13
@@ -26,6 +26,8 @@ jobs:
26
run: |
27
set -euo pipefail
28
supabase init --force
29
+ # Reserve the future Stage3 freeze migration: never run it before baseline/schema dependencies.
30
+ mv supabase/migrations/20261016104500_stage3_posted_source_immutable.sql /tmp/finora-stage3-posted-source-immutable.sql
31
python3 - <<'PY'
32
from pathlib import Path
33
for p in Path('supabase/migrations').glob('*.sql'):
@@ -75,6 +77,8 @@ jobs:
77
- name: Isolate local CLI and apply only Stage1 and Stage2.2 mode SQL
78
run: |
79
supabase init --force
80
+ # Reserve the future Stage3 freeze migration: never run it before baseline/schema dependencies.
81
+ mv supabase/migrations/20261016104500_stage3_posted_source_immutable.sql /tmp/finora-stage3-posted-source-immutable.sql
82
python3 - <<'PY'
83
from pathlib import Path
84
for p in Path('supabase/migrations').glob('*.sql'):
@@ -146,6 +150,8 @@ jobs:
150
run: |
151
set -euo pipefail
152
supabase init --force
153
+ # Reserve the future Stage3 freeze migration: never run it before baseline/schema dependencies.
154
+ mv supabase/migrations/20261016104500_stage3_posted_source_immutable.sql /tmp/finora-stage3-posted-source-immutable.sql
155
python3 - <<'PY'
156
from pathlib import Path
157
for p in Path('supabase/migrations').glob('*.sql'):
@@ -231,6 +237,8 @@ jobs:
237
test -z "${SUPABASE_DB_PASSWORD:-}" || exit 1
238
test -z "${SUPABASE_SERVICE_ROLE_KEY:-}" || exit 1
239
supabase init --force
240
+ # Reserve the future Stage3 freeze migration: never run it before baseline/schema dependencies.
241
+ mv supabase/migrations/20261016104500_stage3_posted_source_immutable.sql /tmp/finora-stage3-posted-source-immutable.sql
242
python3 - <<'PY'
243
from pathlib import Path
244
for p in Path('supabase/migrations').glob('*.sql'):
@@ -280,6 +288,8 @@ jobs:
288
test -z "${SUPABASE_DB_PASSWORD:-}" || exit 1
289
test -z "${SUPABASE_SERVICE_ROLE_KEY:-}" || exit 1
290
supabase init --force
291
+ # Reserve the future Stage3 freeze migration: never run it before baseline/schema dependencies.
292
+ mv supabase/migrations/20261016104500_stage3_posted_source_immutable.sql /tmp/finora-stage3-posted-source-immutable.sql
293
python3 - <<'PY'
294
from pathlib import Path
295
for p in Path('supabase/migrations').glob('*.sql'):
@@ -292,6 +302,9 @@ jobs:
302
for migration in /tmp/finora-stage3-ui-contract-migrations/*.sql; do
303
PGPASSWORD=postgres psql -h 127.0.0.1 -p 54322 -U postgres -d postgres -X -v ON_ERROR_STOP=1 -f "$migration" >/dev/null
304
done
305
+ # Apply additional JWT source-freeze guard ONLY in the disposable
306
+ # Stage3 RPC test stack; previous Stage1/2.2 baselines are unchanged.
307
+ PGPASSWORD=postgres psql -h 127.0.0.1 -p 54322 -U postgres -d postgres -X -v ON_ERROR_STOP=1 -f /tmp/finora-stage3-posted-source-immutable.sql >/dev/null
308
- name: Install pinned Chromium Playwright
309
run: |
310
npm install --no-save @playwright/test@1.55.0