-
Notifications
You must be signed in to change notification settings - Fork 40.9k
Fixing k8s.io/kubernetes/pkg/kubelet/kuberuntime unit tests on Windows #130182
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: master
Are you sure you want to change the base?
Fixing k8s.io/kubernetes/pkg/kubelet/kuberuntime unit tests on Windows #130182
Conversation
/test pull-kubernetes-unit-windows-master |
/assgin @tallclair |
/triage accepted |
/test pull-kubernetes-e2e-gce |
@marosset: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. |
/test pull-kubernetes-e2e-gce |
/assign @tallclair |
The unit test job is failing but all the tests in this package are passing in the PR job |
@@ -237,6 +237,9 @@ func TestToKubeContainerStatus(t *testing.T) { | |||
// TestToKubeContainerStatusWithResources tests the converting the CRI container status to | |||
// the internal type (i.e., toKubeContainerStatus()) for containers that returns Resources. | |||
func TestToKubeContainerStatusWithResources(t *testing.T) { | |||
if goruntime.GOOS == "windows" { | |||
t.Skip("InPlacePodVerticalScaling is not currently supported on 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.
The individual test cases below have a skipOnWindows
option. If we're blanket skipping this whole test, can we remove that per-testcase version?
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.
let me check the list of tests we are skipping against what is currently failing.
If it is only a few additional tests that need skipping i'll update the skipOnWindows, otherwise I can skip them all and drop the skipOnWindows per-testcase
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 removed the skipOnWindows
support here.
thanks!
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.
EDIT: never mind the previous (deleted) comments - looking at the code I see the resource conversion is gated on InPlacePodVerticalScaling
and only performed for linux.
Signed-off-by: Mark Rossetti <[email protected]>
c8f9e62
to
3c77e05
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: marosset 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 |
Hello @marosset and @tallclair! This pr has not been updated for about a week, so I'd like to check what's the status. If there's anything we can do, please let us know. The code freeze is starting 02:00 UTC Friday 21st March 2025 (about 4 weeks from now), and while there is still time, we want to ensure that each PR has a chance to be merged on time. As the issue is tagged for 1.33, is it still planned for this release? Thanks! |
👋 Hello! It looks like this PR might be getting a little too late. Is the plan still to resolve it for v1.33 release? If so, a gentle reminder that the code freeze has started 02:00 UTC Friday 21st March 2025 . Please make sure any PRs have both lgtm and approved labels ASAP, and file an Exception if you haven't done it yet. Thanks! |
@@ -237,6 +237,9 @@ func TestToKubeContainerStatus(t *testing.T) { | |||
// TestToKubeContainerStatusWithResources tests the converting the CRI container status to | |||
// the internal type (i.e., toKubeContainerStatus()) for containers that returns Resources. | |||
func TestToKubeContainerStatusWithResources(t *testing.T) { | |||
if goruntime.GOOS == "windows" { | |||
t.Skip("InPlacePodVerticalScaling is not currently supported on 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.
EDIT: never mind the previous (deleted) comments - looking at the code I see the resource conversion is gated on InPlacePodVerticalScaling
and only performed for linux.
expected *kubecontainer.Status | ||
skipOnWindows bool | ||
input *runtimeapi.ContainerStatus | ||
expected *kubecontainer.Status | ||
}{ | ||
"container reporting cpu and memory": { |
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.
If we're skipping this test on windows, can we remove the windows conditional when setting the resources? (if goruntime.GOOS == "windows"
below)
Hi @tallclair @marosset |
What type of PR is this?
/kind failing-test
What this PR does / why we need it:
This PR fixes unit test failures in
k8s.io/kubernetes/pkg/kubelet/kuberuntime
when run on WindowsWhich issue(s) this PR fixes:
Part of #130149
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
/sig windows node
/milestone v1.33