Skip to content

Conversation

danjohansenconsulting
Copy link
Contributor

Part of the big Enterprise Reporting release that launched the end of August.

Part of the big Enterprise Reporting release that launched the end of August.
Copy link
Member

@jennifer-shehane jennifer-shehane left a 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`
Copy link
Member

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.

Copy link
Contributor Author

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

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.

Copy link
Contributor Author

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
Copy link
Member

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.

Copy link
Contributor Author

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
Copy link
Member

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.

Copy link
Contributor Author

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
Copy link
Member

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.

Copy link
Contributor Author

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
Copy link
Member

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?

Copy link
Contributor Author

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
Copy link
Member

Choose a reason for hiding this comment

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

Top flaky what?

Copy link
Contributor Author

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.
@danjohansenconsulting danjohansenconsulting merged commit b5fcbc6 into main Sep 2, 2024
3 checks passed
@danjohansenconsulting danjohansenconsulting deleted the enterprise-reporting-apis_aug-release branch September 2, 2024 21:05
@danjohansenconsulting
Copy link
Contributor Author

enterprise reporting APIs that were released for Cloud in August 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants