-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
test: run --cgroups=split in new cgroup #12162
test: run --cgroups=split in new cgroup #12162
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: giuseppe 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 |
b88cd65
to
dbff072
Compare
LGTM |
Seems to make sense, but I have a minor quibble with the |
dbff072
to
765b23c
Compare
sure, good suggestion. I've pushed a new version that uses |
765b23c
to
d025608
Compare
test/e2e/run_test.go
Outdated
@@ -1381,13 +1381,13 @@ USER mail`, BB) | |||
} | |||
} | |||
|
|||
container := podmanTest.Podman([]string{"run", "--rm", "--cgroups=split", ALPINE, "cat", "/proc/self/cgroup"}) | |||
container := podmanTest.PodmanSystemdScope([]string{"run", "--rm", "--cgroups=split", ALPINE, "cat", "/proc/self/cgroup"}, wrapper) |
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.
New code LGTM but wrapper
is no longer applicable here
d025608
to
f868e54
Compare
/hold |
the --cgroups=split test changes the current cgroup as it creates a sub-cgroup. This can cause a race condition in tests that are reading the current cgroup. Closes: containers#11191 Signed-off-by: Giuseppe Scrivano <[email protected]>
f868e54
to
0234b15
Compare
/lgtm Thank you, @giuseppe |
Thanks for tracking this down and fixing it @giuseppe. One less thing to cause future headaches. |
the --cgroups=split test changes the current cgroup as it creates a
sub-cgroup. This can cause a race condition in tests that are reading
the current cgroup.
Closes: #11191
Signed-off-by: Giuseppe Scrivano [email protected]
What this PR does / why we need it:
How to verify it
Which issue(s) this PR fixes:
Special notes for your reviewer: