-
Notifications
You must be signed in to change notification settings - Fork 150
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
chore(deps): update to electron 10.1.5 #3599
Merged
Merged
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
…meout in jsonwp findelement call set by spectron
…tion to allow spectron to work
This reverts commit 1440f0f.
…t in waitForExist calls when reverse is true
dbjorge
approved these changes
Nov 5, 2020
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.
I think the reliability runs look acceptable; 2/60 failures is on par with existing behavior, and the one with the exciting exit code doesn't feel like a spectron failure (it suggests that node AV'd somehow)
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 tests (although several recent PRs have improved 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
in our main and codec-test electron apps. 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
.waitForTimeout
I was running into this issue where the implicit wait timeout added by spectron exceeds the timeout we pass to
waitForFluentLeftNavToDisappear
. Spectron adds an implicit timeout of 5000 for the session requests. The chain waitForExist -> isExisting/$$ -> findElement uses the implicit timeout, leading to wrapping-timeout failures. I first tried reducing the implicit timeout to 1000ms; but spectron reuses the value for the script execution timeout. I've doubled the wrapping timeout onwaitForSelectorToDisappear
.ECONNRESET
With this update we started seeing a new failure with the callstack:
This was similar to the
spectron
issue here, which we resolved earlier by addingenableRemoteModule
to the codec-test app. This issue is more like thegot
issue here. Adding anagent-base
resolution as suggested did not remove the error for us. I added this signature to the retry logic - an example is here .validation
javascript error: javascript error: Cannot read property '0' of null
in axe scansuggestions encouraged to debug the above two failures
Pull request checklist
yarn fastpass
yarn test
)<rootDir>/test-results/unit/coverage
fix:
,chore:
,feat(feature-name):
,refactor:
). SeeCONTRIBUTING.md
.