-
Notifications
You must be signed in to change notification settings - Fork 40.9k
Skip unit tests that assume the system does not use cgroup v2. #119329
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
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: brianpursley 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 |
/ok-to-test |
/assign @ffromani |
/triage accepted |
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.
@brianpursley is this PR still valid (i.e. tests failing) or this be closed? #118764 should've fixed these issues.
Yes, that PR seems to have fixed the problem. Closing this one. |
What type of PR is this?
/kind failing-test
What this PR does / why we need it:
Since 4e20a8f, some of the kuberuntime unit tests fail when run on systems that have cgroup v2 unified mode (Ubuntu 22.04 in my case).
The test failures are not happening in the build pipeline, only when you are running them locally on a system with cgroup v2 unified mode (
stat -fc %T /sys/fs/cgroup
returnscgroup2fs
)This PR checks for cgroup v2 unified mode, and if detected, skips the tests that fail when running on a system using cgroup v2 unidified mode.
Which issue(s) this PR fixes:
Special notes for your reviewer:
This is an alternate solution to the problem proposed by #119292 (comment)
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: