-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
netutil: consistently format ipv6 addresses #15153
Conversation
ce24ec3
to
a30b70f
Compare
a30b70f
to
e1a8c71
Compare
This formats ipv6 addresses to ensure they can be compared safely Signed-off-by: kidsan <8798449+Kidsan@users.noreply.github.com>
e1a8c71
to
30f881c
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.
LGTM
Thank you @Kidsan
Could you backport this PR to 3.4 and 3.5 as well? |
Should we add a e2e test for IPv6? |
Adding e2e test is good, but I think it can be a separate PR. |
Makes sense, however let's posmone backporting until we ensure that overall issue of IPv6 is fixed and tested. Please remember that we are backporting to fixes to issues, not just backporting PRs for sake of backporting. |
Do not understand the concern.
|
For me a feature like IPv6 support cannot exist without tests. If IPv6 formatting didn't work, means that our tests were insufficient, ergo there might be other things that are in out blind spot. Discovering and fixing one detail after another is insufficient to make sufficient progress. We need more holistic approach. My thinking is that if IPv6 had such a rudimental bug like this one, it was never properly tested. We should revisit this feature and add sufficient testing to bring up the quality of this area. As agreed in https://github.com/etcd-io/etcd/blob/main/Documentation/contributor-guide/features.md all stable features should have a proper testing. If we don't think that IPv6 support is mature enough we should mark it as experimental. |
I do not see any strong reason to reject this minor bug fix. |
I think you can both merge this PR and open/request an issue or PR for the tests. |
FYI I'm not blocking merging of this PR, just backporting before whole issue is resolved. |
This formats ipv6 addresses to ensure they can be compared safely
Fixes #15127