-
Notifications
You must be signed in to change notification settings - Fork 64
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
GH Actions: Add retry for tests on Mac OS #633
Conversation
Codecov Report
@@ Coverage Diff @@
## master #633 +/- ##
==========================================
+ Coverage 67.68% 67.72% +0.04%
==========================================
Files 75 75
Lines 2259 2259
Branches 207 207
==========================================
+ Hits 1529 1530 +1
Misses 686 686
+ Partials 44 43 -1
Continue to review full report at Codecov.
|
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.
Kinda hard to test this since the tests don't always fail due to timeout, just occasionally. Seems like some users still experience the failing issue with this fix (but different OS) karma-runner/karma-chrome-launcher#154 (comment). No harm trying this fix to see if it helps our situation.
Thanks for working on this 👍
Thanks @ptvrajsk for the review >< |
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.
LGTM!
I also think there is little harm merging this, since it seems to bump up the speed a little (~0.5s).
Thanks for working on this 👍
Turns out even by removing sandboxing the MacOSX tests still fail to connect hmm.. |
After some discussion with @dingyuchen , another way to add on to this fix would be to rerun the command using the OR operator, |
Thanks for investigating this issue. Since the This should be sufficient, as the timeout problem does not occur very frequently (there have been 4 timeout errors, in the most recent ~120 workflow runs triggered from CATcher and CATcher-staging's For ease of future maintenance, it will be better to not to adopt "partial fixes" like the |
Alright have made the changes! @anubh-v |
@anubh-v I have updated the suggested commit message! Do let me know if there are any issues >< |
Summary
This PR fixed the #585, the issue of Karma Tests timing out in our CI / CD pipeline.
Details
By adding the
||
operator, we essentially allow our pipeline to rerun the MacOSX Tests again if it failed the first time due to timeout.Suggested Commit Message