Add verify script for govet & fix pkg/descheduler/descheduler_test.go#568
Conversation
e4fea70 to
91df7ed
Compare
| case <-time.After(300 * time.Millisecond): | ||
| } | ||
|
|
||
| // Wait for few cycles and then verify the only pod still exists |
There was a problem hiding this comment.
I think this comment is useful, can you keep it?
There was a problem hiding this comment.
Done.
Thanks for review ^-^
91df7ed to
5f0ba38
Compare
|
/lgtm |
damemi
left a comment
There was a problem hiding this comment.
Could you share what the failure is for this? I don't think we currently run staticcheck in our CI, if not this would be a good PR to add that check
Hi @damemi , the failure is More about the failure at: https://golang.org/doc/go1.16#vet And I will do some work about staticcheck as soon as possible. |
|
@BinacsLee ah, I see, so this is a failure from In that case, let's update this PR to add a script to verify go vet, similar to https://github.com/kubernetes/kubernetes/blob/master/hack/verify-govet.sh. We can have that script run as part of (For context I do see the error when running |
5f0ba38 to
ccf8454
Compare
ccf8454 to
fe8e17f
Compare
|
I'm sorry to confuse you. The script for govet has been added. Let's see how CI turns out ^-^ |
|
@BinacsLee no problem! Thanks for the update, this looks good to me now |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: BinacsLee, damemi The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…heduler-descheduler_test-fix-errorhandling Add verify script for govet & fix pkg/descheduler/descheduler_test.go

We can only use
t.Fatalin the main test goroutine.The solution is similar to:
https://github.com/kubernetes/kubernetes/blob/master/cmd/kube-proxy/app/server_test.go#L501
Thanks for review!