Open muratkeremozcan opened 1 year ago
@muratkeremozcan thanks for adding this! We are actively working on this now. I have a couple questions (and, apologies if someone on my team previously asked you some of these):
retries
to apply for burn-in? So effectively, any new or modified tests with retries
configured will also use that same number of attempts if the 1st attempt passes.@muratkeremozcan thanks for adding this! We are actively working on this now. I have a couple questions (and, apologies if someone on my team previously asked you some of these):
- What numbers are you using for burn-in? For example, a new test needs to show X passes out of Y attempts. And is this a default setting?
- How are you thinking about burn-in versus fail retries? Would you consider it sensible to have the same configuration for
retries
to apply for burn-in? So effectively, any new or modified tests withretries
configured will also use that same number of attempts if the 1st attempt passes.- Under what conditions do you want burn-in to apply? For example, on all new or modified tests? Manually select specific tests on each run? Apply to specific groups? Specific branches?
- How do you treat flaky tests? Must developers fix all flaky tests in their PR before they can merge to main? What happens if a flaky test suddenly appears in main?
It's a wide range; has been 5, 10 or 20. We want all the tests pass. We use a github manual trigger, where the number is customizable. I would imagine Cypress Cloud would have such a setting per project - and it would be ultimate if meta level controls existed; we have 90+ projects...
Mutually exclusively. For us retries is always on and it's set to 2. When burning-in, ideally we do not want to see any retries; that means something wasn't as good as it should be. But, we leave the retries there to see how many times it had to retry to get n
number of executions. Data is more important in this case.
Run all new and modified tests. Run them with a priority before any other tests to save costs, just like how Cypress Cloud does it with failed tests first right now. At the moment triggering tests manually is possible with GHA, but the goal is to never even need to perform this chore. I cannot think of a need to apply to specific groups, or anything besides PRs as far as branches go.
It depends. Ideally we are not in a monorepo, and all CI is green. That means "developers fix all flaky tests" to get the PR to merge. In a monorepo, github is limited and it is hard-to-impossible to require Cypress flake job to succeed when sub folders are conditionally triggering tests, or never triggering them.
If a flakey test appears in main, we have test leads to monitor the test suite quality daily and ideally we treat them like production issues and create Jira tickets from Cy Cloud. The whole goal of the feature request is to significantly reduce and possibly eliminate this maintenance/monitoring work.
What would you like?
Test burn-in is something that used to be advertised over a year ago as "Coming soon" but it fell off the radar.
We want to ensure that new or edited tests are ran repeatedly to ensure flake-free, stateless, order independent tests.
Why is this needed?
Using Cypress at scale, our biggest point is low quality tests that make their way into main, which end up being flakey and consume maintenance time later.
We want to ensure that any new or edited tests are ran repeatedly to ensure flake-free, stateless, order independent tests.
Handling low-quality tests up front as opposed to having to maintain them later will reduce overall bandwidth we have to invest in testing.
Other
We have manual test burn-in triggers at the moment, but since they're not a part of PRs, they are opt-in and do not get used.