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

chore(dependency): Upgrade Electron 28 #28959

Open
wants to merge 45 commits into
base: develop
Choose a base branch
from
Open

Conversation

jennifer-shehane
Copy link
Member

@jennifer-shehane jennifer-shehane commented Feb 16, 2024

Additional details

  • Upgrade to Chromium 120
  • Upgrade to Node 18.18.2
  • Upgrade to v8 12.0

Related Docker Images PR https://github.com/cypress-io/cypress-docker-images/pull/1052/files

Steps to test

How has the user experience changed?

PR Tasks

@jennifer-shehane jennifer-shehane self-assigned this Feb 16, 2024
Copy link

cypress bot commented Feb 16, 2024

6 flaky tests on run #55520 ↗︎

0 29255 1328 0 Flakiness 6

Details:

Merge branch 'develop' into electron-28
Project: cypress Commit: a589f05935
Status: Passed Duration: 19:37 💡
Started: May 21, 2024 7:03 PM Ended: May 21, 2024 7:23 PM
Flakiness  net_stubbing.cy.ts • 1 flaky test • 5x-driver-electron

View Output

Test Artifacts
... > stops waiting when an fetch request is canceled Test Replay
Flakiness  net_stubbing.cy.ts • 2 flaky tests • 5x-driver-chrome:beta

View Output

Test Artifacts
network stubbing > waiting and aliasing > yields the expected interception when two requests are raced Test Replay
... > stops waiting when an fetch request is canceled Test Replay
Flakiness  waiting.cy.js • 1 flaky test • 5x-driver-chrome:beta

View Output

Test Artifacts
... > errors > throws when waiting for 2nd response to route Test Replay
Flakiness  net_stubbing.cy.ts • 2 flaky tests • 5x-driver-webkit

View Output

Test Artifacts
... > with `resourceType` > can match a proxied image request by resourceType
    </td>
  </tr>
  <tr>
    <td colspan="2">
      <a href="https://cloud.cypress.io/projects/ypt4pf/runs/55520/overview/a7f3f50b-1d27-4926-948b-9b3a42fe96ec?reviewViewBy=FLAKY&utm_source=github&utm_medium=flaky&utm_campaign=view%20test">
        ... > stops waiting when an xhr request is canceled
      </a>
    </td>
    <td>
      
    </td>
  </tr></table>

Review all test suite changes for PR #28959 ↗︎

@@ -213,7 +213,7 @@ class SourcemapSupport {
frame = cloneCallSite(frame)

frame.getFileName = function getFileName () {
return pos.source || pos.name || null
return pos.source || pos.name || undefined
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yarn.lock Outdated
integrity sha512-2s6B2CWZM//kPgwnuI0KrYwNjfdByE25zvAaEpq9IH4zcNsarH8Ihu/UuX6XMPEogDAxkuUFeZn60pXNHAqn3A==
version "3.54.0"
resolved "https://registry.yarnpkg.com/node-abi/-/node-abi-3.54.0.tgz#f6386f7548817acac6434c6cba02999c9aebcc69"
integrity sha512-p7eGEiQil0YUV3ItH4/tBb781L5impVmmx2E9FRKF7d18XXzp4PGT2tdYMFY6wQqgxD0IwNZOiSJ0/K0fSi/OA==
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

node-abi error was encountered, so needed to bump this. electron/forge#667

@@ -181,6 +181,7 @@ export class DataContext {
@cached
get cloud () {
return new CloudDataSource({
// @ts-ignore
fetch: (...args) => this.util.fetch(...args),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -16,7 +16,7 @@
"types": [
"cypress",
"./support",
"./node_modules/@types/node"
"node"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MikeMcC399

This comment was marked as resolved.

@jennifer-shehane
Copy link
Member Author

@MikeMcC399 Removed that reference.

@jennifer-shehane jennifer-shehane marked this pull request as draft April 23, 2024 23:05
@@ -26,6 +26,7 @@ describe('network stubbing', { retries: 15 }, function () {

beforeEach(function () {
cy.spy(Cypress.utils, 'warning')
cy.visit('/fixtures/empty.html')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with Electron 28, we need to visit a url to establish origin , even though the document.location is already on the correct origin. A bit strange, but this does make sense for security purposes. I do not think this is a breaking change but more so an oddity with the test.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the error when this happens?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this be technically breaking? Folks could have tests that could have worked previously without a visit that no longer work?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error was fairly vague via ERR_INVALID_ARGUMENT when an xhr request would fire. The only way I could resolve it was to visit and establish the origin before making requests to that origin server. By guess is it was a problem with the domain not being established while attempting to make same origin connections. This could technically be breaking, I wonder for those doing API testing, but I would also think most people doing API testing are doing so from cypress commands through the node API and not browser requests before visiting a page

@@ -16,7 +16,7 @@ const { getNextVersionForBinary } = require('../get-next-version')
job_name: process.env.CIRCLE_JOB,
triggered_workflow_id: process.env.CIRCLE_WORKFLOW_ID,
triggered_job_url: process.env.CIRCLE_BUILD_URL,
branch: process.env.CIRCLE_BRANCH,
branch: 'upgrade-electron-28',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we will need to remove this post merging (as well as merging the updated binary code)

@AtofStryker AtofStryker marked this pull request as ready for review May 16, 2024 12:41
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.

[Electron 28] - EPIC - Upgrade
4 participants