Treasury & Bank Transfer Management System — سامانه مدیریت خزانه‌داری و حواله‌های بانکی

Evaluate private V6 assertion fix on Windows, then lint build and native self-check with sanitized output

davoodmehraban89 committed Oct 17, 2026 at 23:05 UTC 769a726df49e0e765e472bee4e5fe3e36bb7695d
1 file changed +32 -1
.github/workflows/v6-isolated-failure-triage-once.yml
+32 -1
@@ -1,4 +1,4 @@
1 -name: V6 isolated test assertion triage (NOT V7)
1 +name: V6 private SQL unit assertion fix candidate evaluation (NOT V7)
2 on:
3 push:
4 branches: ['ci/public-windows-bridge-probe-20261017']
@@ -35,6 +35,11 @@ jobs:
35 if($LASTEXITCODE -ne 0){throw 'DOWNLOAD_FAILED'}
36 if((Get-FileHash $zip -Algorithm SHA256).Hash -ine '9ce46ce2d2a437e08cbf28146b2cf2ac0ed078c71f1aeb537764390cdd3c552f'){throw 'ZIP_HASH_MISMATCH'}
37 Expand-Archive -LiteralPath $zip -DestinationPath $root -Force
38 + $privatePatch=gh api 'repos/davoodmehraban89/TreasuryFlow-Validation-Private/contents/qa/patches/v6-sql-assertion-fix.mjs?ref=2265e7e370d254eaa09988164559b2cd0c10c0d7' 2>$null | ConvertFrom-Json
39 + if($LASTEXITCODE -ne 0 -or !$privatePatch.content){throw 'PRIVATE_PATCH_DOWNLOAD_FAILED'}
40 + $patchFile=Join-Path $env:RUNNER_TEMP 'private-v6-unit-patch.mjs'
41 + [IO.File]::WriteAllBytes($patchFile,[Convert]::FromBase64String(($privatePatch.content -replace '\\s','')))
42 + "TF_PATCH_FILE=$patchFile" >> $env:GITHUB_ENV
43 if(!(Test-Path -LiteralPath (Join-Path $root 'package.json'))){throw 'INVALID_ROOT'}
44 "TF_STAGE=$root" >> $env:GITHUB_ENV
45 Write-Host 'PRIVATE_ZIP_SHA256_PASS'
@@ -47,6 +52,8 @@ jobs:
52 $ErrorActionPreference='Continue'
53 $PSNativeCommandUseErrorActionPreference=$false
54 Set-Location -LiteralPath $env:TF_STAGE
55 + node $env:TF_PATCH_FILE $env:TF_STAGE
56 + if ($LASTEXITCODE -ne 0) { throw 'PRIVATE_UNIT_PATCH_NOT_APPLICABLE' }
57 $install=Join-Path $env:RUNNER_TEMP 'private-npm-install.log'
58 npm ci --no-audit --no-fund *> $install
59 if($LASTEXITCODE -ne 0){throw 'PRIVATE_NPM_INSTALL_FAILED'}
@@ -116,6 +123,30 @@ jobs:
123 node (Join-Path $env:RUNNER_TEMP 'classify-private.mjs') $report
124 if($testExit -ne 0){throw 'V6_TESTS_STILL_FAILING_PRIVATE_OUTPUT_SUPPRESSED'}
125 Write-Host 'V6_TESTS_PASS'
126 + - name: Evaluate independently lint and Next build after green unit tests
127 + run: |
128 + $ErrorActionPreference='Continue'
129 + $PSNativeCommandUseErrorActionPreference=$false
130 + Set-Location -LiteralPath $env:TF_STAGE
131 + npm run lint *> (Join-Path $env:RUNNER_TEMP 'private-lint.log')
132 + if($LASTEXITCODE -ne 0){throw 'PRIVATE_STAGE_LINT_FAILED'}
133 + Write-Host 'GATE_PASS_LINT'
134 + npm run build *> (Join-Path $env:RUNNER_TEMP 'private-next-build.log')
135 + if($LASTEXITCODE -ne 0){throw 'PRIVATE_STAGE_BUILD_FAILED'}
136 + Write-Host 'GATE_PASS_NEXT_BUILD'
137 + - name: Compile and verify native bridge without external SQL or bank
138 + run: |
139 + $ErrorActionPreference='Continue'
140 + $PSNativeCommandUseErrorActionPreference=$false
141 + Set-Location -LiteralPath $env:TF_STAGE
142 + & ./scripts/build-mayan-native.ps1 *> (Join-Path $env:RUNNER_TEMP 'private-native-build.log')
143 + if($LASTEXITCODE -ne 0){throw 'PRIVATE_NATIVE_BUILD_FAILED'}
144 + $exe=Join-Path $env:TF_STAGE 'native/MayanInterop/TreasuryFlow.MayanInterop.exe'
145 + if(!(Test-Path -LiteralPath $exe)){throw 'PRIVATE_NATIVE_OUTPUT_MISSING'}
146 + $h=(Get-FileHash -LiteralPath $exe -Algorithm SHA256).Hash
147 + $v=(& $exe verify-assembly $exe $h | ConvertFrom-Json)
148 + if($LASTEXITCODE -ne 0 -or !$v.ok -or $v.loadedForExecution -ne $false){throw 'PRIVATE_NATIVE_SELF_CHECK_FAILED'}
149 + Write-Host 'GATE_PASS_NATIVE_COMPILE_AND_VERIFICATION'
150 - name: Always disclose isolated scope only
151 if: always()
152 run: |