Treasury & Bank Transfer Management System — سامانه مدیریت خزانهداری و حوالههای بانکی
Classify native combined UAT login failure with redacted error categories and CDP counters
davoodmehraban89 committed
Oct 23, 2026 at 02:31 UTC
912b3eba0a5b80cbb0b6d39873fddb7059d0197d
1 file changed
+15
.github/workflows/v6-consolidated-native-uat-sql-excel-once.yml
+15
@@ -293,6 +293,21 @@ jobs:
293
$uatResult.visitedRoutes.Count -ne 10 -or !$uatResult.syntheticAccount -or
294
!$uatResult.syntheticBeneficiary -or !$uatResult.syntheticDraft -or
295
!$uatResult.durableData -or !$uatResult.auditPersisted -or !$uatResult.appReopened){
296
+ $safeError=[string]$uatResult.errorCode
297
+ $safeTypes=[ordered]@{
298
+ WAIT_TIMEOUT='(?:CDP_WAIT_TIMEOUT|CDP_TIMEOUT|TIMEOUT)'
299
+ CDP_EVALUATION='CDP_EVALUATION_ERROR'
300
+ CDP_WEBSOCKET='(?:CDP_WS_ERROR|CDP_WS_TIMEOUT|CDP_REMOTE_ERROR)'
301
+ STALE_SERVER='STALE_LOCAL_SERVER_PRESENT'
302
+ ELECTRON_EXIT='INSTALLED_ELECTRON_EXITED'
303
+ NO_LOCAL_ENTRY='NATIVE_LOCAL_ENTRY_MISSING'
304
+ INVALID_TITLE='NATIVE_.*(?:MISSING|NOT_READY)'
305
+ }
306
+ foreach($name in $safeTypes.Keys){Write-Host ('UAT_REDACTED_ERROR_'+$name+'='+[bool]($safeError -match $safeTypes[$name]))}
307
+ Write-Host ('UAT_BROWSER_CDP_CONNECTED='+[bool]$uatResult.cdp)
308
+ Write-Host ('UAT_BROWSER_DISCOVERY_TRANSIENT_COUNT='+[int]$uatResult.cdpTransientDiscoveryFailures)
309
+ Write-Host ('UAT_CDP_RECONNECTIONS='+[int]$uatResult.cdpReconnections)
310
+ Write-Host ('UAT_VISITED_ROUTE_COUNT='+[int]@($uatResult.visitedRoutes).Count)
311
throw ('COMBINED_NATIVE_UAT_FAILED_AT_'+([string]$uatResult.stage -replace '[^A-Z0-9_]', ''))
312
}
313
Write-Host 'GATE_PASS_COMBINED_SAME_INSTALLED_EXE_10ROUTES_3_SYNTHETIC_WRITES_RESTART_AUDIT'