-
Notifications
You must be signed in to change notification settings - Fork 536
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
feat: Add errcheck linter with golangci-lint #1426
Conversation
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
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. I understand the commands that are listed here. |
Welcome @kushthedude! |
Hi @kushthedude. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/cla signed |
Hey @wojtek-t, I see that the bash script to run golangcilint & lib/gopkg to find modules do not run on macOS due to find: -printf: unknown primary or operator should I also push updated script on the basis of OS_ENV ? |
clusterloader2/pkg/measurement/common/service_creation_latency.go
Outdated
Show resolved
Hide resolved
/ok-to-test |
2d26544
to
92b04f2
Compare
clusterloader2/pkg/measurement/common/service_creation_latency.go
Outdated
Show resolved
Hide resolved
64be723
to
42aae4d
Compare
clusterloader2/pkg/measurement/common/service_creation_latency.go
Outdated
Show resolved
Hide resolved
clusterloader2/pkg/measurement/common/slos/pod_startup_latency.go
Outdated
Show resolved
Hide resolved
clusterloader2/pkg/measurement/common/slos/api_responsiveness_prometheus_test.go
Outdated
Show resolved
Hide resolved
clusterloader2/pkg/measurement/common/slos/api_responsiveness_prometheus_test.go
Outdated
Show resolved
Hide resolved
31a67e9
to
6fc2d93
Compare
There are two more issues: --- FAIL: TestLogging (0.00s) Modulo fixing those it looks fine |
@wojtek-t I fixed the first issue, about the second there is a latency increase of 1.2 sec which can be due to the test parameter I added hence due to which test is failing, how should I go about this? |
It's not about latency increase - the data are faked in this test and this 1.2s is hardcoded - see line 465. The real issue is different something is logged differently - you need to take a look into what was logger previously and what is logged now (and why this is different). |
clusterloader2/pkg/measurement/common/slos/api_responsiveness_prometheus_test.go
Outdated
Show resolved
Hide resolved
455faa6
to
ddb417e
Compare
@wojtek-t Please review, I have just logged that error rather than failing the test at gatherer function. |
clusterloader2/pkg/measurement/common/slos/api_responsiveness_prometheus_test.go
Outdated
Show resolved
Hide resolved
@kushthedude - please fix the compile errors and then LGTM |
Signed-off-by: Kush Trivedi <[email protected]>
should be fixed now ! Edit: @wojtek-t Fixed! |
Thanks a lot for pushing this! /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kushthedude, wojtek-t The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Thanks @wojtek-t for bearing with me in this PR 😄 |
Refers #1244