fix(ci): stabilize Electron smoke flakiness at its sources
Windows CI / verify (push) Failing after 4m52s

The workspace cutter drop check waited a fixed 250ms before asserting
the populated cutter controls, but the drop triggers asynchronous IPC
and media probing, so loaded runners regularly lost that race and
failed with a misleading error. The check now polls the exact same UI
conditions with a bounded deadline before asserting. All window
screenshots in the cutter and workspace smokes carry an explicit
generous timeout because large two-times-DPR captures exceeded the
Playwright default under load. The focused Electron smoke and the
cutter media matrix additionally retry exactly once in both CI
workflows, mirroring the established packaging retries for transient
runner turbulence, and the CI contract now enforces those retries
instead of the former single-line steps.
This commit is contained in:
Sucukdeluxe
2026-08-14 18:46:35 +02:00
parent a4a9ba1372
commit 35364ca588
5 changed files with 60 additions and 38 deletions
+14 -4
View File
@@ -67,11 +67,21 @@ jobs:
run: npm run test:unit
timeout-minutes: 10
- name: Focused Electron smoke
run: npm run test:e2e:focused
timeout-minutes: 10
run: |
npm run test:e2e:focused
if ($LASTEXITCODE -ne 0) {
npm run test:e2e:focused
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
}
timeout-minutes: 20
- name: Cutter media matrix
run: node scripts/smoke-test-cutter-media-matrix.js
timeout-minutes: 10
run: |
node scripts/smoke-test-cutter-media-matrix.js
if ($LASTEXITCODE -ne 0) {
node scripts/smoke-test-cutter-media-matrix.js
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
}
timeout-minutes: 20
- name: Clean managed tools provision and repair
run: npm run test:managed-tools-live
timeout-minutes: 10