Skip to content

test: Electron startup smoke test in CI (prerequisite for #340) - #348

Merged
anchapin merged 2 commits into
deps/integrationfrom
deps/340-electron-smoke-test
Oct 14, 2026
Merged

anchapin merged 2 commits into
deps/integrationfrom
deps/340-electron-smoke-test

Conversation

@anchapin

@anchapin anchapin commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

Refs #340 (does not close it; see the decision comment there — the Electron bump itself is deferred).

Changes

  • app/background.js: with PAT_SMOKE_TEST=1, exits 0 once the AngularJS app has bootstrapped (5s after did-finish-load), exits 1 on did-fail-load, render-process-gone, bootstrap failure or 90s timeout. No behavior change without the env var.
  • build_pat.yaml: new step after the CMake build on all 3 OSes runs npx electron build (xvfb + --no-sandbox on Linux).

Verified: locally on Apple Silicon (Node 24): PAT_SMOKE_TEST=1 npx electron build -> 'PAT smoke test passed', exit 0. CI result in checks.
Limits: runs the built bundle in the repo's Electron, not the packaged installer layout; does not exercise project open, server, analysis or webviews.
Rollback: revert.

CI: smoke step green on Ubuntu, macOS, Windows ("PAT smoke test passed" in logs). Duck review: worth it as a startup/bootstrap check only (not installer or usability validation; no project/server coverage). Addressed: step-level timeout-minutes: 3 hard timeout. Not done: isolated CI userData path / smoke-mode UI suppression.

@anchapin
anchapin changed the base branch from develop to deps/integration October 14, 2026 04:02
Alex Chapin and others added 2 commits October 14, 2026 17:01
…340 prerequisite)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@anchapin
anchapin force-pushed the deps/340-electron-smoke-test branch from 8f7c71e to d51d0be Compare October 14, 2026 21:02
@anchapin
anchapin merged commit 052e10e into deps/integration Oct 14, 2026
@anchapin
anchapin deleted the deps/340-electron-smoke-test branch October 14, 2026 21:02
This was referenced Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant