cgroup related tests fail
Open
Nobody has claimed this yet.
Status: Untriaged
Type: Bug
- Dominant language
- Ruby
- Stars
- 133
- Forks
- 73
- Avg merge
- 8h 20m
- Merged PRs (30d)
- 2
Description
Version:
main / latest
Environment:
Linux - tried on various distros.
when running on a cgroup
when cgroup exists
should run the process under that cgroup (FAILED - 1)
when cgroup does not exist
should create the cgroup and run the process under it (FAILED - 2)
Failures:
1) Mixlib::ShellOut when running on a cgroup when cgroup exists should run the process under that cgroup
Failure/Error: expect(running_cgroup).to eql(cgroup.to_s)
expected: "/user.slice/user-1000.slice/session-2.scope"
got: ""
(compared using eql?)
# ./spec/mixlib/shellout_spec.rb:1599:in `block (4 levels) in <top (required)>'
2) Mixlib::ShellOut when running on a cgroup when cgroup does not exist should create the cgroup and run the process under it
Failure/Error: expect(running_cgroup).to eql(cgroup.to_s)
expected: "/user.slice/user-1000.slice/test"
got: ""
(compared using eql?)
# ./spec/mixlib/shellout_spec.rb:1609:in `block (4 levels) in <top (required)>'
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the cgroup examples in spec/mixlib/shellout_spec.rb, especially the cases around lines 1599 and 1609, and inspect their failure output. Trace why running_cgroup is empty on Linux for both existing and newly created cgroups. Done means both reported examples pass across the affected Linux environments.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, ruby
- Domain
- operating-systems, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100