فینورا پرو - سامانه جامع حسابداری و صدور فاکتور

ci(A08): capture measured 10k/50k Windows synthetic performance evidence

Dedicated deterministic Windows Node/fake-indexeddb benchmark of 10000 products and 50000 invoices with sanitized timings, memory and source metadata. No native installed application performance or release acceptance is claimed. Verified CI: PR Quality #38945787995 and Windows Benchmark #38945788170.

davoodmehraban89 committed Oct 16, 2026 at 21:51 UTC d3fe4f438bcbc8b8e1b8e034193bd2dd8a73de47
1 file changed +65
.github/workflows/a08-windows-performance-baseline.yml new
+65
@@ -0,0 +1,65 @@
1 +name: Phase A A08 Windows synthetic performance baseline
2 +
3 +on:
4 + pull_request:
5 + paths:
6 + - '.github/workflows/a08-windows-performance-baseline.yml'
7 + - 'scripts/a08-benchmark.mjs'
8 + - 'src/core/StorageService.js'
9 + - 'package.json'
10 + - 'package-lock.json'
11 + workflow_dispatch:
12 +
13 +permissions:
14 + contents: read
15 +
16 +jobs:
17 + windows-synthetic-baseline:
18 + runs-on: windows-latest
19 + timeout-minutes: 25
20 + steps:
21 + - name: Checkout immutable source
22 + uses: actions/checkout@v4
23 + with:
24 + persist-credentials: false
25 + - name: Install Node.js 22
26 + uses: actions/setup-node@v4
27 + with:
28 + node-version: '22'
29 + cache: npm
30 + - name: Install locked dependencies
31 + run: npm ci
32 + - name: Measure 10000 products and 50000 invoices on Windows
33 + shell: pwsh
34 + run: |
35 + node --max-old-space-size=3072 scripts/a08-benchmark.mjs
36 + if ($LASTEXITCODE -ne 0) { throw 'A08 synthetic benchmark failed' }
37 + if (!(Test-Path 'a08-benchmark-results.json')) { throw 'No measured benchmark report' }
38 + $report = Get-Content 'a08-benchmark-results.json' -Raw | ConvertFrom-Json
39 + if ($report.counts.products -ne 10000 -or $report.counts.invoices -ne 50000 -or
40 + $report.counts.scopedInvoices -ne 10000) {
41 + throw 'A08 seeded data count validation failed'
42 + }
43 + foreach ($metric in @($report.timingsMs.seedProducts,$report.timingsMs.seedInvoices,
44 + $report.timingsMs.companyInvoiceRead.p50,$report.timingsMs.companyInvoiceRead.p95,
45 + $report.timingsMs.fullBackupExport)) {
46 + if ($null -eq $metric -or [double]$metric -lt 0) { throw 'A08 invalid measurement' }
47 + }
48 + $report | Add-Member -NotePropertyName githubCommit -NotePropertyValue $env:GITHUB_SHA
49 + $report | Add-Member -NotePropertyName runnerOS -NotePropertyValue $env:RUNNER_OS
50 + $report | ConvertTo-Json -Depth 9 | Set-Content 'a08-benchmark-results.json' -Encoding utf8
51 + Write-Host 'A08 Windows synthetic baseline captured (not native UI or physical disk crash evidence).'
52 + - name: Upload measured synthetic evidence even if validation fails
53 + if: always()
54 + uses: actions/upload-artifact@v4
55 + with:
56 + name: a08-windows-synthetic-baseline
57 + path: a08-benchmark-results.json
58 + if-no-files-found: warn
59 + retention-days: 30
60 + - name: State acceptance boundary
61 + if: always()
62 + shell: pwsh
63 + run: |
64 + "Windows Node/fake-indexeddb benchmark only; figures are measurements, not predetermined performance guarantees." >> $env:GITHUB_STEP_SUMMARY
65 + "This does not replace an installed NSIS/WebView2 benchmark, disk power-loss testing or customer workload acceptance." >> $env:GITHUB_STEP_SUMMARY