Repository navigation
feat(runtime): launch and drive a desktop electron app in a sandbox - #56
Merged
Merged
Conversation
…s as it's attached
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR 2 of the Electron targets epic (#55). Design: OBJECT-MODEL §0.9 "Electron apps", reviewed by an architect agent, then redesigned after three review rounds and reviewed again.
Launch (`launchElectron`)
Confinement: a guard sealed at launch
Windows:
Shutdown
Measured:
Known limits (the user's decision, to settle on real apps in PR 3 and PR 5):
The handling of a window that the guard closes while it's being prepared is a timing race, untested.
Reviews: six `/code-review high` rounds plus two architect reviews. Rounds 1 to 3 found leaks, which led to the redesign around the continuous guard. Rounds 4 to 6 found no leaks, only fixes and the window questions above.
Tests: 32 Electron tests on a fixture app run with the repo's Electron 44.
Bug-backs: about 60 mutations across the rounds. All are caught, except where one exposed dead code (removed) or a missing test (added).
CI: the unit tests run under `xvfb-run`, with the user-namespace setting moved before them. The batch suite gets the 30 s budget other browser suites use. The fixture app is excluded from lint.
Linux CI (three follow-up commits). On the Linux runner, closing a launched app took about 30 s. Shutdown timings were logged in CI (
KIFRAME_ELECTRON_TIMING) to find the cause./procon Linux instead of a system-widelsof.