-
Notifications
You must be signed in to change notification settings - Fork 38.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
Added non-serialized metrics for windows, for 3 pods #105854
Conversation
Hi @NikhilSharmaWe. 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 Once the patch is verified, the new status will be reflected by the 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. |
/ok-to-test |
/assign |
test/e2e/windows/kubelet_stats.go
Outdated
@@ -59,7 +59,7 @@ var _ = SIGDescribe("[Feature:Windows] Kubelet-Stats [Serial]", func() { | |||
|
|||
ginkgo.By("Getting kubelet stats 5 times and checking average duration") | |||
iterations := 5 | |||
var totalDurationMs int64 | |||
var totalDurationMs int |
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.
duration.Milliseconds() returns int64 so we should keep this var int64 as well.
https://pkg.go.dev/time#Duration.Milliseconds
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.
This should fix a lot of the build / typecheck errors too
@@ -99,6 +99,70 @@ var _ = SIGDescribe("[Feature:Windows] Kubelet-Stats [Serial]", func() { | |||
}) | |||
}) | |||
}) | |||
var _ = SIGDescribe("[Feature:Windows] Kubelet-Stats", func() { | |||
f := framework.NewDefaultFramework("kubelet-stats-test-windows") |
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.
Can you make this unique (or add -serial to the one one line 39 above?)
test/e2e/windows/kubelet_stats.go
Outdated
framework.ExpectNoError(err, "Error finding Windows node") | ||
framework.Logf("Using node: %v", targetNode.Name) | ||
|
||
ginkgo.By("Scheduling 10 pods") |
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.
ginkgo.By("Scheduling 10 pods") | |
ginkgo.By("Scheduling 3 pods") |
ginkgo.By("Scheduling 10 pods") | |
ginkgo.By("Scheduling 10 pods") |
test/e2e/windows/kubelet_stats.go
Outdated
timeout := 3 * time.Minute | ||
e2epod.WaitForPodsRunningReady(f.ClientSet, f.Namespace.Name, 3, 0, timeout, make(map[string]string)) | ||
|
||
ginkgo.By("Getting kubelet stats 5 times and checking average duration") |
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.
Is there a reason why this is querying the container stats 5 times?
I think it should be sufficient to just query stats once and ensure all of the values we expect to be non-zero are non-zero (bonus points if we can check to make sure they fall within an expected range).
2ac4273
to
fba89fc
Compare
@marosset could you please confirm on the changes made. Unable to figure out the cause of test fails. |
@marosset this error is related to type of totalDurationMs, but I am unable to find out the cause of the error. |
pull-kubernetes-typecheck has some details for the error
https://github.com/kubernetes/kubernetes/pull/105854/files#diff-36d32acf28aadd81b686bade1357da7735107d8037d36f1d727c2e368a82e0d7R126 likely needs to be updated to |
/triage accepted |
fba89fc
to
8c89661
Compare
@marosset Is this PR ready or is there something still to be worked on. |
/lgtm i see the test passing in the Thanks @NikhilSharmaWe |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: marosset, NikhilSharmaWe 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 |
@marosset it is showing that the PR needs kind label, what should be the kind for this PR or can you add an appropriate one. |
/release-note-none |
What type of PR is this?
Enhancement
What this PR does / why we need it:
Added non-serialized metrics for windows, for 3 pods
Which issue(s) this PR fixes:
Fixes #104418
Special notes for your reviewer:
I am not sure about this change, if this is wrong please guide me.
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: