Skip to content
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

misc: persist upload timings to cy cloud #28418

Merged
merged 14 commits into from
Nov 29, 2023

Conversation

cacieprins
Copy link
Contributor

@cacieprins cacieprins commented Nov 28, 2023

Additional details

To more effectively monitor the duration of uploading artifacts to cy cloud, we now record that duration when finalizing artifact uploads.

Steps to test

How has the user experience changed?

PR Tasks

@cacieprins cacieprins marked this pull request as ready for review November 28, 2023 16:18
cli/CHANGELOG.md Outdated

_Released 12/5/2023 (PENDING)_

**Features:**
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels like a misc task that users don't care about. I wouldn't flag this as a feature since it's internal to us.

Copy link
Contributor Author

@cacieprins cacieprins Nov 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated in 9badcb4

// performance.now() gives milliseconds with many decimals - this is
// higher resolution than we need, and the cy cloud column is int, not
// a floating poina
uploadDuration: Math.round(performance.now() - startTime),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we change this from duration to upload duration ? does this create an new column in the DB ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new column has already been created in the DB, and the api schema has this field as uploadDuration

@cacieprins cacieprins changed the title feat: persist upload timings to cy cloud misc: persist upload timings to cy cloud Nov 28, 2023
cli/CHANGELOG.md Outdated Show resolved Hide resolved
packages/server/lib/modes/record.js Outdated Show resolved Hide resolved
system-tests/test/record_spec.js Outdated Show resolved Hide resolved
@cacieprins cacieprins merged commit 7ba92b9 into develop Nov 29, 2023
82 of 84 checks passed
@cacieprins cacieprins deleted the cacie/feat/persist-upload-timings branch November 29, 2023 20:33
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Dec 5, 2023

Released in 13.6.1.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v13.6.1, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Dec 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Protocol: [Performance] Include upload timings in the call to instances/:id/artifacts
3 participants