From 75a294b74b66a455be80b728218dfd157003b7c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Thu, 13 Jul 2023 11:27:18 +0200 Subject: [PATCH] ci: cri-containerd: Ensure deps are installed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .github/workflows/run-cri-containerd-tests.yaml | 3 +++ tests/integration/cri-containerd/gha-run.sh | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/run-cri-containerd-tests.yaml b/.github/workflows/run-cri-containerd-tests.yaml index 4dd54fcb14..2b12e495ea 100644 --- a/.github/workflows/run-cri-containerd-tests.yaml +++ b/.github/workflows/run-cri-containerd-tests.yaml @@ -23,6 +23,9 @@ jobs: with: ref: ${{ inputs.commit-hash }} + - name: Install dependencies + run: bash tests/integration/cri-containerd/gha-run.sh install-dependencies + - name: get-kata-tarball uses: actions/download-artifact@v3 with: diff --git a/tests/integration/cri-containerd/gha-run.sh b/tests/integration/cri-containerd/gha-run.sh index cf25000489..259c2a02cc 100755 --- a/tests/integration/cri-containerd/gha-run.sh +++ b/tests/integration/cri-containerd/gha-run.sh @@ -13,6 +13,10 @@ kata_tarball_dir="${2:-kata-artifacts}" cri_containerd_dir="$(dirname "$(readlink -f "$0")")" source "${cri_containerd_dir}/../../common.bash" +function install_dependencies() { + return 0 +} + function run() { info "Running cri-containerd tests using ${KATA_HYPERVISOR} hypervisor" @@ -23,6 +27,7 @@ function run() { function main() { action="${1:-}" case "${action}" in + install-dependencies) install_dependencies ;; install-kata) install_kata ;; run) run ;; *) >&2 die "Invalid argument" ;;