-
Notifications
You must be signed in to change notification settings - Fork 1.5k
test: Deal with incomplete tests in Jepsen tool #5804
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
Conversation
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.
minor. Feel free to resolve.
| // Retry incomplete tests. Sometimes tests fail due to temporary errors. | ||
| tries++ | ||
| if tries == maxRetries { | ||
| defer os.Exit(1) |
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.
maybe a log here before exiting.
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.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @manishrjain, @parasssh, and @vvbalaji-dgraph)
contrib/jepsen/main.go, line 480 at r1 (raw file):
Previously, parasssh wrote…
maybe a log here before exiting.
Done.
This PR does two things:
--refresh-clusterto down and up the test cluster before each test. I noticedthat most errors that lead to incomplete tests go away if this is done.
the test. The tool now only returns an exit code of 1 if there's a test failure or a test was incomplete
even after retries.
Related to DGRAPH-971
This change is
Docs Preview: