Skip to content
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

[Help] Clean up static check failures #7800

Closed
tanjunchen opened this issue Oct 16, 2019 · 11 comments
Closed

[Help] Clean up static check failures #7800

tanjunchen opened this issue Oct 16, 2019 · 11 comments
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. sig/testing Categorizes an issue or PR as relevant to SIG Testing.

Comments

@tanjunchen
Copy link
Member

tanjunchen commented Oct 16, 2019

1. Describe IN DETAIL the feature/behavior/change you would like to see.
There are many packages that can't pass the static check and we need to clean them up even though hack/verify-staticcheck.sh exsits in the kops.
Step 1: Remove some packages(related packages) from the list in https://github.com/kubernetes/kops/blob/master/hack/.staticcheck_failures ,
Step 2: Run hack/verify-staticcheck.sh and look at outputs from console
Step 3: Fix them to ensure that hack/verify-staticcheck.sh runs cleanly
Step 4: Run hack/verify-bazel.sh and hack/verify-gofmt.sh to make sure that you fix any problems with bazel or gofmt.
Step 5: How to make prs?

https://github.com/kubernetes/kops/pull/8203#issue-356845565

Attention: if you have any questions
read this https://github.com/kubernetes/kops/blob/master/docs/development/vendoring.md

@tanjunchen
Copy link
Member Author

/help

@k8s-ci-robot
Copy link
Contributor

@tanjunchen:
This request has been marked as needing help from a contributor.

Please ensure the request meets the requirements listed here.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help command.

In response to this:

/help

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.

@k8s-ci-robot k8s-ci-robot added the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Oct 16, 2019
@tanjunchen
Copy link
Member Author

tanjunchen commented Oct 16, 2019

/priority important-longterm

@k8s-ci-robot k8s-ci-robot added the priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. label Oct 16, 2019
@k8s-ci-robot
Copy link
Contributor

@tanjunchen: The label(s) priority/ cannot be applied. These labels are supported: api-review, community/discussion, community/maintenance, community/question, cuj/build-train-deploy, cuj/multi-user, platform/aws, platform/azure, platform/gcp, platform/minikube, platform/other

In response to this:

/priority important-longterm
/sig testing

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.

@k8s-ci-robot k8s-ci-robot added the sig/testing Categorizes an issue or PR as relevant to SIG Testing. label Oct 16, 2019
@tanjunchen tanjunchen changed the title Fix static check failures [Help] Clean up static check failures Oct 16, 2019
@rendhalver
Copy link

I am interested in getting started helping out with kops.
How much of this is left to do?

@rifelpet
Copy link
Member

Thanks for volunteering! Most of the staticcheck issues have been addressed but you can certainly check the remaining issues in hack/.staticcheck_failures for the remaining ones, besides the PR listed above that is currently open.

I'm adding an additional check in #8328 similar to staticcheck but for shell scripts: shellcheck. Feel free to check it out and start fixing some of the reported issues.

@rendhalver
Copy link

Awesome. Thanks for the pointer @rifelpet!
I will see what I can work out.

@rendhalver
Copy link

Hrm. There's only one entry in hack/.staticcheck_failures and it looks like #7839 fixes at least some of those.
I will see I can what I can do to help out with the shellcheck fixes. :)

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 16, 2020
@rifelpet rifelpet added good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. and removed good-starter-issue labels Apr 18, 2020
@rifelpet
Copy link
Member

all the staticcheck failures have been fixed. good job everyone
/close

@k8s-ci-robot
Copy link
Contributor

@rifelpet: Closing this issue.

In response to this:

all the staticcheck failures have been fixed. good job everyone
/close

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. sig/testing Categorizes an issue or PR as relevant to SIG Testing.
Projects
None yet
Development

No branches or pull requests

6 participants