-
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
Node e2e tests for the CPU Manager. #51041
Node e2e tests for the CPU Manager. #51041
Conversation
/assign @sjenning @derekwaynecarr @ConnorDoyle |
i will defer commenting on this too deeply until prereq pr merges (which i have reviewed) |
Blocker for CPU manager #49186 (6 of 6) |
c1569f1
to
d890469
Compare
@derekwaynecarr please add v1.8 milestone |
d890469
to
b90ec93
Compare
/release-note-none |
/test pull-kubernetes-e2e-gce-gpu |
e7d9ba6
to
610aea5
Compare
/test pull-kubernetes-e2e-gce-bazel |
@ConnorDoyle All tests are happy now. |
Successful run on local 8 core machine. /lgtm |
test/e2e_node/cpu_manager_test.go
Outdated
|
||
func waitForContainerRemoval(ctnPartName string) { | ||
Eventually(func() bool { | ||
err := exec.Command("/bin/sh", "-c", fmt.Sprintf("if [ -n \"$(docker ps -a | grep -i %s)\" ]; then exit 1; fi", ctnPartName)).Run() |
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.
what if i am not running docker?
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.
I added the TODO comment here as well.
test/e2e_node/cpu_manager_test.go
Outdated
|
||
func enableCPUManagerInKubelet(f *framework.Framework) (oldCfg *kubeletconfig.KubeletConfiguration) { | ||
// Run only if the container runtime is Docker. | ||
framework.RunIfContainerRuntimeIs("docker") |
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.
add a // TODO to support container runtime generically.
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.
I added the TODO comment.
/retest |
all tests, no new function. we can fix the TODO at a later point. /approve no-issue |
/test pull-kubernetes-federation-e2e-gce |
610aea5
to
affa182
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ConnorDoyle, balajismaniam, derekwaynecarr Associated issue: 51180 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 pull-kubernetes-federation-e2e-gce |
1 similar comment
/test pull-kubernetes-federation-e2e-gce |
pull-kubernetes-federation-e2e-gce is broke atm #52270 |
/retest Review the full test history for this PR. |
1 similar comment
/retest Review the full test history for this PR. |
/test all [submit-queue is verifying that this PR is safe to merge] |
/test pull-kubernetes-e2e-kops-aws |
Automatic merge from submit-queue |
thanks @balajismaniam 👍 |
What this PR does / why we need it:
Special notes for your reviewer:
test/e2e_node/cpu_manager_test.go
must be reviewed as a part of this PR (i.e., the last commit). Rest of the comments belong in CPU manager wiring andnone
policy #51357 and CPU manager static policy #51180.n1-standard-n4
andn1-standard-n2
instances on GCE.To run this node e2e test, use the following command:
CC @ConnorDoyle @sjenning