-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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 premature return #49834
Fix premature return #49834
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://github.com/kubernetes/kubernetes/wiki/CLA-FAQ 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. |
Hi @guoshimin. 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 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. I understand the commands that are listed here. |
Signed the CLA |
/ok-to-test Would you mind explaining how you found that bug? This code is complicated to understand and I'd really feel more confident if we could have better tests. I have the feeling that this is a good opportunity. |
I wrote a tool which used the strategicpatch package. I encountered the error Although I found the bug via my tool, I believe the bug affects kubectl apply too. The condition to trigger the bug is when you are
Here's a minimum example:
|
Awesome @guoshimin! @mengqiy can you take a look and see if this can be included in the unit-test suite? |
LGTM IMO we don't need a release note for this fix, do we? Can you update the release-note section in the PR body. |
Updated the release note |
Can you add the test case in #49834 (comment) to prevent regression in the future? |
Will do
…On Tue, Aug 1, 2017 at 12:38 PM Mengqi Yu ***@***.***> wrote:
Can you add the test case in #49834 (comment)
<#49834 (comment)>
to prevent regression in the future?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#49834 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ALPcHYYA4HYHWFOGHznnzEIMVrnbFgC8ks5sT37OgaJpZM4OnT1m>
.
|
Added test. PTAL. |
/lgtm |
178d2b9
to
aa1d47a
Compare
/assign @pwittrock |
/test pull-kubernetes-e2e-gce-etcd3 |
/lgtm |
/retest |
gentle ping @pwittrock |
/approve |
Thanks! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: guoshimin, mengqiy, pwittrock Associated issue: 50040 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 |
/test all [submit-queue is verifying that this PR is safe to merge] |
/retest |
Automatic merge from submit-queue |
Now that this is merged, how do we include it in the next patch release? |
This will be included in v1.8.0. |
Commit found in the "release-1.7" branch appears to be this PR. Removing the "cherrypick-candidate" label. If this is an error find help to get your PR picked. |
What this PR does / why we need it: Fixes a bug where the loop is prematurely terminated.
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #50040Special notes for your reviewer:
Release note: