Skip to content
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

Skip TestWriteCgroupFileHandlesInterrupt on CentOS 7 #4099

Merged
merged 2 commits into from
Nov 6, 2023

Conversation

kolyshkin
Copy link
Contributor

@kolyshkin kolyshkin commented Oct 27, 2023

It's flaky and we can do nothing about it.

Also, this is a chance to finally introduce our first internal package (even if for tests only), discussed in #3028.

Fixes #3418.

CentOS 7 is showing its age and we'd rather skip some tests on it than
find out why they are flaky.

Add internal/testutil package, and move the generalized version of
SkipOnCentOS7 from libcontainer/cgroups/devices to there.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
It's flaky (kernel bug?) and there's probably nothing we can do about
it.

Fixes opencontainers#3418.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@kolyshkin kolyshkin marked this pull request as ready for review October 30, 2023 23:54
Copy link
Member

@lifubang lifubang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Just only a thinking, I think maybe it's deleted by systemd? But the path doesn't contain .slice, .scope or systemd. Writing the test pid to cgroup.procs may be can also fix this flaky test?
But it's just a guess, let's skip first?

@kolyshkin
Copy link
Contributor Author

LGTM Just only a thinking, I think maybe it's deleted by systemd? But the path doesn't contain .slice, .scope or systemd. Writing the test pid to cgroup.procs may be can also fix this flaky test? But it's just a guess, let's skip first?

This might be the kernel (as there are no processes in the cgroup... although it is still in a preparation state) -- but, for some reason, it only happens in CentOS 7, so maybe we just hit a kernel bug.

@kolyshkin kolyshkin merged commit 2f67370 into opencontainers:main Nov 6, 2023
45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TestWriteCgroupFileHandlesInterrupt on CentOS 7 got ENODEV
3 participants