Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.

Correct comments of deleteFreeContainer and add corresponding test #679

Merged

Conversation

bluebreezecf
Copy link
Contributor

I read into sources of heapster, and find out the comments of deleteFreeContainer in model/impl.go are just copy from the method updateFreeContainer, which will make confusion and be meaningless.
So I correct the comments of deleteFreeContainer (), and add the corresponding method test in model/impl_test.go.

@cadvisorJenkinsBot
Copy link

Can one of the admins verify this patch?

@@ -505,7 +505,8 @@ func (rc *realModel) updateFreeContainer(ce *cache.ContainerElement) (time.Time,
return latest_time, err
}

// updateFreeContainer updates Free Container-level information from a ContainerElement
// deleteFreeContainer deletes a free container from the belonging node.
// deleteFreeContainer receives a host name of the belonging node, and a name of the free container.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not: returns rather than receives

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ignore me, misread sorry

@jimmidyson
Copy link
Contributor

LGTM

@jimmidyson
Copy link
Contributor

ok to test

1 similar comment
@mvdan
Copy link
Contributor

mvdan commented Oct 30, 2015

ok to test

@mvdan
Copy link
Contributor

mvdan commented Oct 30, 2015

Looks like jenkins is down, or at least unreachable for me: http://104.154.52.74/job/heapster-e2e-gce/

Either way, the only change is a unit test, which are by Travis. Jenkins isn't really needed for this PR, merging.

mvdan added a commit that referenced this pull request Oct 30, 2015
Correct comments of deleteFreeContainer and add corresponding test
@mvdan mvdan merged commit e43a41b into kubernetes-retired:master Oct 30, 2015
@bluebreezecf bluebreezecf deleted the add-delete-free-container-test branch October 30, 2015 14:13
@vishh
Copy link
Contributor

vishh commented Oct 30, 2015

Jenkins should be accessible here.

On Fri, Oct 30, 2015 at 5:44 AM, Daniel Martí notifications@github.com
wrote:

Merged #679 #679.


Reply to this email directly or view it on GitHub
#679 (comment).

@bluebreezecf
Copy link
Contributor Author

@vishh
Your guys are talking about the Jenkins, what is it about?
Is the newly added test cause your inner Jenkins down?

@vishh
Copy link
Contributor

vishh commented Oct 30, 2015

We run a test server to validate PRs. My previous comment was for @mvdan.

On Fri, Oct 30, 2015 at 1:51 PM, Jianwei Shi notifications@github.com
wrote:

@vishh https://github.com/vishh
Your guys are talking about the Jenkins, what is it about?
Is the newly added test cause your inner Jenkins down?


Reply to this email directly or view it on GitHub
#679 (comment).

@bluebreezecf
Copy link
Contributor Author

@vishh
If what I can do to help just let know, bro.
I just wish this merged PR has no harm to the stability and safety of master branch.
If it does, please let know and I will try to fix it.

@vishh
Copy link
Contributor

vishh commented Oct 31, 2015

@bluebreezecf: Thanks for offering help! This PR is fine as-is.

@bluebreezecf
Copy link
Contributor Author

@vishh: With my pleasure bro!
It's my responsibility to take care of the quality of my submitted codes.
Let's make the heapster more stable, useful and powerful! : )

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

Successfully merging this pull request may close these issues.

6 participants