Skip to content

Conversation

jmuk
Copy link
Contributor

@jmuk jmuk commented Feb 20, 2018

noticed that "tests" is specified in lintconfig_base.json incorrectly.
It's "test" actually.

By changing this, I've met some new lint errors in test.go files,
mostly on errcheck. This PR includes fixes on them.

Note: I've seen several patterns of defer something.Close(),
which does not check the errors. I think this is very common among
our code base, and I don't think this has problem if that's within
test code. I added an exclude pattern for this.

noticed that "tests" is specified in lintconfig_base.json incorrectly.
It's "test" actually.

By changing this, I've met some new lint errors in test.go files,
mostly on errcheck. This PR includes fixes on them.

Note: I've seen several patterns of `defer something.Close()`,
which does not check the errors. I think this is very common among
our code base, and I don't think this has problem if that's within
test code. I added an exclude pattern for this.
@jmuk jmuk requested review from a team February 20, 2018 22:23
@ldemailly
Copy link
Member

/lgtm

@istio-merge-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ldemailly

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@istio-merge-robot
Copy link

/test all [submit-queue is verifying that this PR is safe to merge]

@istio-merge-robot
Copy link

Automatic merge from submit-queue.

@istio-merge-robot istio-merge-robot merged commit 9cc48c2 into istio:master Feb 20, 2018
@istio-testing
Copy link
Collaborator

@jmuk: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
prow/istio-pilot-e2e.sh 176ed77 link /test istio-pilot-e2e

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants