Skip to content

chore: Fix stack trace lines when calculating code frame #31935

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

Merged
merged 1 commit into from
Jun 24, 2025

Conversation

AtofStryker
Copy link
Contributor

Additional details

With the new node used in Electron 36 (v22.15.1), it looks like our stack traces now contain node:diagnostics_channel in the stack. We really want to filter out all node internal stacks when calculating the code frame. This code changes the code slightly to make sure these values are filtered out.

Screenshot 2025-06-24 at 11 21 05 AM

Steps to test

How has the user experience changed?

PR Tasks

… the code frame. Accounts additionally for node:diagnostics_channel
@AtofStryker AtofStryker self-assigned this Jun 24, 2025
@AtofStryker AtofStryker requested a review from cacieprins June 24, 2025 16:48
Copy link

cypress bot commented Jun 24, 2025

cypress    Run #63229

Run Properties:  status check failed Failed #63229  •  git commit e571336993: chore: account for all node: internal stacks when trying to calculate the code f...
Project cypress
Branch Review chore/fix_stack_trace_lines
Run status status check failed Failed #63229
Run duration 19m 55s
Commit git commit e571336993: chore: account for all node: internal stacks when trying to calculate the code f...
Committer Bill Glesias
View all properties for this run ↗︎

Test results
Tests that failed  Failures 3
Tests that were flaky  Flaky 3
Tests that did not run due to a developer annotating a test with .skip  Pending 174
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 12657
View all changes introduced in this branch ↗︎
UI Coverage  0%
  Untested elements 4  
  Tested elements 0  
Accessibility  97.09%
  Failed rules  0 critical   1 serious   0 moderate   0 minor
  Failed elements 4  

Tests for review

Failed  runner/ui-states.cy.ts • 2 failed tests • app-e2e

View Output

Test Artifacts
src/cypress/runner ui states > status codes Test Replay Screenshots
src/cypress/runner ui states > errors > long error Test Replay Screenshots
Failed  studio/studio.cy.ts • 1 failed test • app-e2e

View Output

Test Artifacts
Cypress Studio > exits studio mode if the spec is removed on the file system Test Replay Screenshots
Flakiness  commands/location.cy.js • 1 flaky test • 5x-driver-electron

View Output

Test Artifacts
... > eventually fails the assertion Test Replay
Flakiness  issues/28527.cy.ts • 1 flaky test • 5x-driver-electron

View Output

Test Artifacts
issue 28527 > fails and then retries and verifies about:blank is not displayed Test Replay Screenshots
Flakiness  issues/28527.cy.ts • 1 flaky test • 5x-driver-chrome

View Output

Test Artifacts
issue 28527 > fails and then retries and verifies about:blank is not displayed Test Replay Screenshots

@AtofStryker AtofStryker merged commit 815d6e1 into electron-36 Jun 24, 2025
70 of 77 checks passed
@AtofStryker AtofStryker deleted the chore/fix_stack_trace_lines branch June 24, 2025 17:17
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.

2 participants