Skip to content

Randomize errand job name during tests to avoid cgroup conflicts#179

Merged
beyhan merged 1 commit intomasterfrom
fix-runc-cgroup-conflict
Apr 24, 2025
Merged

Randomize errand job name during tests to avoid cgroup conflicts#179
beyhan merged 1 commit intomasterfrom
fix-runc-cgroup-conflict

Conversation

@rajathagasthya
Copy link
Copy Markdown

Tests in the integration2 package use the same errand job name when executing bpm run. When these tests are run in quick succession, it causes a race between cgroups from the previous test (with the same name) being cleaned up after bpm run is complete and the currently executing test. When runc tries to create a new container, it finds a cgroup with the same name (errand) already exists and has processes inside it, so it errors with a runc run failed: container's cgroup is not empty: 2 process(es) found message.

This change adds a random string to the errand job's name, so cgroups do not conflict with each other.

Tests in the integration2 package use the same `errand` job name when
executing `bpm run`. When these tests are run in quick succession, it
causes a race between cgroups from the previous test (with the same
name) being cleaned up after `bpm run` is complete and the currently
executing test. When `runc` tries to create a new container, it finds
a cgroup with the same name (errand) already exists and has processes
inside it, so it errors with a `runc run failed: container's cgroup is
not empty: 2 process(es) found` message.

This change adds a random string to the errand job's name, so cgroups do
not conflict with each other.

Signed-off-by: Nishad Mathur <nishad.mathur@broadcom.com>
@rajathagasthya rajathagasthya force-pushed the fix-runc-cgroup-conflict branch from 9ca3393 to d6c875d Compare April 23, 2025 22:43
@github-project-automation github-project-automation bot moved this from Inbox to Pending Merge | Prioritized in Foundational Infrastructure Working Group Apr 23, 2025
@beyhan beyhan merged commit 475c6fc into master Apr 24, 2025
3 checks passed
@github-project-automation github-project-automation bot moved this from Pending Merge | Prioritized to Done in Foundational Infrastructure Working Group Apr 24, 2025
@beyhan beyhan deleted the fix-runc-cgroup-conflict branch April 24, 2025 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants