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

Retry strict NSIS build and add same-installer native 10-route synthetic persistence UAT

davoodmehraban89 committed Oct 19, 2026 at 01:55 UTC 05608b98d88b0d750d37bf992ee0e69a82d087fe
1 file changed +23 -1
.github/workflows/private-v6-builder-ephemeral-20261018.yml
+23 -1
@@ -30,7 +30,10 @@ jobs:
30 $paths=@('qa/scripts/rebuild-v6-private-nonfinal-qa.ps1',
31 'qa/patches/v6-sql-assertion-fix.mjs',
32 'qa/patches/v6-add-readonly-sqlserver-adapter.mjs',
33 - 'qa/windows/v6-installed-native-gui-os-clipboard.mjs')
33 + 'qa/windows/v6-installed-native-gui-os-clipboard.mjs',
34 + 'qa/windows/v6-full-installed-gui-and-persistence.mjs',
35 + 'qa/windows/gui-readiness.mjs',
36 + 'qa/windows/synthetic-iban.mjs')
37 foreach($path in $paths){
38 $url="https://api.github.com/repos/$private/contents/${path}?ref=$branch"
39 $api=Invoke-RestMethod -Uri $url -Headers @{ Authorization="Bearer $env:TF_VALIDATION_READ_TOKEN"; Accept='application/vnd.github+json'; 'User-Agent'='TreasuryFlow-private-qa' }
@@ -146,6 +149,25 @@ jobs:
149 if($guiRecord.status -ne 'PASS' -or !$guiRecord.osClipboard -or !$guiRecord.bankDisabled -or
150 !$guiRecord.copyButton -or !$guiRecord.writable -or !$guiRecord.select){throw 'V6_SAME_ARTIFACT_GUI_REPORT_FAIL'}
151 Write-Host 'GATE_PASS_SAME_ARTIFACT_INSTALLED_WINDOWS_OS_CLIPBOARD'
152 + # Independently exercise real installed Electron 10-route navigation,
153 + # three synthetic actions, restart persistence and audit on same EXE.
154 + & node --check (Join-Path $work $paths[4])
155 + if($LASTEXITCODE -ne 0){throw 'INSTALLED_10_ROUTE_HARNESS_SYNTAX_FAILED'}
156 + $uat=Join-Path $env:RUNNER_TEMP 'v6-full-native-uat'
157 + New-Item -ItemType Directory -Path $uat -Force | Out-Null
158 + & node (Join-Path $work $paths[4]) $installed[0].FullName $uat *> (Join-Path $work 'private-native-10route-uat.log')
159 + $uatReportFile=Join-Path $uat 'treasuryflow-native-gui.json'
160 + if(!(Test-Path -LiteralPath $uatReportFile)){throw 'INSTALLED_10_ROUTE_UAT_REPORT_MISSING'}
161 + $uatReport=Get-Content -LiteralPath $uatReportFile -Raw | ConvertFrom-Json
162 + if($LASTEXITCODE -ne 0 -or $uatReport.outcome -ne 'REAL_INSTALLED_ELECTRON_GUI_PASS' -or
163 + $uatReport.visitedRoutes.Count -ne 10 -or !$uatReport.syntheticAccount -or
164 + !$uatReport.syntheticBeneficiary -or !$uatReport.syntheticDraft -or
165 + !$uatReport.durableData -or !$uatReport.auditPersisted -or !$uatReport.appReopened){
166 + $safeStage=[string]$uatReport.stage -replace '[^a-zA-Z0-9_-]',''
167 + throw ('V6_SAME_ARTIFACT_NATIVE_UAT_FAILED_AT_'+$safeStage)
168 + }
169 + Write-Host 'GATE_PASS_SAME_ARTIFACT_INSTALLED_10_ROUTES_3_SYNTHETIC_ACTIONS_RESTART_AUDIT'
170 +
171 $uninstall=@(Get-ChildItem -LiteralPath $installDir -Recurse -File -ErrorAction SilentlyContinue |
172 Where-Object {$_.Name -match '^uninstall.*[.]exe$'})
173 if($uninstall.Count -ne 1){throw 'V6_NSIS_UNINSTALLER_NOT_FOUND'}