-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Add verify-gomod and verify-goimports to Travis job #7952
Conversation
I'll probably need to vendor goimports the same way we do staticcheck and a few other tools in |
b9dc036
to
e6220b0
Compare
e6220b0
to
27b193e
Compare
Travis is passing and definitely running verify-goimports (see the failing job here) so I think this is ready for review 👍 |
@rifelpet Any reason why this should go into travis and not prow? I noticed that we weren't tracking this test while reviewing a patch that was green on prow, but not locally (with |
No real reason for adding it to Travis vs Prow. We could easily add new prow jobs to test-infra that run each of these two commands, or perhaps collapse all of the verify-* commands into one prow job. Thoughts? |
I think it probably makes sense to collapse the "linty" stuff |
The advantage of putting it in Travis is that the problems can be detected and fixed before the ok-to-test label is applied. That would save the reviewers some rounds of re-review. |
Good point. @rifelpet can you update this and we can get it included? |
27b193e
to
8e9f7e6
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rifelpet 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 |
@geojaz done! |
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.
/lgtm
It turns out we werent running verify-goimports in any CI job and some files were failing. This adds them in a blocking job which should prevent that from happening again.