mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-07-10 15:56:47 +00:00
Firecracker currently has no testing CI, only build CI. Add fc hypervisor to the test matrices for stability, CRI containerd, nerdctl, and Kubernetes tests. For the Kubernetes test matrix, configure the blockfile snapshotter instead of devmapper as devmapper requires 10G+ loop devices which is too space costly. The blockfile snapshotter uses a 500MB ext4 scratch file. Firecracker requires shared_fs=none in the kata configuration when using block-based rootfs; this is set by the _configure_fc_shared_fs helper which searches all three possible FC config paths and warns if none is found. The other test matrices (stability, CRI containerd, nerdctl) run FC with the default overlayfs snapshotter, which validates basic FC functionality (boot, agent, container lifecycle) without requiring snapshotter pre-configuration in those workflows. Refactor configure_snapshotter to extract the shared containerd configuration flow (config path resolution, tomlq install/uninstall, arch mapping, config update, service restart) into a reusable _configure_containerd_snapshotter helper so that adding new snapshotters does not require duplicating the entire function. Related #7996, #7872 Signed-off-by: marvelshan <reborn7875@gmail.com>