-
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
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
dd1970d
feat: display how long artifacts take to upload
cacieprins 20145cc
adds changelog entry
cacieprins dc3b643
add PR link to changelog
cacieprins 294e1e5
Merge branch 'develop' into cacie/feat/artifact-upload-duration
cacieprins 6fab807
bump circle cache
cacieprins 1f29082
previous masking was too greedy, made upload duration masking more li…
cacieprins 181ad9e
update snapshots for video compression system tests
cacieprins c0970ac
Merge branch 'develop' into cacie/feat/artifact-upload-duration
cacieprins b5fc9d7
Merge branch 'develop' into cacie/feat/artifact-upload-duration
cacieprins 3bb9264
links changelog for upload durations to open issue
cacieprins 5923629
reorder upload result manifest - show duration after filesize instead…
cacieprins a05d79c
Merge branch 'develop' into cacie/feat/artifact-upload-duration
cacieprins 2e6ff88
update stdout normalization regex to be less applicable across system…
cacieprins 9c8dbe7
maybe better regex for masking
cacieprins c1c2823
another snapshot attempt
cacieprins 7a49d2a
Merge branch 'develop' into cacie/feat/artifact-upload-duration
cacieprins 5ef0b61
chore: add after:browser:launch node event (#28180)
chrisbreiding 1995d04
test: update mochaEvent snapshots to be auto-generated (#28224)
mschile 79e2dfe
feat: add support for angular 17 (#28152)
jordanpowell88 279e050
fix: runIfWaitingForDebugger when targets are reloaded after crashing…
ryanthemanuel 1840609
Merge branch 'develop' into cacie/feat/artifact-upload-duration
cacieprins 3ab4da1
Merge branch 'develop' into cacie/feat/artifact-upload-duration
cacieprins 230a6ba
Merge branch 'develop' into cacie/feat/artifact-upload-duration
cacieprins 1c05363
Merge branch 'develop' into cacie/feat/artifact-upload-duration
cacieprins 1ba9a84
Merge branch 'develop' into cacie/feat/artifact-upload-duration
cacieprins 3b2316b
Update cli/CHANGELOG.md
cacieprins 0f88221
update snapshots
cacieprins 30d9d67
Merge branch 'develop' into cacie/feat/artifact-upload-duration
cacieprins a8a1d04
Merge branch 'develop' into cacie/feat/artifact-upload-duration
cacieprins 74fa6d6
Update CHANGELOG.md
cacieprins File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Bump this version to force CI to re-create the cache from scratch. | ||
|
||
10-25-23.1 | ||
11-2-23 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -614,21 +614,30 @@ type ArtifactUploadResultLike = { | |
success: boolean | ||
error?: string | ||
skipped?: boolean | ||
duration?: number | ||
} | ||
|
||
export const printCompletedArtifactUpload = <T extends ArtifactUploadResultLike> (artifactUploadResult: T, labels: Record<'protocol' | 'screenshots' | 'video', string>, num: string): void => { | ||
const { pathToFile, key, fileSize, success, error, skipped } = artifactUploadResult | ||
const { pathToFile, key, fileSize, success, error, skipped, duration } = artifactUploadResult | ||
|
||
process.stdout.write(` - ${labels[key]} `) | ||
|
||
if (success) { | ||
process.stdout.write(`- Done Uploading ${formatFileSize(Number(fileSize))} ${num}`) | ||
process.stdout.write(`- Done Uploading ${formatFileSize(Number(fileSize))}`) | ||
} else if (skipped) { | ||
process.stdout.write(`- Nothing to Upload ${num}`) | ||
process.stdout.write(`- Nothing to Upload`) | ||
} else { | ||
process.stdout.write(`- Failed Uploading ${num}`) | ||
process.stdout.write(`- Failed Uploading`) | ||
} | ||
|
||
if (duration) { | ||
const durationOut = humanTime.short(duration, 2) | ||
|
||
process.stdout.write(` ${success ? 'in' : 'after'} ${durationOut}`) | ||
} | ||
|
||
process.stdout.write(` ${num}`) | ||
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. what is num in this context? 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.
|
||
|
||
if (pathToFile && key !== 'protocol') { | ||
process.stdout.write(` ${formatPath(pathToFile, undefined, 'cyan')}`) | ||
} | ||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.