-
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
chore: rename video processing events to capture/compress #26800
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -474,7 +474,7 @@ function displayScreenshots (screenshots: Screenshot[] = []) { | |
console.log('') | ||
} | ||
|
||
export function displayVideoProcessingProgress (opts: { videoName: string, videoCompression: number | false }) { | ||
export function displayVideoCompressionProgress (opts: { videoName: string, videoCompression: number | false }) { | ||
console.log('') | ||
|
||
terminal.header('Video', { | ||
|
@@ -498,7 +498,7 @@ export function displayVideoProcessingProgress (opts: { videoName: string, video | |
|
||
table.push([ | ||
gray('-'), | ||
gray('Started processing:'), | ||
gray('Started compressing:'), | ||
chalk.cyan(`Compressing to ${opts.videoCompression} CRF`), | ||
]) | ||
|
||
|
@@ -515,7 +515,7 @@ export function displayVideoProcessingProgress (opts: { videoName: string, video | |
const dur = `${humanTime.long(finished)}` | ||
|
||
const table = terminal.table({ | ||
colWidths: [3, 21, 61, 15], | ||
colWidths: [3, 22, 60, 15], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. had to offset the 2nd column by one in order to not get |
||
colAligns: ['left', 'left', 'left', 'right'], | ||
type: 'noBorder', | ||
style: { | ||
|
@@ -529,7 +529,7 @@ export function displayVideoProcessingProgress (opts: { videoName: string, video | |
|
||
table.push([ | ||
gray('-'), | ||
gray('Finished processing:'), | ||
gray('Finished compressing:'), | ||
gray(dur), | ||
]) | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,8 +39,8 @@ exports['e2e launching browsers by path works with an installed browser path 1'] | |
|
||
(Video) | ||
|
||
- Started processing: Compressing to 32 CRF | ||
- Finished processing: /XXX/XXX/XXX/cypress/videos/simple.cy.js.mp4 (X second) | ||
- Started compressing: Compressing to 32 CRF | ||
- Finished compressing: /XXX/XXX/XXX/cypress/videos/simple.cy.js.mp4 (X second) | ||
Comment on lines
+42
to
+43
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you have no idea how lucky you are to make this change after i turned off video compression in snapshots. lol There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's just say there were a lot LESS snapshots that needed updated 🙏🏻 |
||
|
||
|
||
==================================================================================================== | ||
|
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.
added a debug log if this condition is met since otherwise its hard to tell. I wonder if we want to add any of these options to the telemetry span in the future to determine if this is a no-op (we can do it in this PR as well just wanted to see if others thought it was a good idea).
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.
videoname, videoCompression and compressedVideoName are added to the span now. You could add 'should upload' if you want. (down on line 685)
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.
I missed that. I think that should be enough for us to infer the behavior!