-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
ci: reenable goerr113 and unused linters across the codebase #21578
Conversation
Signed-off-by: Timo Beckers <timo@isovalent.com>
Signed-off-by: Timo Beckers <timo@isovalent.com>
Signed-off-by: Timo Beckers <timo@isovalent.com>
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.
Thanks 💯
/test |
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 from my codeowners, just a couple of comments where maybe the right answer is to add the piece of logic that should have been using this code rather than deleting the code.
@@ -900,104 +900,6 @@ func testExternalTrafficPolicyLocal(kubectl *helpers.Kubectl, ni *helpers.NodesI | |||
} | |||
} | |||
|
|||
func testHostPort(kubectl *helpers.Kubectl, ni *helpers.NodesInfo) { |
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.
@cilium/sig-datapath do we have coverage of this now? I'm surprised this was unused.
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.
Looks like this wasn't cleaned up as part of the tests. We now have test/controlplane/services/nodeport
testing that we populate lbmap correctly for HostPort and https://github.com/cilium/cilium-cli/blob/master/connectivity/tests/host.go tests e2e, so we should be good.
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 pending Joe's comments
All relevant tests passing, merging. |
Does what it says on the tin. Now the
privileged_tests
tags in test files are gone, the unused linter can be useful again. Remove all code it flagged.Two false positives were spotted: functions that are only used in
Benchmark___
functions. There have been a few bugs around this withExample_
andTest_
, but since it's just a few funcs for now, just//nolint:unused
them.