-
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 an activity indicator in the CLI output when uploading artifacts to cypress cloud #28277
Conversation
…ask for upload order
5 flaky tests on run #52378 ↗︎
Details:
commands/storage.cy.ts • 1 flaky test • 5x-driver-chrome
e2e/origin/commands/storage.cy.ts • 1 flaky test • 5x-driver-chrome
cypress/cypress.cy.js • 3 flaky tests • 5x-driver-chrome
Review all test suite changes for PR #28277 ↗︎ |
@@ -150,8 +143,8 @@ export const normalizeStdout = function (str: string, options: any = {}) { | |||
// 15 seconds -> XX seconds | |||
.replace(/((\d+ minutes?,\s+)?\d+ seconds? *)/g, replaceTime) | |||
.replace(/\r/g, '') | |||
// replaces multiple lines of uploading screenshots & results (since order not guaranteed) | |||
.replace(/(Uploading Screenshots & Videos.*?\n\n)((.*-.*[\s\S\r]){2,}?)(\n\n)/g, replaceUploadingResults) |
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.
This mask was no longer in used, so replaced with the activity mask
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.
The animation looks great.
@cacieprins Could we have the 'Uploading' text indented 2 spaces like the other text? Maybe in the same Blue style?
I also wonder if there should be some interval before printing the 'Uploading Cloud Artifacts: .' text, where it will just skip this if it uploads so fast. Most of my run just had this line printed arbitrarily when the upload was instant.
@cacieprins Mine has the Uploading displaying without a spaced line above it from the Test Replay output, not like shown in your screenshots. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Additional details
When uploading large artifacts to the cloud, we need a keep alive signal for CI systems, as well as an indicator for users when running in record mode locally.
Steps to test
How has the user experience changed?
Before:
After:
PR Tasks
cypress-documentation
?type definitions
?