Skip to content

Add test flag for skipping shim cgroup test#7424

Merged
samuelkarp merged 1 commit intocontainerd:mainfrom
cpuguy83:skip_shimcgroup
Sep 23, 2022
Merged

Add test flag for skipping shim cgroup test#7424
samuelkarp merged 1 commit intocontainerd:mainfrom
cpuguy83:skip_shimcgroup

Conversation

@cpuguy83
Copy link
Copy Markdown
Member

For some shims (namely github.com/cpuguy83/containerd-shim-systemd-v1), the shim cgroup test doesn't make sense since there is only a single shim process for the entire node.

I use these integration tests to make sure the shim is compatible with the runc shims and generally works as expected. This will let me skip the shim cgroup test as there is no process for the shim to stick into the cgroup... mostly.
There is a bootstrap process as well as a PTY copier proces which do use the shim cgroup if provided, but the test is not able to check for those (unless we enable tty on the test, which is a bit arbitrary and not useful).

Signed-off-by: Brian Goff [email protected]

For some shims (namely github.com/cpuguy83/containerd-shim-systemd-v1),
the shim cgroup test doesn't make sense since there is only a single
shim process for the entire node.

I use these integration tests to make sure the shim is compatible with
the runc shims and generally works as expected. This will let me skip
the shim cgroup test as there is no process for the shim to stick into
the cgroup... mostly.
There is a bootstrap process as well as a PTY copier proces which do use
the shim cgroup if provided, but the test is not able to check for
those (unless we enable tty on the test, which is a bit arbitrary and
not useful).

Signed-off-by: Brian Goff <[email protected]>
@samuelkarp samuelkarp merged commit 4bd8b5b into containerd:main Sep 23, 2022
@cpuguy83 cpuguy83 deleted the skip_shimcgroup branch September 23, 2022 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants