-
Notifications
You must be signed in to change notification settings - Fork 77
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
Add cgroupv2 support for linux shellouts #256
Conversation
If `cgroup` attribute is provided, it will execute the command within a specific cgroupv2, creating it if missing Signed-off-by: Imanol-Mikel Barba Sabariego <imanol@imanolbarba.net>
Signed-off-by: Imanol-Mikel Barba Sabariego <imanol@imanolbarba.net>
Signed-off-by: Imanol-Mikel Barba Sabariego <imanol@imanolbarba.net>
Not only check there's _a_ cgroupv2 tree mounted, but check it's also in the expected path Signed-off-by: Imanol-Mikel Barba Sabariego <imanol@imanolbarba.net>
Signed-off-by: Imanol-Mikel Barba Sabariego <imanol@imanolbarba.net>
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.
Consider .match?
instead to simplify the logic and reading of the code.
Signed-off-by: Imanol-Mikel Barba Sabariego <imanol@imanolbarba.net>
Looks like I broke the Windows tests despite adding :linux_only, gonna attempt to repro and fix |
As cgroups is a linux concept, so it makes sense to run the cgroup tests only on this platform Signed-off-by: Imanol-Mikel Barba Sabariego <imanol@ima.lol>
Signed-off-by: Imanol-Mikel Barba Sabariego <imanol@imanolbarba.net>
|
@tpowell-progress ping for review :) |
Description
This PR aims to implement cgroupv2 support for shellouts, allowing the user to specify under which cgroup should the command be executed.
Types of changes
Checklist:
Gemfile.lock
has changed, I have used--conservative
to do it and included the full output in the Description above.