cgroup related tests fail
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- linux, ruby
- Domain
- operating-systems, testing-qa
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.
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)>'
- Dominant language
- Ruby
- Stars
- 133
- Forks
- 73
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing 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.
More from chef/mixlib-shellout
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
chef/mixlib-shellout#287 ·
-
Status: Untriaged Type: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
chef/mixlib-shellout#257 ·
-
Status: Untriaged
Difficulty 4/5 3-5 days Newbie friendliness 35/100
chef/mixlib-shellout#245 · 2 comments ·
-
Status: Untriaged Type: Bug
Difficulty 4/5 3-5 days Newbie friendliness 20/100
chef/mixlib-shellout#237 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
chef/mixlib-shellout#201 · 2 comments ·
All issues in chef/mixlib-shellout
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Dialog: clicking the panel's inner padding closes it (backdropClick matches the <dialog> itself)Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Homebrew/homebrew-cask#295450 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 Half a day Newbie friendliness 72/100
TheOdinProject/curriculum#31479 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
taskcluster/taskcluster#9284 · 1 comment ·
Maintainers usually reply within 1 day