Skip to content
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

Electron v5.0.10 #4720

Merged
merged 116 commits into from
Sep 24, 2019
Merged

Electron v5.0.10 #4720

merged 116 commits into from
Sep 24, 2019

Conversation

chrisbreiding
Copy link
Contributor

@chrisbreiding chrisbreiding commented Jul 15, 2019

Electron 5.0.10, Node 12, Chrome 73

Changelog

@flotwig
Copy link
Contributor

flotwig commented Jul 23, 2019

Tasks:

  • Changes in Desktop GUI layout issues/improvements #4905 are breaking some desktop-gui tests w Chrome 76: https://stackoverflow.com/a/29909047/3474615
  • I was able to get the 2_cookies e2e test working, but had to bump Electron to v5.x (Node 12.0.0) to access the necessary CDP functions. This actually made fewer test suites fail than Electron v3 did, so hopefully it will lessen the redundant work needed for this.
  • Deferred issues with page loading in Electron 6 - [WIP] Electron 6.0.10 #5193
  • check native deps still work
    • only one is registry-js, manually verified that it's still working
    • get rid of our own registry-js since we can use mainline now
  • enable electron promise deprecation warnings in development
    • remove deprecated invocations - removed all i could find
  • websockets_spec shows some issues with websocket proxying in Node 12.
  • re-write socket_spec - it's failing since Node 10 and i have no idea why, it's always been spurious, might as well re-write it and eliminate the flakiness as we go
    • this was mostly fixed by the websocket_spec fix detailed below
  • video recording in e2e tests is busted - this is making most snapshots fail because the end bit is missing. this seems to be because the electron process is exiting before the video can be encoded, not because of an actual bug with video recording (race condition here?)
    • works in Electron 4.2.8 (Node 10.11.0, Chrome 69.0.3497.128) - broken in Electron 5.0.0 (Node 12.0.0, Chrome 73.0.3683.119)
    • could be a bug with a dependency, or a bug in the module API
    • "invalid data found" in uncompressed stream while compressing:
     cypress:server:video compression stderr log { message: '[mov,mp4,m4a,3gp,3g2,mj2 @ 0x70f4cc0] moov atom not found' } +3ms
       cypress:server:video compression stderr log { message: '/home/person/cypress/packages/server/.projects/e2e/cypress/videos/video_compression_spec.coffee.mp4: ' + 'Invalid data found when processing input' } +0ms
    
  • potentially update proxy to pass 102, 103 codes correctly. Node.js changed in v10 to handle these codes differently: Process 100, 102-199 status codes according to specs. nodejs/node#18033
    • tests that 102 and 103 status codes immediately end the connection have been removed, since in reality these indicate that future data is incoming on the connection
  • Node 12 made the max headers size only 8kb, down from 80kb: When http header size limit is reached, instead of a generic 400 response, return 431 Request Header Fields Too Large nodejs/node#25528
  • Updated websocket errors to not send back a 502, just end the socket. This was broken in Node 12, this new behavior fits in better with how we want to treat network errors anyways:
    • onProxyErr = (err, req, res) ->
      ## by default http-proxy will call socket.end
      ## with no data, so we need to override the end
      ## function and write our own response
      ## https://github.com/nodejitsu/node-http-proxy/blob/master/lib/http-proxy/passes/ws-incoming.js#L159
      end = socket.end
      socket.end = ->
      socket.end = end
      debug(
      "Got ERROR proxying websocket connection to url: received error %o", { err },
      )
      socket.end()
  • can now use console.table
  • update node versions, docker images to node 12.4.0

@brian-mann
Copy link
Member

Ignore socket_spec - it's likely all tested via the e2e tests actually "working".

Revert "update shell.openExternal to promisified"

This reverts commit 8b6460d.

Revert "update dialog.showOpenDialog to promisified"

This reverts commit 5f178b0.

Revert "update webContents.session.setProxy to promisified"

This reverts commit 727df3a.
@flotwig flotwig force-pushed the electron-3-from-develop branch from b929e54 to a724d4f Compare September 24, 2019 15:04
@flotwig flotwig changed the title Electron v6.0.9 Electron v5.0.10 Sep 24, 2019
@flotwig flotwig mentioned this pull request Sep 24, 2019
3 tasks
@brian-mann brian-mann merged commit 6ba8d7c into develop Sep 24, 2019
grabartley pushed a commit to grabartley/cypress that referenced this pull request Oct 6, 2019
* fix specs

* use debugger protocol for cookie handling in electron

* use latest gulp

* use rimraf instead of gulp-clean

* use electron 3.1.8 and node 10.2.1

* use gulp 4 in packages/static

* fix sendCommandAsync, log Schema.getDomains on CDP connect

* autofill e2e test name [skip ci]

* electron@5.0.7, see what new failures exist

* --no-sandbox for launching Electron

* update cookies logic for electron

* node 12

* update snapshot for new node

* update error message for new node

* stub sendCommandAsync

* only connect to socket if path has been replaced, fixes cypress-io#4776

* update node-sass to support node 12

* skip wacky socket tests for now

* snapshot

* fix run_plugins_spec snapshot, don't include stack trace

* use --no-sandbox on linux to run as root

* allow sendCommandAsync to resolve

* use euid for root check

* log domains even if undefined

* don't worry about ending 1xx responses immediately anymore

* use --max-http-header-size, change max size from 8kb to 1mb, fix cypress-io#76

* do not send 502 on failed websocket, just send back ECONNRESET

* update websocket spec port to not collide with other test

* update outdated expect

* Revert "only connect to socket if path has been replaced, fixes cypress-io#4776"

This reverts commit f179eda.

* update gulp in root

* update https-proxy unit tests

* update network spec to properly close server

* update reporter spec

* update https-proxy-agent to fix node 10.10.0 change

discussion: https://github.com/nodejs/node/issues/24474\#issuecomment-511963799

* only pass --max-http-header-size on node >=12

* use own server-destroy implementation that supports secureConnect events

* oops

* update socket_spec

* electron 6.0.0

* console.table introduced in node 10

* change browserify entry to init.js

* handle edge case when no response body

* console.table added in node 10

* do not exit app when all BrowserWindows are closed

* update e2e snapshots

* value may not be null

* update plugins spec

* correct cookie expiry, use browser.getversion for CDP version check

* fix snapshotting for require stacks

* reorder cookies in spec

* warn when depreated electron callback apis are used

* only report 1 plugin error per process

* cleanup

* node 12.4.0, cypress/browsers:node12.4.0-chrome76 docker image

* update shell.openExternal to promisified

* update dialog.showOpenDialog to promisified

* update webContents.session.setProxy to promisified

* updating native dependencies since we don't need ancient node ABI support anymore

* WIP: switch cookies to simpler, jar-less approach

* WIP: switch cookies to simpler, jar-less approach

* making tests pass

* improve cookie filtering logic

* Remove unneeded Promise.try

* filter what makes it to the extension

* properly re-set superdomain cookies on cross-origin cy.visit

* allow comma-separated list of e2e tests

* sort cookies in order of expiration date, ascending

* updating tests, cleanup

* update tests

* version electron as a devDependency, electron@6.0.1

* cleanup, remove old automation

* cleanup, remove old automation

* bump chokidar to fix win10 + node12 issue

was seeing this on windows:
nuxt/nuxt#6035

fixed with version bump

* enable now-supported quit role, re-enable old tests

* don't need that arg there

* remove last deprecated callback electron invocations

* Delete cypress.json

* responding to PR feedback

* cleanup

* invoke

* use 'quit' role

* Use new appMenu role for Cypress menu on mac

* electron@6.0.2

* electron@6.0.3

* remove domain: cookie.domain and see what happens

* remove setErrorHandler

* Revert "remove domain: cookie.domain and see what happens"

This reverts commit 49e9168.

* add unit tests for cookies

* ci

* fix project-content css

* electron@6.0.4

* fix specs_list test

* electron@6.0.7

* some cleanup

* electron@6.0.9

* Update 8_reporters_spec.coffee.js

* electron@5.0.10 - Chromium 73, Node 12

* cli: fix the STDIN pipe on Windows (cypress-io#5045)

* cli: pipe stdin

* uggh, here is the actual change

* update cli unit tests

* add unit test

* more permissive check for json to include application/vnd.api+j… (cypress-io#5166)

* more permissive check for json to include

* add json test for content-type application/vnd.api+json

* cruder solution passes e2e tests locally, so let's go with that

* Remove 'charset' from content-type before checking if JSON

* fix eslint for fixture specs (cypress-io#5176)

* update eslint to lint files within 'fixtures' in support files

- ignore some edge cases like jquery, jsx and obvious js files we wrote
with broken code

* Fixes from eslint to 'fixtures' files

* Catch env variable with reserved name CYPRESS_ENV 1621 (cypress-io#1626)

* server: check CYPRESS_ENV variable when merging configs

* catch invalid CYPRESS_ENV value in CLI, close cypress-io#1621

* linting

* sanitize platform in test snapshot

* linting

* update error message text

* add missing comma

* fix finally merge in JS code

* pass CLI linter

* fix log reference, should be debug

* use correct sinon reference

* update message, show first part in red

* update error message text

* Addresses cypress-io#2953 (cypress-io#5174)

* Addresses cypress-io#2953

* Added proper test for new error message

* Didn't realize it ran this test as well, whoops

* Implementing changes as suggested by @jennifer-shehane

* Fixing tests and error output. Moved the checks to the start of the get command to ensure we always catch improper options

* Removing issue test since the querying spec covers it

* Using coffescript isArray check

* depromisify things that were promisified b/t electron 5 <=> 6

Revert "update shell.openExternal to promisified"

This reverts commit 8b6460d.

Revert "update dialog.showOpenDialog to promisified"

This reverts commit 5f178b0.

Revert "update webContents.session.setProxy to promisified"

This reverts commit 727df3a.

* node12.4.0-chrome76 => node12.0.0-chrome75

* fix tests for electron downgrade

* node12.0.0-chrome75 => node12.0.0-chrome73


Co-authored-by: Zach Bloomquist <github@chary.us>
Co-authored-by: Brian Mann <brian.mann86@gmail.com>
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Oct 23, 2019

Released in 3.5.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment