ci: cri-containerd: Ensure deps are installed

Let's make sure we install the needed dependencies for running the
`cri-containerd` tests.

Right now this commit is basically adding a placeholder, and later on,
when we'll actually be able to test the job, we'll add the logic of
installing the needed dependencies.

The obvious dependencies we've spotted so far are:
* From the OS
  * jq
  * curl (already present)
* From our repo
  * yq (using the install_yq script)
* From GitHub
  * cri-containerd
  * cri-tools
  * cni plugins

We may need a few more packages, but we will only figure this out as
part of the actual work.

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
Fabiano Fidêncio 2023-07-13 11:27:18 +02:00
parent b69cdb5c21
commit 75a294b74b
2 changed files with 8 additions and 0 deletions

View File

@ -23,6 +23,9 @@ jobs:
with: with:
ref: ${{ inputs.commit-hash }} ref: ${{ inputs.commit-hash }}
- name: Install dependencies
run: bash tests/integration/cri-containerd/gha-run.sh install-dependencies
- name: get-kata-tarball - name: get-kata-tarball
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:

View File

@ -13,6 +13,10 @@ kata_tarball_dir="${2:-kata-artifacts}"
cri_containerd_dir="$(dirname "$(readlink -f "$0")")" cri_containerd_dir="$(dirname "$(readlink -f "$0")")"
source "${cri_containerd_dir}/../../common.bash" source "${cri_containerd_dir}/../../common.bash"
function install_dependencies() {
return 0
}
function run() { function run() {
info "Running cri-containerd tests using ${KATA_HYPERVISOR} hypervisor" info "Running cri-containerd tests using ${KATA_HYPERVISOR} hypervisor"
@ -23,6 +27,7 @@ function run() {
function main() { function main() {
action="${1:-}" action="${1:-}"
case "${action}" in case "${action}" in
install-dependencies) install_dependencies ;;
install-kata) install_kata ;; install-kata) install_kata ;;
run) run ;; run) run ;;
*) >&2 die "Invalid argument" ;; *) >&2 die "Invalid argument" ;;