From 6daeb08e69f9c298c416b2d3a893d66d4c20487d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bombo?= Date: Tue, 25 Jul 2023 15:22:57 -0700 Subject: [PATCH 1/2] tests: k8s: Clean up node debuggers after running MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This deletes node debugger pods after execution since their presence may affect tests that assume only test workloads pods are present. For example, in `k8s-job` we wait for *any* pod to be in the `Succeeded` state before proceeding, which causes failures. Fixes: #7452 Signed-off-by: Aurélien Bombo --- tests/integration/kubernetes/gha-run.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/integration/kubernetes/gha-run.sh b/tests/integration/kubernetes/gha-run.sh index c873a0d79..4180c9666 100755 --- a/tests/integration/kubernetes/gha-run.sh +++ b/tests/integration/kubernetes/gha-run.sh @@ -175,6 +175,7 @@ function get_nodes_and_pods_info() { echo "::endgroup::" fi kubectl debug $(kubectl get nodes -o name) -it --image=quay.io/kata-containers/kata-debug:latest + kubectl get pods -o name | grep node-debugger | xargs kubectl delete } function main() { From c5a87eed298f50da88c3fa75f6c0c16bcdac7688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bombo?= Date: Tue, 25 Jul 2023 15:33:26 -0700 Subject: [PATCH 2/2] tests: gha: Add timeout to cluster creation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This has been intermittently taking a while lately so let's add a timeout. Signed-off-by: Aurélien Bombo --- .github/workflows/run-k8s-tests-on-aks.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/run-k8s-tests-on-aks.yaml b/.github/workflows/run-k8s-tests-on-aks.yaml index 6b3b16aeb..a297fe175 100644 --- a/.github/workflows/run-k8s-tests-on-aks.yaml +++ b/.github/workflows/run-k8s-tests-on-aks.yaml @@ -56,6 +56,7 @@ jobs: AZ_TENANT_ID: ${{ secrets.AZ_TENANT_ID }} - name: Create AKS cluster + timeout-minutes: 10 run: bash tests/integration/kubernetes/gha-run.sh create-cluster - name: Install `bats`