-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Updating Cypress Cloud API spec #5911
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
Updating Cypress Cloud API spec #5911
Conversation
Part of the big Enterprise Reporting release that launched the end of August.
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 remember there being some discussion about moving this to gitbook. What was the result and timing decided on that discussion versus putting them here?
- projects. Optional, and accepts the name of your Cypress project. The project name should be URL encoded. You can | ||
pass as many projects parameters as needed. | ||
|
||
For example, `&projects=project%20a&projects=test123` |
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.
It’d be nice to show the desired state of these without the encoding and everything. Like “For example, if you want to see reporting for projects with the name Dashboard and design-system, use the following query param”. Otherwise I’m trying to parse what the desired state was for the time formats and the project names from just the url and removing the encoding, but I didn’t even know what the names of the projects were to begin with.
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.
incorporated. Coming in the next commit
|
||
For example, `?start_date=2024-01-01` or `?start_date=2024-01-01T12%3A30%3A00` | ||
|
||
- end_date. Optional and should be passed in either yyyy-MM-dd or yyyy-MM-ddTHH:mm:ss format. |
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 suppose if you don’t pass this then it defaults to now? May be good to mention.
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.
incorporated. Coming in the next commit
|
||
- project_name | ||
- flaky_test_count | ||
- build_count |
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.
It’s a bit weird that this is called ‘build count’ when the entirety of our product always refers to these as runs.
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.
incorporated. Coming in the next commit. Cleaning up build vs run.
Example: | ||
https://cloud.cypress.io/enterprise-reporting/report?token=YOUR-API-KEY&report_id=spec-details&export_format=csv&start_date=2024-01-01 | ||
|
||
### Individual test results with errors |
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 this for errors or failures? Errors are completely different than failures.
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.
incorporated. Coming in the next commit
https://cloud.cypress.io/enterprise-reporting/report?token=YOUR-API-KEY&report_id=test-details&export_format=csv&start_date=2024-01-01 | ||
|
||
The report_id is: `COMING-SOON` | ||
### Average build duration over time |
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.
Again would refer to this as run. But seems this is all mixed up in the implementation I guess.
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.
incorporated. Coming in the next commit. Cleaning up build vs run.
- mdn_pass_build_duration (median) | ||
- min_pass_build_duration (min) | ||
- max_pass_build_duration (max) | ||
- day |
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.
Day and week of what?
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.
changed "build" to "run".. Also, to answer the question, any of the data that is reported "over time" provides a pivot to the day and week. Easily allows reporting systems to consume the data for visual reporting over time.
Example: | ||
https://cloud.cypress.io/enterprise-reporting/report?token=YOUR-API-KEY&report_id=flaky-test-details&export_format=csv&start_date=2024-01-01 | ||
|
||
### Top flaky per project |
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.
Top flaky what?
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.
Flaky tests. Incorporated in the next commit.
fixing the term "run" vs "build" where possible. Also the examples in the query parameter section easier to understand. Adding clarity where requested by the team.
Adding more description about how flaky rates and fail rates are presented
indicate we're pivoting this data based on passing runs. Errored or even failed runs can impact the metrics
Move it inline with the other query string params now available.
enterprise reporting APIs that were released for Cloud in August 2024 |
Part of the big Enterprise Reporting release that launched the end of August.