Skip to content

misc: persist upload timings to cy cloud - #28418

Merged
cacieprins merged 14 commits into
developfrom
cacie/feat/persist-upload-timings
Nov 29, 2023
Merged

cacieprins merged 14 commits into
developfrom
cacie/feat/persist-upload-timings

Conversation

@cacieprins

@cacieprins cacieprins commented Nov 28, 2023 •

Copy link
Copy Markdown
Collaborator

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
Comment thread cli/CHANGELOG.md Outdated

_Released 12/5/2023 (PENDING)_

**Features:**

Copy link
Copy Markdown
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.

@cacieprins cacieprins Nov 28, 2023 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

updated in 9badcb4

Comment thread packages/server/lib/modes/record.js Outdated
// 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
Copy Markdown
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
Copy Markdown
Collaborator 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
@cypress

cypress Bot commented Nov 28, 2023 •

Copy link
Copy Markdown

Comment thread cli/CHANGELOG.md Resolved
Comment thread packages/server/lib/modes/record.js Resolved
Comment thread system-tests/test/record_spec.js Resolved
@cypress-bot

cypress-bot Bot commented Dec 5, 2023

Copy link
Copy Markdown
Contributor

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