Skip to content

internal: (studio) when errors occur in development, log them and do not throw and do not send to Sentry #31614

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 4 commits into from
Apr 30, 2025

Conversation

ryanthemanuel
Copy link
Collaborator

Additional details

When studio errors occur in development, log them and do not throw and do not send to Sentry

Steps to test

How has the user experience changed?

PR Tasks

@ryanthemanuel ryanthemanuel requested a review from Copilot April 30, 2025 16:08
@ryanthemanuel ryanthemanuel self-assigned this Apr 30, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the error handling behavior for studio errors in development by logging errors instead of throwing them or sending them to Sentry.

  • Adjusts error handling conditions to log errors when not in production
  • Replaces throwing errors with console error logging in development
Comments suppressed due to low confidence (1)

packages/server/lib/cloud/api/studio/report_studio_error.ts:38

  • The comment on line 38 is now outdated since the error is logged instead of being thrown in development. Consider updating the comment to accurately describe the new error handling behavior.
// When developing locally, we want to throw the error so we can see it in the console

Copy link

cypress bot commented Apr 30, 2025

cypress    Run #62076

Run Properties:  status check passed Passed #62076  •  git commit 2c5e25b989: chore: (studio) when errors occur in development, log them and do not throw and ...
Project cypress
Branch Review ryanm/chore/do-not-throw-on-errors
Run status status check passed Passed #62076
Run duration 18m 36s
Commit git commit 2c5e25b989: chore: (studio) when errors occur in development, log them and do not throw and ...
Committer Ryan Manuel
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 12
Tests that did not run due to a developer annotating a test with .skip  Pending 1232
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 32150
View all changes introduced in this branch ↗︎

Warning

Partial Report: The results for the Application Quality reports may be incomplete.

UI Coverage  46.87%
  Untested elements 173  
  Tested elements 157  
Accessibility  92.67%
  Failed rules  3 critical   8 serious   2 moderate   2 minor
  Failed elements 886  

@ryanthemanuel ryanthemanuel merged commit 602ff2a into develop Apr 30, 2025
89 of 91 checks passed
@ryanthemanuel ryanthemanuel deleted the ryanm/chore/do-not-throw-on-errors branch April 30, 2025 18:56
cypress-app-bot pushed a commit that referenced this pull request May 1, 2025
…elopment, log them and do not throw and do not send to Sentry (#31614)
cypress-app-bot pushed a commit that referenced this pull request May 1, 2025
…opment, log them and do not throw and do not send to Sentry (#31614)
cypress-app-bot pushed a commit that referenced this pull request May 1, 2025
…elopment, log them and do not throw and do not send to Sentry (#31614)
cypress-app-bot pushed a commit that referenced this pull request May 1, 2025
…opment, log them and do not throw and do not send to Sentry (#31614)
cypress-app-bot pushed a commit that referenced this pull request May 1, 2025
…elopment, log them and do not throw and do not send to Sentry (#31614)
cypress-app-bot pushed a commit that referenced this pull request May 1, 2025
…opment, log them and do not throw and do not send to Sentry (#31614)
jennifer-shehane pushed a commit that referenced this pull request May 1, 2025
* chore: updating v8 snapshot cache

* index on develop: 602ff2a internal: (studio) when errors occur in development, log them and do not throw and do not send to Sentry (#31614)

---------

Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
jennifer-shehane pushed a commit that referenced this pull request May 1, 2025
* chore: updating v8 snapshot cache

* index on develop: 602ff2a internal: (studio) when errors occur in development, log them and do not throw and do not send to Sentry (#31614)

---------

Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
jennifer-shehane pushed a commit that referenced this pull request May 1, 2025
* chore: updating v8 snapshot cache

* index on develop: 602ff2a internal: (studio) when errors occur in development, log them and do not throw and do not send to Sentry (#31614)

---------

Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
@cypress-bot
Copy link
Contributor

cypress-bot bot commented May 6, 2025

Released in 14.3.3.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v14.3.3, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators May 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants