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

fix: do not assume valid file info in error stack line #9081

Merged
merged 6 commits into from
Nov 5, 2020

Conversation

bahmutov
Copy link
Contributor

@bahmutov bahmutov commented Nov 3, 2020

User facing changelog

Additional details

  • no more file open links for stack lines without absoluteFile property. So we don't even show "open" for http:/... (which does not work anyway)

How has the user experience changed?

The original error that is causing the crash is shown, not our "cannot replace" error

Scripts without local file no longer have clickable links

PR Tasks

  • Have tests been added/updated?
  • Has the original issue or this PR been tagged with a release in ZenHub?

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Nov 3, 2020

Thanks for taking the time to open a PR!

@cypress
Copy link

cypress bot commented Nov 3, 2020



Test summary

8686 0 118 3Flakiness 1


Run details

Project cypress
Status Passed
Commit 39b3a9a
Started Nov 5, 2020 5:01 PM
Ended Nov 5, 2020 5:12 PM
Duration 11:28 💡
OS Linux Debian - 10.2
Browser Multiple

View run in Cypress Dashboard ➡️


Flakiness

cypress/integration/retries.ui.spec.js Flakiness
1 runner/cypress retries.ui.spec > opens attempt on each attempt failure for the screenshot, and closes after test passes

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@bahmutov bahmutov marked this pull request as ready for review November 3, 2020 22:27
Copy link
Contributor

@chrisbreiding chrisbreiding left a comment

Choose a reason for hiding this comment

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

The stack traces in the reporter need to be updated so that if the file details don't include the absolute file, it doesn't show the file path as open-able.

@bahmutov
Copy link
Contributor Author

bahmutov commented Nov 5, 2020

I opened #9106 to make sure the stack is parsed and displayed correctly in this case, since right now it seems incorrect.

Copy link
Contributor

@chrisbreiding chrisbreiding left a comment

Choose a reason for hiding this comment

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

Very nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants