-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
fix: Treat Video compression 0 as false. #26503
Changes from all commits
afff623
3a812cc
80a5190
7e1883d
13cab12
f297e42
9fd896e
77578b6
a1dc72b
602f7c3
6a2b9b0
2621ece
e6596bf
dff448a
a7b6168
20baf66
a96d2f2
144df27
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,10 @@ const exit = async (code = 0) => { | |
}) | ||
} | ||
|
||
telemetry.getSpan('cypress')?.end() | ||
const span = telemetry.getSpan('cypress') | ||
|
||
span?.setAttribute('exitCode', code) | ||
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. lets log out the exit code to know if jobs failed or not. |
||
span?.end() | ||
|
||
await telemetry.shutdown().catch((err) => { | ||
debug('telemetry shutdown errored with: ', err) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -312,7 +312,7 @@ async function startVideoRecording (options: { previous?: VideoRecording, projec | |
|
||
const warnVideoRecordingFailed = (err) => { | ||
// log that post processing was attempted | ||
// but failed and dont let this change the run exit code | ||
// but failed and don't let this change the run exit code | ||
errors.warning('VIDEO_POST_PROCESSING_FAILED', err) | ||
} | ||
|
||
|
@@ -321,9 +321,9 @@ async function postProcessRecording (options: { quiet: boolean, videoCompression | |
|
||
// once this ended promises resolves | ||
// then begin processing the file | ||
// dont process anything if videoCompress is off | ||
// don't process anything if videoCompress is off | ||
// or we've been told not to upload the video | ||
if (options.videoCompression === false || options.shouldUploadVideo === false) { | ||
if (options.videoCompression === false || options.videoCompression === 0 || options.shouldUploadVideo === false) { | ||
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. This is the bug fix. 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.
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. i'd rather be explicit |
||
return | ||
} | ||
|
||
|
@@ -676,7 +676,7 @@ async function waitForTestsToFinishRunning (options: { project: Project, screens | |
|
||
span?.setAttributes({ | ||
videoName, | ||
videoCompression, | ||
videoCompressionString: videoCompression.toString(), | ||
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. honeycomb decided this value was an int, so false === 0... i changed it to a string to get the real value. |
||
compressedVideoName: videoRecording.api.compressedVideoName, | ||
}) | ||
|
||
|
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.
Surprised this wasn't a typescript error.
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.
same