-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
feat: add burn-in to test execution logic #27965
Conversation
19 failed tests on run #51421 ↗︎
Details:
The first 5 failed specs are shown, see all 987 specs in Cypress Cloud. Review all test suite changes for PR #27965 ↗︎ |
// If there is AT LEAST one failed test attempt, we know we need to apply retry logic. | ||
// Otherwise, the test might be burning in (not implemented yet) OR the test passed on the first attempt, | ||
// meaning retry logic does NOT need to be applied. | ||
if (failedTests.length > 0) { | ||
test.nextAttemptStrategy = 'RETRY' |
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.
nextAttemptStrategy
is only referenced to set thisAttemptStrategy
; is this logic necessary?
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.
This is so we can indicate if the next attempt is to be made as part of a retry. I'm not sure if there's another way to do it.
outerTestStatus = 'passed' | ||
test.final = true | ||
shouldAttemptsContinue = false | ||
test.reasonToStop = 'PASSED_MET_THRESHOLD' |
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.
reasonToStop
is only set, and never referenced - is this a field we'll be sending to the cloud?
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.
Yes, see the description here
Additional details
Steps to test
How has the user experience changed?
PR Tasks
cypress-documentation
?type definitions
?