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

Add test name to e2e cluster members #14292

Merged
merged 1 commit into from
Aug 20, 2022
Merged

Conversation

tjungblu
Copy link
Contributor

@tjungblu tjungblu commented Aug 1, 2022

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]

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]>
Copy link
Member

@ahrtr ahrtr left a comment

Choose a reason for hiding this comment

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

LGTM

Thank you @tjungblu

cc @spzala @ptabor to double confirm

Copy link
Member

@spzala spzala left a 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"
Copy link
Member

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.

Copy link
Member

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.

Copy link
Member

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.

Copy link
Member

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.

Copy link
Member

Choose a reason for hiding this comment

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

Yup, sgtm. Thanks @ahrtr

Copy link
Contributor Author

Choose a reason for hiding this comment

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

apologies, I was out on PTO and just came through to this again. I'll revise my IDE settings going forward, but I assume there is a difference in gofmt in different go versions?

thanks for the help and getting this merged though @spzala and @ahrtr :)

@spzala spzala merged commit 192d635 into etcd-io:main Aug 20, 2022
@tjungblu tjungblu deleted the debug_e2e branch August 23, 2022 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants