-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
feat: display artifact upload durations in the console #28226
Conversation
4 flaky tests on run #52309 ↗︎
Details:
runs.cy.ts • 2 flaky tests • app-e2e
cypress-in-cypress.cy.ts • 1 flaky test • app-e2e
specs_list_latest_runs.cy.ts • 1 flaky test • app-e2e
Review all test suite changes for PR #28226 ↗︎ |
@@ -338,7 +345,8 @@ const uploadArtifactBatch = async (artifacts, protocolManager, quiet) => { | |||
return skipped && !report.error ? acc : { | |||
...acc, | |||
[key]: { | |||
...report, | |||
// TODO: once cloud supports reporting duration, no longer omit this | |||
..._.omit(report, 'duration'), |
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.
Is the Cloud not able to handle extra fields?
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.
No, it will give zod errors.
* feat(webpack-dev-server): add support for angular 17 * update changelog * fix broken spec pattern * update to rc 2 for cli * remove = from dependency minVersion lists * update angular 17 rc version and update dep test * add projectDirFolder to fixtures for angular-17 * resolve broken system tests * update ct project dir angular version
@@ -111,7 +111,7 @@ exports['video compression true / compresses to 32 CRF'] = ` | |||
|
|||
(Uploaded Cloud Artifacts) | |||
|
|||
- Video - Done Uploading 1 kB 1/1 /XXX/XXX/XXX/cypress/videos/video_compression.cy.js.mp4 | |||
- Video - Done Uploading 1 kB 1/1 in Xm, Ys ZZms /XXX/XXX/XXX/cypress/videos/video_compression.cy.js.mp4 |
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.
Looks like the snapshot needs to be updated to reflect the updates.
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.
Updated, thanks for the catch!
process.stdout.write(` ${success ? 'in' : 'after'} ${durationOut}`) | ||
} | ||
|
||
process.stdout.write(` ${num}`) |
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.
what is num in this context?
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.
1/2
, 2/2
, etc. carryover name from previous logic
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Additional details
Test Replay capture artifacts can be fairly large, so it is important to display how long it takes to upload artifacts to the Cypress cloud when recording a run. Each artifact type (screenshots, video, test replay) now displays how long it took to upload after the upload is complete. If an artifact fails to upload, the duration of the request is displayed as well.
Steps to test
Record a test run that will produce artifacts that are uploaded to the cloud, and observe the duration in the console output.
How has the user experience changed?
Before:
After:
PR Tasks
cypress-documentation
?type definitions
?