-
Notifications
You must be signed in to change notification settings - Fork 66
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
Reduce Cypress test flakiness #574
Conversation
…eout failures Signed-off-by: Mohammad Qureshi <[email protected]>
…wer version Signed-off-by: Mohammad Qureshi <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #574 +/- ##
=========================================
Coverage 61.36% 61.36%
Complexity 112 112
=========================================
Files 73 73
Lines 2472 2472
Branches 265 265
=========================================
Hits 1517 1517
Misses 778 778
Partials 177 177
Flags with carried forward coverage won't be shown. Click here to find out more. Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Signed-off-by: Mohammad Qureshi <[email protected]>
I'm sometimes seeing flaky CI failures on Mac unrelated to the written tests themselves. One example is a timeout for the Cypress verification which seems to be related to this. The only proper solution here would be to upgrade to a newer version of Cypress where we can provide |
Signed-off-by: Mohammad Qureshi <[email protected]>
Signed-off-by: Mohammad Qureshi <[email protected]>
The retries have fixed the "loading page" flakiness issue for the first test in the suite, however, I'm still seeing test flakiness in failing to find elements in the tests sometimes (seems to be more frequent in Windows, could be because it's just slower):
We'll need to revisit this and see if the Cypress test can be updated to fetch these elements in more dependable ways. |
For the time being, I'm removing MacOS from the dashboards test matrix and we'll revisit any existing Cypress test flakiness but will not block on getting the version bumps in after this change is backported. |
Signed-off-by: Mohammad Qureshi <[email protected]>
* Add retries to first test in each Cypress suite to counter random timeout failures Signed-off-by: Mohammad Qureshi <[email protected]> * Update dashboard version in CI to 2.4.0 until branch is updated to newer version Signed-off-by: Mohammad Qureshi <[email protected]> * Move Cypress retry to global config Signed-off-by: Mohammad Qureshi <[email protected]> * Reduce Cypress retry count to 2 Signed-off-by: Mohammad Qureshi <[email protected]> * Remove MacOS from Dashboard test matrix for now Signed-off-by: Mohammad Qureshi <[email protected]> * Remove include args for macos dashboard test Signed-off-by: Mohammad Qureshi <[email protected]> Signed-off-by: Mohammad Qureshi <[email protected]> (cherry picked from commit fb31fa4)
* Add retries to first test in each Cypress suite to counter random timeout failures Signed-off-by: Mohammad Qureshi <[email protected]> * Update dashboard version in CI to 2.4.0 until branch is updated to newer version Signed-off-by: Mohammad Qureshi <[email protected]> * Move Cypress retry to global config Signed-off-by: Mohammad Qureshi <[email protected]> * Reduce Cypress retry count to 2 Signed-off-by: Mohammad Qureshi <[email protected]> * Remove MacOS from Dashboard test matrix for now Signed-off-by: Mohammad Qureshi <[email protected]> * Remove include args for macos dashboard test Signed-off-by: Mohammad Qureshi <[email protected]> Signed-off-by: Mohammad Qureshi <[email protected]> (cherry picked from commit fb31fa4)
* Add retries to first test in each Cypress suite to counter random timeout failures Signed-off-by: Mohammad Qureshi <[email protected]> * Update dashboard version in CI to 2.4.0 until branch is updated to newer version Signed-off-by: Mohammad Qureshi <[email protected]> * Move Cypress retry to global config Signed-off-by: Mohammad Qureshi <[email protected]> * Reduce Cypress retry count to 2 Signed-off-by: Mohammad Qureshi <[email protected]> * Remove MacOS from Dashboard test matrix for now Signed-off-by: Mohammad Qureshi <[email protected]> * Remove include args for macos dashboard test Signed-off-by: Mohammad Qureshi <[email protected]> Signed-off-by: Mohammad Qureshi <[email protected]> (cherry picked from commit fb31fa4) Co-authored-by: Mohammad Qureshi <[email protected]>
* Add retries to first test in each Cypress suite to counter random timeout failures Signed-off-by: Mohammad Qureshi <[email protected]> * Update dashboard version in CI to 2.4.0 until branch is updated to newer version Signed-off-by: Mohammad Qureshi <[email protected]> * Move Cypress retry to global config Signed-off-by: Mohammad Qureshi <[email protected]> * Reduce Cypress retry count to 2 Signed-off-by: Mohammad Qureshi <[email protected]> * Remove MacOS from Dashboard test matrix for now Signed-off-by: Mohammad Qureshi <[email protected]> * Remove include args for macos dashboard test Signed-off-by: Mohammad Qureshi <[email protected]> Signed-off-by: Mohammad Qureshi <[email protected]> (cherry picked from commit fb31fa4) Co-authored-by: Mohammad Qureshi <[email protected]>
Signed-off-by: Mohammad Qureshi [email protected]
Description
The first test in the first suite being run by Cypress seems to sometimes fail on timeouts, even when the Dashboards endpoint has been verified to be reachable before tests start (this seems to be more frequent in the CIs, especially now that we're running so many). It's not ideal but this change adds retries to both specs to see if the retry can account for the flakiness to lead to more consistent runs.
Issues Resolved
[List any issues this PR will resolve]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.