-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
🌱 Bump golangci-lint to v1.47.1 #6943
Conversation
cc @killianmuldoon Finally :) |
😆 you beat me to it - was just running it locally to make sure the gci fix is working. |
I didn't find a better way around the gci findings in condition_types.go. If you have a good idea.. :) |
/lgtm |
/lgtm 🎉 |
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
I can't figure out why gci is dropping those comments, but I'm happy with the version for now until we get to the root cause. This change has been a long time coming 🙂
I dropped the 1.24 issue from "Fixes". There's another PR to bump to go 1.18 |
20613de
to
ab0e616
Compare
Looks like we're running into: golangci/golangci-lint-action#519 |
ab0e616
to
8373d59
Compare
@sbueringer @killianmuldoon This issue is solved in gci |
8373d59
to
5d60581
Compare
Thank you very much. I added a corresponding TODO. |
gci v0.4.3 is now merged into golangci-lint. So next release of golangci-lint should fix this. |
1.47.1 is out - it bumps the gci version and should have the fix: https://github.com/golangci/golangci-lint/releases/tag/v1.47.1 |
There is a new release of golangci-lint now with gci 0.4.3 https://github.com/golangci/golangci-lint/releases/tag/v1.47.1 |
8a524c8
to
5eaec8a
Compare
/retitle 🌱 Bump golangci-lint to v1.47.1 |
/lgtm |
/hold We need to investigate why the linter is taking much longer to run with this version. |
I'm on PTO starting tomorrow. Thx @killianmuldoon for taking over this PR! |
5eaec8a
to
21ea504
Compare
New changes are detected. LGTM label has been removed. |
Issue for the long runtime is open at the golangci-lint repo golangci/golangci-lint#2997 I'm trying to pinpoint which linter is responsible. |
Possible way to fix - golangci/golangci-lint#2997 (comment) |
21ea504
to
4e0e3e2
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Thanks @Prajyot-Parab I tried this locally, it seemed to work once (but I was running golangci-lint through the debugger) but I couldn't reproduce with the flow being used in CAPI. I've bumped the version here to see if it works in CI while I try to debug. |
The issue appears to be with revive - mgechev/revive#713 there's an issue up on the repo there so we'll wait and see how long it takes for a fix and a release of golangci-lint that includes it. IMO it doesn't make sense to remove revive as it's a pretty big linter so re-enabling it in six months would likely result in a large diff. One compromise would be to update golangci-lint, disable revive and then add revive with a working, appropriate version as a separate job in our lint flow. That's not an elegant solution 😆 so I think we can afford to take a wait and see approach, figure out how long the release might take and decide in a couple of weeks whether we need to take action. |
@killianmuldoon there is another workaround: disable the following |
4e0e3e2
to
1a1fedf
Compare
@@ -43,6 +43,28 @@ linters: | |||
- whitespace | |||
|
|||
linters-settings: | |||
revive: |
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.
Since the slow performance of revive is tracked as an issue, maybe add a comment to re-enable them once a future release improves performance?
New release out! https://github.com/golangci/golangci-lint/releases/tag/v1.47.2 with change log: |
My preference is to keep things really explicit and roll back the exceptions sooner rather than later. My preference is either:
@fabriziopandini WDYT? |
/close |
@killianmuldoon: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #6350