-
Notifications
You must be signed in to change notification settings - Fork 3.3k
internal: (studio) improve error reporting #31546
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
base: develop
Are you sure you want to change the base?
Conversation
cypress
|
Project |
cypress
|
Branch Review |
ryanm/feat/errors
|
Run status |
|
Run duration | 18m 44s |
Commit |
|
Committer | Ryan Manuel |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
9
|
|
1232
|
|
0
|
|
32140
|
View all changes introduced in this branch ↗︎ |
UI Coverage
46.31%
|
|
---|---|
|
184
|
|
163
|
Accessibility
92.63%
|
|
---|---|
|
3 critical
8 serious
2 moderate
2 minor
|
|
887
|
There was a problem hiding this 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 improves error reporting for studio by integrating cloud-based error notifications and updating existing API interfaces and test cases accordingly.
- Updated error reporting to call the cloud API when studio is initialized, falling back to an app-only version when it isn’t.
- Added a new studioHash option and revised import paths across the codebase.
- Updated tests to verify the new error reporting flow and refactored imports to reflect the new folder structure.
Reviewed Changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
scripts/gulp/tasks/gulpCloudDeliveredTypes.ts | Updated import path for studio manager |
scripts/after-pack-hook.js | Updated import path for getAndInitializeStudioManager |
packages/types/src/studio/studio-server-types.ts | Extended interface with studioHash and reportError method |
packages/server/test/unit/* | Revised tests to assert the new error reporting behavior |
packages/server/lib/cloud/studio.ts | Modified reportError to delegate to the studio server’s error reporter |
packages/server/lib/cloud/api/studio/* | Updated error reporting implementation and import paths |
packages/server/lib/cloud/api/studio/get_and_initialize_studio_manager.ts | Adjusted error handling to use the new error reporting API |
import type { StudioCloudApi } from '@packages/types/src/studio/studio-server-types' | ||
import Debug from 'debug' | ||
|
||
const debug = Debug('cypress:server:cloud:api:studio:report_studio_errors') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const debug = Debug('cypress:server:cloud:api:studio:report_studio_errors') | |
const debug = Debug('cypress:server:cloud:api:studio:report_studio_error') |
Additional details
This PR sets up communication with studio in the cloud so that we can be notified when errors occur. Specifically it:
reportError
to call out to the cloud if studio has been initialized<cloud-url>/studio/errors
studioHash
to the studio options so that version can properly be reportedSteps to test
How has the user experience changed?
PR Tasks
cypress-documentation
?type definitions
?