Runc: Need to add integration test suite for resource limitation (especially for devices)

Created on 9 Mar 2020  路  11Comments  路  Source: opencontainers/runc

https://github.com/opencontainers/runc/blob/master/tests/integration/cgroups.bats

The current test suite doesn't cover resource limitation stuff except memory.kernel.

enhancement good first issue

All 11 comments

We could extend the current bats suite to cover them, but we should also consider port over https://github.com/containers/crun/tree/master/tests (Python) for ease of json manipulation.
(The current crun suite seems to cover PID limits, but doesn't seem to cover cpu and memory anyway.)

cc @giuseppe

I can work on that

Thanks, please feel free to open PR

The current test suite doesn't cover resource limitation stuff except memory.kernel.

There's also https://github.com/opencontainers/runc/blob/master/tests/integration/update.bats which tests many other controllers.

@AkihiroSuda what kind of tests do you have in mind?

I think we need to add tests for devices (if we don't have yet)

I think we need to add tests for devices (if we don't have yet)

@AkihiroSuda, could you explain more or maybe provide an example of tests for devices?

@ahmedaabouzied Are you still working on this?

Actually, I couldn't get any far with this.

@AkihiroSuda I would like to work on this one if it is still required.

Yes please, thanks

Was this page helpful?
0 / 5 - 0 ratings