Skip to content
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 tests #99

Merged
merged 2 commits into from
Jan 31, 2022
Merged

Retry flaky tests #99

merged 2 commits into from
Jan 31, 2022

Conversation

lolgab
Copy link
Member

@lolgab lolgab commented Jan 31, 2022

This retries the flaky watch tests we have

@lolgab lolgab mentioned this pull request Jan 31, 2022
@lolgab lolgab marked this pull request as ready for review January 31, 2022 15:19
@lolgab lolgab requested review from jodersky and lefou January 31, 2022 15:19
Copy link
Member

@lefou lefou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

10 retries looks a bit too high and reduces my confidence.

Also, maybe we should make this conditional or configurable, e.g. by an env var TEST_RETRY_COUNT which we set in the build? We could check for CI or GITHUB_ACTIONS (https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables), so that we don't retry when testing locally (and possibly shadow malfunction).

@lolgab
Copy link
Member Author

lolgab commented Jan 31, 2022

I tried with 5 and it failed on Mac OS. Actually I can configure the retry to 10 only on mac and on Github Actions. What do you think @lefou ?

@lefou
Copy link
Member

lefou commented Jan 31, 2022

I think Linux is also failing sometimes. If you retry only on GITHUB, I'm fine with it.

Copy link
Member

@lefou lefou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@lolgab lolgab merged commit cee0f57 into master Jan 31, 2022
@lefou lefou added this to the after 0.8.1 milestone Jul 28, 2022
@lefou lefou deleted the retry-flaky-tests branch July 28, 2022 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants