فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
ci(a02): require schema-only fingerprint after REAL synthetic isolated LocalDB restore
davoodmehraban89 committed
Oct 30, 2026 at 20:01 UTC
3f411001dfa8215afda5d13c009687a3d95db0d9
1 file changed
+12
.github/workflows/pr-quality-gates.yml
+12
@@ -110,6 +110,17 @@ jobs:
110
$result.canImport -ne $false) {
111
throw 'A02 SQL offline preflight selftest breached no-write contract'
112
}
113
+ - name: Isolated schema fingerprint safety selftest (synthetic; no SQL)
114
+ shell: pwsh
115
+ run: |
116
+ $out = & powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -File './scripts/a02-isolated-schema-inventory.ps1' -Mode Test
117
+ if ($LASTEXITCODE -ne 0) { throw 'A02 schema inventory selftest failed' }
118
+ $s = ($out | Out-String | ConvertFrom-Json)
119
+ if ($s.status -ne 'schema-fingerprint-selftest-passed' -or
120
+ $s.sqlOpened -ne $false -or $s.userRowsRead -ne $false -or
121
+ $s.databaseModified -ne $false -or $s.canImport -ne $false) {
122
+ throw 'A02 schema inventory selftest safety breach'
123
+ }
124
- name: Actual synthetic SQL LocalDB backup and isolated restore
125
shell: pwsh
126
run: |
@@ -122,6 +133,7 @@ jobs:
133
$report.dbccPassed -ne $true -or
134
$report.syntheticRecords -ne 2 -or
135
$report.syntheticTotal -ne 80235 -or
136
+ $report.schemaOnlyInventoryVerified -ne $true -or
137
$report.canImport -ne $false) {
138
throw 'A02 synthetic LocalDB restore did not satisfy safety/reconciliation contract'
139
}