-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
Add test name to e2e cluster members #14292
Conversation
This should aid in debugging test flakes, especially in tests where the process is restarted very often and thus changes its pid. Now it's a lot easier to grep for different members, also when different tests fail at the same time. The test TestDowngradeUpgradeClusterOf3 as mentioned in etcd-io#13167 is a good example for that. Signed-off-by: Thomas Jungblut <[email protected]>
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.
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 but one inline comment @tjungblu thanks!
"go.uber.org/zap" | ||
"go.uber.org/zap/zaptest" | ||
|
||
"go.etcd.io/etcd/server/v3/etcdserver" |
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.
@tjungblu thanks, changes lgtm but I am curious why are you changing import order here and in other files? The current order is as per overall convention used in the project (i.e. third party packages follow internal ones..) and we should keep it that way unless I am missing anything.
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.
@tjungblu can you please look at my small comment above?. Your PR looks good otherwise and we can merge it.
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 won't hold the PR due to the ordering changes in the import which seems unnecessary but can be reordered separately.
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.
Usually we shouldn't change the existing code (including this case, the order of the import entries and the blank line) without explicit reason.
But on the other hand, it seems that it isn't a big deal on the change in this case. Either keeping it as it's for now or reverting the change works for me.
I suggest to keep it as it's for now.
Then this PR is good to go, and defer to @spzala to make the final decision and merge the PR.
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.
Yup, sgtm. Thanks @ahrtr
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.
This should aid in debugging test flakes, especially in tests where the process is restarted very often and thus changes its pid.
Now it's a lot easier to grep for different members, also when different tests fail at the same time.
The test
TestDowngradeUpgradeClusterOf3
as mentioned in #13167 is a good example for that.Signed-off-by: Thomas Jungblut [email protected]