-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Automating OCP-55033 in Origin #30512
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
base: main
Are you sure you want to change the base?
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: automatic mode |
test/extended/node/node_e2e/node.go
Outdated
| //author: [email protected] | ||
| g.It("check KUBELET_LOG_LEVEL is 2", func() { | ||
| g.By("check Kubelet Log Level\n") | ||
| assertKubeletLogLevel(oc) |
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.
It is a better practice to have all the assertions and test logic in the test. The helper functions should just do stuff and return information. This makes the tests more readable and allows the helper functions to be more reusable.
| e2e "k8s.io/kubernetes/test/e2e/framework" | ||
| ) | ||
|
|
||
| func assertKubeletLogLevel(oc *exutil.CLI) { |
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.
Do you expect that this function will be used in another test? Maybe it is not needed. Just put it all in the test. We can refactor later if we discover that is it reusable.
| var kublet string | ||
| var err error | ||
| waitErr := wait.Poll(10*time.Second, 1*time.Minute, func() (bool, error) { | ||
| nodeName, nodeErr := oc.AsAdmin().WithoutNamespace().Run("get").Args("nodes", "-o=jsonpath={.items[*].metadata.name}").Output() |
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.
Assuming this code gets factored back in to the test, it would be good to see some By()s to clarify what the test is doing.
|
Scheduling required tests: |
|
/test e2e-vsphere-ovn-upi |
|
/test e2e-vsphere-ovn |
| e2e "k8s.io/kubernetes/test/e2e/framework" | ||
| ) | ||
|
|
||
| var _ = g.Describe("[sig-node] Kubelet, CRI-O, CPU manager", func() { |
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.
The new labeling method is to use [jira:"Node / Kubelet]"] per https://docs.google.com/document/d/1cFZj9QdzW8hbHc3H0Nce-2xrJMtpDJrwAse9H7hLiWk/edit?tab=t.0#heading=h.v059hn4ylc6b
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.
also "Add the “[OTP]” annotation in the test name to tests that are ported, this is for tracking purposes so we can get a rough idea of how many tests have come over."
|
/lgtm |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: asahay19, cpmeadors, lyman9966 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
test/extended/node/node_e2e/node.go
Outdated
| ) | ||
|
|
||
| //author: [email protected] | ||
| g.It("check KUBELET_LOG_LEVEL is 2", func() { |
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.
One thing we advise against is putting specific criteria in test names like '2'. This could be validate KUBELET_LOG_LEVEL and if the desired log level ever changed the test could be updated without changing the test name or losing history.
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.
Done !
|
I see where your test ran from the previous pr prior to 2989d03201 But I don't see that it ran in any presubmits on this pr. |
|
New changes are detected. LGTM label has been removed. |
yes, I have updated the PR description with the latest test output result. Thank you |
|
Scheduling required tests: |
|
Thanks, need to see what the issue is with those failures: [sig-node] Kubelet, CRI-O, CPU manager validate KUBELET_LOG_LEVEL [Suite:openshift/conformance/parallel]" [Total: 5, Pass: 0, Fail: 5, Flake: 0] |
|
/retest |
1 similar comment
|
/retest |
|
@asahay19: The following tests failed, say
Full PR test history. Your PR dashboard. 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-sigs/prow repository. I understand the commands that are listed here. |
|
Risk analysis has seen new tests most likely introduced by this PR. New Test Risks for sha: 94022ca
New tests seen in this PR at sha: 94022ca
|
This case is about checking the Kubelet log level is 2.
Here is the test case link : https://polarion.engineering.redhat.com/polarion/#/project/OSE/workitem?id=OCP-55033
It is duplicate of PR: #30460
PR: 30460 got closed because I had to delete repo, so creating new PR again with addressing all the comments.
PTAL @sairameshv @lyman9966 @cpmeadors
Here is the output for this PR . It got passed successfully while executing it on my local :
./openshift-tests run-test "[sig-node] Kubelet, CRI-O, CPU manager validate KUBELET_LOG_LEVEL [Suite:openshift/conformance/parallel]"
Running Suite: - /Users/asahay/newOCP-55033/origin
Random Seed: 1764311478 - will randomize all specs
Will run 1 of 1 specs
[sig-node] Kubelet, CRI-O, CPU manager validate KUBELET_LOG_LEVEL
github.com/openshift/origin/test/extended/node/node_e2e/node.go:20
STEP: Creating a kubernetes client @ 11/28/25 12:01:22.453
I1128 12:01:22.455698 58826 discovery.go:214] Invalidating discovery information
STEP: Polling to check kubelet log level on ready nodes @ 11/28/25 12:01:22.455
STEP: Getting all node names in the cluster @ 11/28/25 12:01:32.457
I1128 12:01:35.246189 58826 node.go:30]
Node Names are ip-10-0-21-47.us-east-2.compute.internal ip-10-0-29-148.us-east-2.compute.internal ip-10-0-43-146.us-east-2.compute.internal ip-10-0-53-99.us-east-2.compute.internal ip-10-0-76-236.us-east-2.compute.internal ip-10-0-87-5.us-east-2.compute.internal
STEP: Checking if node ip-10-0-21-47.us-east-2.compute.internal is Ready @ 11/28/25 12:01:35.246
I1128 12:01:36.338169 58826 node.go:37]
Node ip-10-0-21-47.us-east-2.compute.internal Status is True
I1128 12:01:47.470106 58826 node.go:50] KUBELET_LOG_LEVEL is 2.
• [25.041 seconds]
Ran 1 of 1 Specs in 25.042 seconds
SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 0 Skipped
[
{
"name": "[sig-node] Kubelet, CRI-O, CPU manager validate KUBELET_LOG_LEVEL [Suite:openshift/conformance/parallel]",
"lifecycle": "blocking",
"duration": 25042,
"startTime": "2025-11-28 06:31:22.430978 UTC",
"endTime": "2025-11-28 06:31:47.473486 UTC",
"result": "passed",
"output": " STEP: Creating a kubernetes client @ 11/28/25 12:01:22.453\n STEP: Polling to check kubelet log level on ready nodes @ 11/28/25 12:01:22.455\n STEP: Getting all node names in the cluster @ 11/28/25 12:01:32.457\nI1128 12:01:35.246189 58826 node.go:30] \nNode Names are ip-10-0-21-47.us-east-2.compute.internal ip-10-0-29-148.us-east-2.compute.internal ip-10-0-43-146.us-east-2.compute.internal ip-10-0-53-99.us-east-2.compute.internal ip-10-0-76-236.us-east-2.compute.internal ip-10-0-87-5.us-east-2.compute.internal\n STEP: Checking if node ip-10-0-21-47.us-east-2.compute.internal is Ready @ 11/28/25 12:01:35.246\nI1128 12:01:36.338169 58826 node.go:37] \nNode ip-10-0-21-47.us-east-2.compute.internal Status is True\n\n STEP: Checking KUBELET_LOG_LEVEL in kubelet.service on node ip-10-0-21-47.us-east-2.compute.internal @ 11/28/25 12:01:36.338\n STEP: Checking kubelet process for --v=2 flag on node ip-10-0-21-47.us-east-2.compute.internal @ 11/28/25 12:01:44.469\n STEP: Verifying KUBELET_LOG_LEVEL is set and kubelet is running with --v=2 @ 11/28/25 12:01:47.469\nI1128 12:01:47.470106 58826 node.go:50] KUBELET_LOG_LEVEL is 2.\n\n"
}
]%