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

Fix misleading message in "make ci" when imports formatted incorrectly #8045

Merged
merged 2 commits into from
Dec 6, 2019

Conversation

johngmyers
Copy link
Member

@johngmyers johngmyers commented Dec 4, 2019

/kind bug

If the current commit contains a file with an import formatting error, such that make verify-goimports would fail, then a make ci will give the wrong error message, giving the user the wrong instructions for fixing the problem.

The added goimports will "fix up" the problem, causing the later verify-goimports to incorrectly pass. Then, verify-gomod will notice the dirty workspace and incorrectly tell the user to run go mod tidy.

This bug was introduced by #8023
The commit introducing the bug was reviewed and approved by @geojaz, so
/assign @geojaz

@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Dec 4, 2019
@k8s-ci-robot
Copy link
Contributor

Hi @johngmyers. 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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Dec 4, 2019
@geojaz
Copy link
Member

geojaz commented Dec 4, 2019

/ok-to-test
but it looks like travis is unhappy

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Dec 4, 2019
@geojaz
Copy link
Member

geojaz commented Dec 5, 2019

@johngmyers thank you for bailing me out :)

i went back to the drawing board on this. I'm wondering if targets make-ci and ci are both relevant. At this point, it looks like we could either eliminate ci, or have one alias the other (with updated comments for both). @joshbranham @mikesplain thoughts?

@johngmyers
Copy link
Member Author

I don't see a make-ci target in master, just ci and travis-ci. @geojaz could you give a link to what you are referring to?

@geojaz
Copy link
Member

geojaz commented Dec 6, 2019

Sorry, you're correct. I was comparing the targets ci and travis-ci in master. I wonder if there is still a need for both.

They seem to do essentially the same right now. I thought the intention of the travis target was to be like a ci-lite without bazel, but it seems to be the about the same.

I would argue that we should remove one or the other (probably by aliasing, so we don't break folks).

@johngmyers
Copy link
Member Author

travis-ci omits the verifications that require bazel, as Travis does not currently have Bazel installed. I think it would be a good idea to figure out how to install Bazel in Travis, but that's a different issue (and currently beyond my Travis-fu).

@johngmyers
Copy link
Member Author

Are there any issues with this PR as currently proposed or can it go in? I have a conflicting change I would like to propose as a new PR.

@geojaz
Copy link
Member

geojaz commented Dec 6, 2019

/lgtm
/approve

sure. we can come back to this one. thanks @johngmyers

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 6, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: geojaz, johngmyers

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 6, 2019
@johngmyers
Copy link
Member Author

/retest

@k8s-ci-robot k8s-ci-robot merged commit ad19b4e into kubernetes:master Dec 6, 2019
@johngmyers johngmyers deleted the goimports-bindata branch December 6, 2019 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants