-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Retry flaky specs automatically #4893
Merged
waiting-for-dev
merged 2 commits into
solidusio:master
from
nebulab:kennyadsl/flacky-retry
Feb 1, 2023
Merged
Retry flaky specs automatically #4893
waiting-for-dev
merged 2 commits into
solidusio:master
from
nebulab:kennyadsl/flacky-retry
Feb 1, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This helper relies on rspec-retry, which will retry flagged specs when they fail. We can use this helper when we have flaky specs that we are not able to solve. The retry is only enabled in the CI environment.
github-actions
bot
added
changelog:repository
Changes to the repository not within any gem
changelog:solidus_backend
Changes to the solidus_backend gem
changelog:solidus_core
Changes to the solidus_core gem
labels
Jan 31, 2023
kennyadsl
removed
changelog:solidus_backend
Changes to the solidus_backend gem
changelog:solidus_core
Changes to the solidus_core gem
labels
Jan 31, 2023
kennyadsl
force-pushed
the
kennyadsl/flacky-retry
branch
from
January 31, 2023 22:14
d96e2d7
to
a652113
Compare
github-actions
bot
added
changelog:solidus_backend
Changes to the solidus_backend gem
changelog:solidus_core
Changes to the solidus_core gem
labels
Jan 31, 2023
adammathys
approved these changes
Jan 31, 2023
kennyadsl
force-pushed
the
kennyadsl/flacky-retry
branch
from
February 1, 2023 08:21
a652113
to
24eec8d
Compare
This will trigger a retry in the CI when they fail.
kennyadsl
force-pushed
the
kennyadsl/flacky-retry
branch
from
February 1, 2023 08:48
24eec8d
to
ee52b9f
Compare
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.
I really like this, thanks @kennyadsl 🎉 👍
elia
approved these changes
Feb 1, 2023
waiting-for-dev
approved these changes
Feb 1, 2023
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.
👍
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
changelog:repository
Changes to the repository not within any gem
changelog:solidus_backend
Changes to the solidus_backend gem
changelog:solidus_core
Changes to the solidus_core gem
type:enhancement
Proposed or newly added feature
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Increasing our testing matrix on the CI, we are being hit more often by the flaky specs we have around. Until we have time and will to fix them, we can now explicitly mark those specs as flaky and retry them multiple times automatically leveraging the rspec-retry library.
This will have the benefit of saving CI time along with maintainers' time, who have to continuously open CircleCI and rerun the failing jobs, which in turn will rerun the whole test suite.
This PR adds a wrapping testing support helper for flaky specs. This helper relies on
rspec-retry
, which will retry flagged specs when they fail. We can use this helper when we have flaky specs that we cannot solve.The retry mechanism is only enabled in the CI environment.
Checklist
Check out our PR guidelines for more details.
The following are mandatory for all PRs:
The following are not always needed (
cross them outif they are not):