فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
test(phaseA): require actual renderer heap alongside 14 native financial cases and crash checks
davoodmehraban89 committed
Oct 17, 2026 at 00:57 UTC
647aea14ab16f8fb93bd3720e307f516afe7c985
1 file changed
+12
scripts/windows-vm-native-lab.ps1
+12
@@ -207,12 +207,24 @@ try {
207
'killed-real-installed-Windows-WebView2-during-importAll-no-partial-rows-on-restart') {
208
throw 'A04 actual process-crash restore rollback evidence is missing'
209
}
210
+ # New A08 criterion: this is *renderer JavaScript heap*, never total Windows
211
+ # RAM/RSS. Require the real installed candidate's CDP memory measurements.
212
+ $heap = $nativePerformance.nativePerformance.jsHeapBytes
213
+ if (!$heap -or $nativePerformance.nativePerformance.jsHeapScope -ne
214
+ 'renderer-js-heap-not-total-Windows-process-memory' -or
215
+ [long]$heap.beforeUsed -le 0 -or
216
+ [long]$heap.afterUsed -le 0 -or
217
+ [long]$heap.afterAllocated -lt [long]$heap.afterUsed) {
218
+ throw 'Installed native WebView2 60k workload has no valid JS heap evidence'
219
+ }
220
$summary.integratedCoverage = [ordered]@{
221
installedFinancialScenarios = $mandatory.Count
222
offlineRoutes = 10
223
printPdfPages = [int]$freshResult.nativePrint.pages
224
benchmarkProducts = 10000
225
benchmarkInvoices = 50000
226
+ nativeJsHeapAfterUsedBytes = [long]$heap.afterUsed
227
+ nativeJsHeapScope = 'renderer-only'
228
crashRestoreRowsRemaining = 0
229
independentHumanQA = 'not-covered'
230
customerBackup = 'not-covered'