سامانه صدور فاکتور و حسابداری
ci(phase1a): independently classify 30 function definition drifts before applying guards
davoodmehraban89 committed
Oct 16, 2026 at 14:08 UTC
eea0c665c17e34fd17665db6162e672f4a161518
1 file changed
+10
.github/workflows/phase1a-supabase-parity.yml
+10
@@ -59,6 +59,15 @@ jobs:
59
echo 'matched=false' >> "$GITHUB_OUTPUT"
60
echo '::warning::Unreconciled baseline schema function-definition differences. Finance assertions will still run.'
61
fi
62
+ - name: Identify actual versus formatting-only function definition drift
63
+ id: func_drift
64
+ run: |
65
+ PGPASSWORD=postgres psql -h 127.0.0.1 -p 54322 -U postgres -d postgres -X -qAt -v ON_ERROR_STOP=1 -f supabase/tests/phase1a_function_fingerprint.sql > phase1a-local-functions.json
66
+ if node scripts/phase1a-classify-function-drift.mjs supabase/tests/fixtures/phase1a_production_function_semantics_20261016.json phase1a-local-functions.json; then
67
+ echo 'class_ok=true' >> "$GITHUB_OUTPUT"
68
+ else
69
+ echo 'class_ok=false' >> "$GITHUB_OUTPUT"
70
+ fi
71
- name: Apply 1A-only migrations on disposable Supabase CLI database
72
run: |
73
PGPASSWORD=postgres psql -h 127.0.0.1 -p 54322 -U postgres -d postgres -X -v ON_ERROR_STOP=1 -f /tmp/finora-phase1a-migrations/20261016100000_phase1a_server_journal_invariants.sql
@@ -86,5 +95,6 @@ jobs:
95
path: |
96
phase1a-schema-diff.json
97
phase1a-local-schema.json
98
+ phase1a-function-classification.json
99
retention-days: 7
100
if-no-files-found: ignore