-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deps: update to electron 10.1.5 #3547
Closed
Closed
Conversation
This file contains 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
karanbirsingh
changed the title
deps: update to electron 10
deps: update to electron 10.1.5
Oct 28, 2020
dbjorge
reviewed
Oct 28, 2020
@@ -37,7 +37,7 @@ const electronAutoUpdateCheck = new AutoUpdaterClient(autoUpdater); | |||
const createWindow = () => { | |||
mainWindow = new BrowserWindow({ | |||
show: false, | |||
webPreferences: { nodeIntegration: true }, | |||
webPreferences: { nodeIntegration: true, enableRemoteModule: true }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to leave a comment here explaining the same thing the PR description does about why we do this
…meout in jsonwp findelement call set by spectron
Closing to iterate on the unsigned-build tests |
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.
Description of changes
This PR updates electron to 10.1.5. Breaking changes here. I don't see any UI regressions so far; most of the complexity is around end-to-end typings & flakiness.
background
The Electron team will drop support for electron 8 when electron 11 ships in a few weeks (see info here and here). We should expect a new major release every 3 months in line with every other major Chromium update.
As usual each Electron update requires an associated Spectron update. The typings changed since webdriverio was updated from 4.x to 6.x - changes are mostly scoped to
SpectronAsyncClient
for now to get things working without touching all the e2e tests themselves.enableRemoteModule
mean we need to set
enableRemoteModule
totrue
. We were hoping to explicitly disable it with the guidance that came with electron 9/10, but this comment explains spectron's dependency on the module. It might be worth keeping in mind when tryingelectron-playwright
to see if it helps with flakiness issues similar toChromedriver failed to start
.impact on unified-e2e-reliability across 3 trials (42/45 passing test runs)
ChromeDriver did not start within 5000ms
mentioned in test(e2e-flakiness): add retries around unified e2e app.start #3535(below failures were on a conflicting merge with master, rerunning and will update)
impact on PR build (6 test runs): two PR builds ran without any e2e test failures
impact on build-unsigned-release-packages: several consecutive runs failing, all with the same signature in the same test
I'm unable to repro the unsigned build test failure locally with the electron mirror downloaded. Even if the other builds weren't flaky, this failure is a blocker because we're unable to generate installers.
Pull request checklist
yarn fastpass
yarn test
)<rootDir>/test-results/unit/coverage
fix:
,chore:
,feat(feature-name):
,refactor:
). SeeCONTRIBUTING.md
.