-
Notifications
You must be signed in to change notification settings - Fork 1.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
Replace deprecated linters #1633
base: master
Are you sure you want to change the base?
Replace deprecated linters #1633
Conversation
/triage accepted |
I'm exploring this weird failing test:
|
f2a8693
to
b3b5499
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: RainbowMango 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 |
b3b5499
to
6d8aaf5
Compare
@dgrisonnet Could you please take a look at this? this is the blocker of #1585. |
@@ -1,5 +1,5 @@ | |||
run: | |||
deadline: 2m | |||
timeout: 10m |
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.
10 minutes is a huge bump, could we perhaps squeeze it down to 5 minutes and the jobs would still pass?
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.
Wow, I just noticed that the timeout in the configuration file is being overwritten by the --timeout flag in the Makefile:
Line 244 in 0dcee07
$(GOPATH)/bin/golangci-lint run --timeout 10m || (echo 'Run "make update"' && exit 1) |
So, this is not a bump at all :) :) :)
I just removed the --timeout
flag from Makefile, it makes it easier to manage the golangci-lint configurations from one place.
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 tried to squeeze it down to 5 minutes, but the jobs failed due to exceeding the timeout:
echo from https://prow.k8s.io/view/gs/kubernetes-ci-logs/pr-logs/pull/kubernetes-sigs_metrics-server/1633/pull-metrics-server-verify/1903279512716578816
golangci/golangci-lint info found version: 1.64.8 for v1.64.8/linux/amd64
/home/prow/go/bin/golangci-lint run || (echo 'Run "make update"' && exit 1)
level=error msg="Timeout exceeded: try increasing it by passing --timeout option"
e819a7d
to
99dd431
Compare
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
99dd431
to
f60ef2f
Compare
@dgrisonnet Could you please take another look? By the way, I‘d like to help bump the Kubernetes dependencies to v1.32, before that, we need to resolve the blocking CI issues. |
What this PR does / why we need it:
This PR updates unsupported configurations of golangci-lint and replaces deprecated linter.
The
exportloopref
has been deprecated from golangci-lint@v1.60.2 and replaced bycopyloopvar
.The
typecheck
has been removed from golangci-lint: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 #