Skip to content

ci: install CRIU in containerd integration tests and skip checkpoint tests#3475

Merged
saku3 merged 1 commit intoyouki-dev:mainfrom
nayuta723:ci/containerd-test-install-criu
Apr 1, 2026
Merged

ci: install CRIU in containerd integration tests and skip checkpoint tests#3475
saku3 merged 1 commit intoyouki-dev:mainfrom
nayuta723:ci/containerd-test-install-criu

Conversation

@nayuta723
Copy link
Copy Markdown
Contributor

@nayuta723 nayuta723 commented Mar 30, 2026

Description

In the containerd integration test job, some tests were being silently skipped because CRIU was not installed in the CI environment. Silent skips are easy to overlook and can lead to reduced test coverage going unnoticed.

This PR makes the skipping explicit: install CRIU via ppa:criu/ppa so it is available in the environment, and add -skip TestCheckpoint to TESTFLAGS so that the checkpoint/restore tests — which happen to require a CRIU-compatible kernel configuration not present in CI — are visibly excluded rather than silently dropped.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)
  • Performance improvement
  • Test updates
  • CI/CD related changes
  • Other (please describe):

Testing

  • Added new unit tests
  • Added new integration tests
  • Ran existing test suite
  • Tested manually (please provide steps)

Related Issues

Related to #3476

Additional Context

The -skip flag is available from Go 1.20+; this job uses Go 1.20.12.

@nayuta723 nayuta723 marked this pull request as draft March 30, 2026 17:32
@nayuta723 nayuta723 marked this pull request as ready for review March 30, 2026 17:45
runc --version
- name: Integration Test
run: sudo make RUNC_FLAVOR=crun TEST_RUNTIME=io.containerd.runc.v2 TESTFLAGS="-timeout 40m" integration
run: sudo make RUNC_FLAVOR=crun TEST_RUNTIME=io.containerd.runc.v2 TESTFLAGS="-timeout 40m -skip TestCheckpoint" integration
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For tests that youki does not yet support, add explicit -skip entries with comments explaining why they are excluded

You mentioned that in the issue, but does that mean it does not need to be commented on here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, I missed mentioning that here, so I'll add it now. Thank you for pointing it out!

Add CRIU PPA and install criu package before running containerd
integration tests. Skip checkpoint/restore related tests since youki
does not yet support that functionality (see issue youki-dev#142).

Signed-off-by: nayuta723 <nayuta723@gmail.com>
@nayuta723 nayuta723 force-pushed the ci/containerd-test-install-criu branch from 42250b7 to 3bfa6b5 Compare April 1, 2026 15:00
Copy link
Copy Markdown
Member

@saku3 saku3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@saku3 saku3 merged commit 218cafc into youki-dev:main Apr 1, 2026
28 checks passed
@github-actions github-actions bot mentioned this pull request Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants