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

Remove temporary V6 private portable smoke workflow after verified Windows readiness result

davoodmehraban89 committed Oct 17, 2026 at 23:13 UTC e9fbe42286b465c581b83e433c4ed9dc4bfe4b47
1 file changed -105
.github/workflows/v6-portable-readiness-once.yml deleted
-105
@@ -1,105 +0,0 @@
1 -name: V6 original portable Windows readiness (NOT V7)
2 -on:
3 - push:
4 - branches: ['ci/public-windows-bridge-probe-20261017']
5 - paths: ['.github/workflows/v6-portable-readiness-once.yml']
6 -permissions:
7 - contents: read
8 -concurrency:
9 - group: treasuryflow-v6-portable-once
10 - cancel-in-progress: false
11 -jobs:
12 - probe:
13 - name: Windows 2022 - SHA-pinned original V6 portable readiness
14 - runs-on: windows-2022
15 - timeout-minutes: 30
16 - defaults:
17 - run:
18 - shell: pwsh
19 - env:
20 - BANK_ADAPTER_MODE: disabled
21 - TREASURYFLOW_ENABLE_MAYAN_EXTERNAL_READ: '0'
22 - TREASURYFLOW_MAYAN_ENABLE_EXTERNAL_READ: '0'
23 - TREASURYFLOW_ENABLE_SQL_LAB: '0'
24 - TREASURYFLOW_DESKTOP_LOCAL: '1'
25 - steps:
26 - - name: Retrieve privately and verify original V6 source tools and EXE hashes
27 - env:
28 - GH_TOKEN: ${{ secrets.TF_VALIDATION_READ_TOKEN }}
29 - run: |
30 - $ErrorActionPreference='Stop'
31 - if([string]::IsNullOrWhiteSpace($env:GH_TOKEN)){throw 'PRIVATE_TOKEN_NOT_CONFIGURED'}
32 - $input=Join-Path $env:RUNNER_TEMP 'private-v6-inputs'
33 - $stage=Join-Path $env:RUNNER_TEMP 'private-v6-stage'
34 - $unpacked=Join-Path $env:RUNNER_TEMP 'private-v6-exe'
35 - New-Item -Force -ItemType Directory -Path $input,$stage,$unpacked | Out-Null
36 - gh release download validation-inputs-20261017 --repo davoodmehraban89/TreasuryFlow-Validation-Private --pattern TreasuryFlow_Validation_Staging_20261017.zip --pattern release-native-v6-final.rar --dir $input *> (Join-Path $env:RUNNER_TEMP 'private-input-download.log')
37 - if($LASTEXITCODE -ne 0){throw 'PRIVATE_RELEASE_DOWNLOAD_FAILED'}
38 - $zip=Join-Path $input 'TreasuryFlow_Validation_Staging_20261017.zip'
39 - $rar=Join-Path $input 'release-native-v6-final.rar'
40 - if((Get-FileHash -LiteralPath $zip -Algorithm SHA256).Hash -ine '9ce46ce2d2a437e08cbf28146b2cf2ac0ed078c71f1aeb537764390cdd3c552f'){throw 'SOURCE_SHA_MISMATCH'}
41 - if((Get-FileHash -LiteralPath $rar -Algorithm SHA256).Hash -ine 'b8629defc172cef972ad12bb3a2e45a55abed3a5e3a5d991ab2567b877e0c915'){throw 'PORTABLE_ARCHIVE_SHA_MISMATCH'}
42 - Expand-Archive -LiteralPath $zip -DestinationPath $stage -Force
43 - if(!(Test-Path -LiteralPath (Join-Path $stage 'qa/windows/portable-v6-smoke.ps1'))){throw 'SMOKE_SCRIPT_NOT_PRESENT'}
44 - & 7z.exe x -y "-o$unpacked" $rar *> (Join-Path $env:RUNNER_TEMP 'private-extract.log')
45 - if($LASTEXITCODE -ne 0){throw 'PORTABLE_EXTRACT_FAILED'}
46 - $exe=Get-ChildItem -LiteralPath $unpacked -Filter 'TreasuryFlow-1.0.1-Windows-x64.exe' -Recurse -File | Select-Object -First 1
47 - if(!$exe){throw 'PORTABLE_EXE_MISSING'}
48 - if((Get-FileHash -LiteralPath $exe.FullName -Algorithm SHA256).Hash -ine '99976331f606d8c8ffcf8e9f4895848ff736870790e14b4c7f08a0abdbb7a50a'){throw 'PORTABLE_EXE_SHA_MISMATCH'}
49 - "TF_PRIVATE_STAGE=$stage" >> $env:GITHUB_ENV
50 - "TF_PRIVATE_EXE=$($exe.FullName)" >> $env:GITHUB_ENV
51 - Write-Host 'GATE_PASS_ALL_THREE_PRIVATE_SHA256_CHECKS'
52 - - name: Run pinned original V6 portable in isolated Windows VM
53 - timeout-minutes: 15
54 - run: |
55 - $ErrorActionPreference='Stop'
56 - Set-Location -LiteralPath $env:TF_PRIVATE_STAGE
57 - $log=Join-Path $env:RUNNER_TEMP 'private-v6-portable-run.log'
58 - $PSNativeCommandUseErrorActionPreference=$false
59 - $scriptThrew=$false
60 - try {
61 - & ./qa/windows/portable-v6-smoke.ps1 -Executable $env:TF_PRIVATE_EXE -ExpectedSha256 '99976331f606d8c8ffcf8e9f4895848ff736870790e14b4c7f08a0abdbb7a50a' -EvidenceDir $env:RUNNER_TEMP *> $log
62 - } catch { $scriptThrew=$true }
63 - $exitCode=$LASTEXITCODE
64 - Write-Host "PORTABLE_SCRIPT_THROWN=$scriptThrew"
65 - Write-Host "PORTABLE_SCRIPT_NATIVE_EXIT_NONZERO=$($exitCode -ne 0)"
66 - $logContent=if(Test-Path -LiteralPath $log){Get-Content -LiteralPath $log -Raw}else{''}
67 - $markers=[ordered]@{
68 - START_TIMEOUT='timeout|timed.out|timed out'
69 - PROCESS_EXIT='exited|exit.code|exitcode'
70 - MISSING_RESOURCE='not.found|missing|ENOENT'
71 - ACCESS_DENIED='EACCES|EPERM|Access.Denied'
72 - PORT_IN_USE='EADDRINUSE|already.in.use'
73 - WIN_PROCESS_ERROR='Start-Process|process.failed|unable.to.start'
74 - HEALTH_ERROR='health|ready|readiness'
75 - ELECTRON_ERROR='electron'
76 - BANK_DISABLED='bankDisabled|BANK_ADAPTER_MODE'
77 - HASH_MISMATCH='hash.mismatch|SHA256.*fail'
78 - JSON_ERROR='ConvertFrom-Json|json.parse'
79 - PS_ERROR='Exception|ParserError|CommandNotFoundException'
80 - }
81 - foreach($key in $markers.Keys){Write-Host ("SMOKE_LOG_HAS_"+$key+"="+[bool]($logContent -match $markers[$key]))}
82 - $evidence=Join-Path $env:RUNNER_TEMP 'v6-portable-runtime.json'
83 - $hasEvidence=Test-Path -LiteralPath $evidence
84 - Write-Host "PORTABLE_EVIDENCE_JSON_PRESENT=$hasEvidence"
85 - if($hasEvidence){
86 - try{
87 - $r=Get-Content -LiteralPath $evidence -Raw | ConvertFrom-Json
88 - $allowed=@('PASS_READY_ONLY','FAIL','FAILED','ERROR','TIMEOUT','NOT_READY')
89 - $safeStatus=if($allowed -contains [string]$r.status){[string]$r.status}else{'OTHER'}
90 - Write-Host "PORTABLE_EVIDENCE_STATUS=$safeStatus"
91 - Write-Host "PORTABLE_EVIDENCE_READY=$([bool]$r.ready)"
92 - Write-Host "PORTABLE_EVIDENCE_BANK_DISABLED=$([bool]$r.bankDisabled)"
93 - }catch{throw 'PORTABLE_EVIDENCE_JSON_UNREADABLE'}
94 - }
95 - if($scriptThrew){throw 'PORTABLE_V6_SCRIPT_THROWN'}
96 - if(!$hasEvidence){throw 'PORTABLE_EVIDENCE_MISSING'}
97 - if($r.status -ne 'PASS_READY_ONLY' -or !$r.ready -or !$r.bankDisabled){throw 'PORTABLE_READINESS_CONTRACT_FAILED'}
98 - if($exitCode -ne 0){Write-Host 'NOTE_CHILD_EXIT_NONZERO_BUT_SMOKE_SCRIPT_STRUCTURED_READY_CONTRACT_PASS'}
99 - Write-Host 'GATE_PASS_ORIGINAL_V6_PORTABLE_LOCAL_READY_BANK_DISABLED'
100 - - name: Publish only scope and privacy controls
101 - if: always()
102 - run: |
103 - Write-Host 'SCOPE=ORIGINAL_V6_PORTABLE_STARTUP_ONLY'
104 - Write-Host 'REAL_GUI=NOT_TESTED; SQL_SERVER_ENGINE=NOT_TESTED; WINDOWS_CLIPBOARD=NOT_TESTED; EXCEL=NOT_TESTED; INSTALL_UNINSTALL_UPGRADE=NOT_TESTED; V7=NOT_TESTED'
105 - Write-Host 'PRIVATE_SOURCE_EXE_AND_LOGS=NOT_PUBLISHED'