From 7513b06abf1b3858dadea001d7f64a44cc6a410a Mon Sep 17 00:00:00 2001 From: Amulyam24 Date: Mon, 29 Jan 2024 12:11:11 +0530 Subject: [PATCH] test --- .github/workflows/publish-kata-deploy-payload-ppc64le.yaml | 3 +++ .github/workflows/run-k8s-tests-on-ppc64le.yaml | 7 ++++++- tests/integration/kubernetes/gha-run.sh | 4 +++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-kata-deploy-payload-ppc64le.yaml b/.github/workflows/publish-kata-deploy-payload-ppc64le.yaml index 69c29261df3c..37e470bbcbd8 100644 --- a/.github/workflows/publish-kata-deploy-payload-ppc64le.yaml +++ b/.github/workflows/publish-kata-deploy-payload-ppc64le.yaml @@ -34,6 +34,9 @@ jobs: with: ref: ${{ inputs.commit-hash }} fetch-depth: 0 + + - name: Prepare the self-hosted runner + run: ${HOME}/scripts/prepare_runner.sh - name: Rebase atop of the latest target branch run: | diff --git a/.github/workflows/run-k8s-tests-on-ppc64le.yaml b/.github/workflows/run-k8s-tests-on-ppc64le.yaml index 89ccb4909967..e265558b121c 100644 --- a/.github/workflows/run-k8s-tests-on-ppc64le.yaml +++ b/.github/workflows/run-k8s-tests-on-ppc64le.yaml @@ -34,7 +34,7 @@ jobs: runs-on: ppc64le env: DOCKER_REGISTRY: ${{ inputs.registry }} - DOCKER_REPO: ${{ inputs.repo }} + DOCKER_REPO: amulyam24 DOCKER_TAG: ${{ inputs.tag }} PR_NUMBER: ${{ inputs.pr-number }} KATA_HYPERVISOR: ${{ matrix.vmm }} @@ -47,6 +47,7 @@ jobs: - name: Set the KUBECONFIG for kubeadm run: export KUBECONFIG="$HOME/.kube/config" + - uses: actions/checkout@v4 with: ref: ${{ inputs.commit-hash }} @@ -66,4 +67,8 @@ jobs: timeout-minutes: 30 run: bash tests/integration/kubernetes/gha-run.sh run-tests + - name: Delete kata-deploy + if: always() + run: bash tests/integration/kubernetes/gha-run.sh cleanup-kubeadm + diff --git a/tests/integration/kubernetes/gha-run.sh b/tests/integration/kubernetes/gha-run.sh index 717744aa5c9b..8bac0c7a946c 100755 --- a/tests/integration/kubernetes/gha-run.sh +++ b/tests/integration/kubernetes/gha-run.sh @@ -14,7 +14,7 @@ source "${kubernetes_dir}/../../gha-run-k8s-common.sh" tools_dir="${repo_root_dir}/tools" DOCKER_REGISTRY=${DOCKER_REGISTRY:-quay.io} -DOCKER_REPO=${DOCKER_REPO:-kata-containers/kata-deploy-ci} +DOCKER_REPO="amulyam24/kata-deploy-ci" DOCKER_TAG=${DOCKER_TAG:-kata-containers-latest} KATA_DEPLOY_WAIT_TIMEOUT=${KATA_DEPLOY_WAIT_TIMEOUT:-10m} KATA_HYPERVISOR=${KATA_HYPERVISOR:-qemu} @@ -266,6 +266,7 @@ function main() { deploy-kata-tdx) deploy_kata "tdx" ;; deploy-kata-garm) deploy_kata "garm" ;; deploy-kata-zvsi) deploy_kata "zvsi" ;; + deploy-kata-kubeadm) deploy_kata "kubeadm" ;; run-tests) run_tests ;; run-tests-kcli) run_tests "kcli" ;; cleanup-kcli) cleanup "kcli" ;; @@ -274,6 +275,7 @@ function main() { cleanup-tdx) cleanup "tdx" ;; cleanup-garm) cleanup "garm" ;; cleanup-zvsi) cleanup "zvsi" ;; + cleanup-kubeadm) cleanup "kubeadm" ;; delete-cluster) cleanup "aks" ;; delete-cluster-kcli) delete_cluster_kcli ;; *) >&2 echo "Invalid argument"; exit 2 ;;