Skip to content

ci: run runc integration tests against crun - #2238

Draft
kolyshkin wants to merge 1 commit into
containers:mainfrom
kolyshkin:runc-integration
Draft

kolyshkin wants to merge 1 commit into
containers:mainfrom
kolyshkin:runc-integration

Conversation

@kolyshkin

@kolyshkin kolyshkin commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

The runc repository has an extensive integration test suite, which can be used to test any OCI runtime that aims to be compatible with runc, by pointing the RUNC environment variable to it.

Add a CI job that checks out runc, builds the helper binaries the tests need, and runs the suite against crun, mimicking what runc's own CI does: both as root and rootless, with both the cgroupfs and the systemd cgroup manager.

The tests which currently fail with crun are listed in tests/runc-integration-skip.txt and skipped (an entry can also be a whole file, for features crun does not have, e.g. runc events).

For now, runc is checked out from a branch with opencontainers/runc#5455, which is needed for RUNC and a few other variables to be passed to rootless systemd tests, and to fix a frozen cgroup test for runtimes which check the cgroup after the systemd scope is created.

Issues found by this test suite and fixed so far:

Draft until opencontainers/runc#5455 is merged.

@packit-as-a-service

Copy link
Copy Markdown

Ephemeral COPR build failed. @containers/packit-build please check.

The runc repository has an extensive integration test suite, which can
be used to test any OCI runtime that aims to be compatible with runc,
by pointing the RUNC environment variable to it.

Add a CI job that checks out runc, builds the helper binaries the tests
need, and runs the suite against crun, mimicking what runc's own CI
does: both as root and rootless, with both the cgroupfs and the systemd
cgroup manager.

Some of the tests currently fail with crun. Those are listed in
tests/runc-integration-skip.txt, and skipped. An entry can also be a
file name, meaning the whole file is to be skipped, which is used for
runc features crun does not have (e.g. runc events). The list is
expected to shrink over time.

For now, runc is checked out from a branch with the changes to its
tests needed to run them against crun (see opencontainers/runc#5455).

Signed-off-by: Kir Kolyshkin <[email protected]>
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.

1 participant