This repository was archived by the owner on Mar 9, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7878 linux-build-and-test :
7979 name : Build, Unit, Integration, and CRI (linux amd64)
8080 runs-on : ubuntu-18.04
81+
82+ strategy :
83+ matrix :
84+ runtime : [io.containerd.runtime.v1.linux, io.containerd.runc.v1, io.containerd.runc.v2]
85+
8186 steps :
8287 - name : Install Go
8388 uses : actions/setup-go@v1
@@ -122,8 +127,10 @@ jobs:
122127 working-directory : ${{github.workspace}}/src/github.com/containerd/cri
123128
124129 - name : Integration Test
130+ env :
131+ TEST_RUNTIME : ${{ matrix.runtime }}
125132 run : |
126- make test-integration
133+ CONTAINERD_RUNTIME=$TEST_RUNTIME make test-integration
127134 working-directory : ${{github.workspace}}/src/github.com/containerd/cri
128135
129136 - name : Upload Integration Log File
Original file line number Diff line number Diff line change @@ -23,13 +23,24 @@ CONTAINERD_FLAGS="--log-level=debug "
2323
2424# Use a configuration file for containerd.
2525CONTAINERD_CONFIG_FILE=${CONTAINERD_CONFIG_FILE:- " " }
26- if [ -z " ${CONTAINERD_CONFIG_FILE} " ] && command -v sestatus > /dev/null 2>&1 ; then
27- selinux_config=" /tmp/containerd-config-selinux.toml"
28- cat > ${selinux_config} <<< '
26+ # The runtime to use (ignored when CONTAINERD_CONFIG_FILE is set)
27+ CONTAINERD_RUNTIME=${CONTAINERD_RUNTIME:- " " }
28+ if [ -z " ${CONTAINERD_CONFIG_FILE} " ]; then
29+ config_file=" /tmp/containerd-config-cri.toml"
30+ truncate --size 0 " ${config_file} "
31+ if command -v sestatus > /dev/null 2>&1 ; then
32+ cat >> ${config_file} << EOF
2933[plugins.cri]
3034 enable_selinux = true
31- '
32- CONTAINERD_CONFIG_FILE=${CONTAINERD_CONFIG_FILE:- " ${selinux_config} " }
35+ EOF
36+ fi
37+ if [ -n " ${CONTAINERD_RUNTIME} " ]; then
38+ cat >> ${config_file} << EOF
39+ [plugins.cri.containerd.default_runtime]
40+ runtime_type="${CONTAINERD_RUNTIME} "
41+ EOF
42+ fi
43+ CONTAINERD_CONFIG_FILE=" ${config_file} "
3344fi
3445
3546# CONTAINERD_TEST_SUFFIX is the suffix appended to the root/state directory used
You can’t perform that action at this time.
0 commit comments