From ba29e9b0b7261266097f67e8420a3b3270b9a590 Mon Sep 17 00:00:00 2001 From: Jorge Prendes Date: Thu, 31 Oct 2024 14:08:45 +0000 Subject: [PATCH] increase k8s tests timeouts Signed-off-by: Jorge Prendes --- .github/workflows/action-test-k3s.yml | 2 +- .github/workflows/action-test-kind.yml | 2 +- Makefile | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/action-test-k3s.yml b/.github/workflows/action-test-k3s.yml index 595a27063..300eef4c4 100644 --- a/.github/workflows/action-test-k3s.yml +++ b/.github/workflows/action-test-k3s.yml @@ -37,7 +37,7 @@ jobs: name: test-img path: dist - name: run - timeout-minutes: 5 + timeout-minutes: 10 run: make test/k3s-${{ inputs.runtime }} # only runs when the previous step fails - name: inspect failed pods diff --git a/.github/workflows/action-test-kind.yml b/.github/workflows/action-test-kind.yml index db18e70fd..60539e1dd 100644 --- a/.github/workflows/action-test-kind.yml +++ b/.github/workflows/action-test-kind.yml @@ -43,7 +43,7 @@ jobs: name: test-${{ inputs.image }} path: dist - name: run - timeout-minutes: 7 + timeout-minutes: 10 run: ${{ inputs.test-command }} # only runs when the previous step fails - name: inspect failed pods diff --git a/Makefile b/Makefile index 5b4f6ae37..ba2a4e6d7 100644 --- a/Makefile +++ b/Makefile @@ -244,7 +244,7 @@ test/k8s/cluster-%: dist/img.tar bin/kind test/k8s/_out/img-% .PHONY: test/k8s/deploy-workload-% test/k8s/deploy-workload-%: test/k8s/clean test/k8s/cluster-% kubectl --context=kind-$(KIND_CLUSTER_NAME) apply -f test/k8s/deploy.yaml - kubectl --context=kind-$(KIND_CLUSTER_NAME) wait deployment wasi-demo --for condition=Available=True --timeout=90s + kubectl --context=kind-$(KIND_CLUSTER_NAME) wait deployment wasi-demo --for condition=Available=True --timeout=180s # verify that we are still running after some time sleep 5s kubectl --context=kind-$(KIND_CLUSTER_NAME) wait deployment wasi-demo --for condition=Available=True --timeout=5s @@ -254,7 +254,7 @@ test/k8s/deploy-workload-oci-%: test/k8s/clean test/k8s/cluster-% dist/img-oci.t bin/kind load image-archive --name $(KIND_CLUSTER_NAME) dist/img-oci.tar bin/kind load image-archive --name $(KIND_CLUSTER_NAME) dist/img-oci-artifact.tar kubectl --context=kind-$(KIND_CLUSTER_NAME) apply -f test/k8s/deploy.oci.yaml - kubectl --context=kind-$(KIND_CLUSTER_NAME) wait deployment wasi-demo --for condition=Available=True --timeout=90s + kubectl --context=kind-$(KIND_CLUSTER_NAME) wait deployment wasi-demo --for condition=Available=True --timeout=180s # verify that we are still running after some time sleep 5s kubectl --context=kind-$(KIND_CLUSTER_NAME) wait deployment wasi-demo --for condition=Available=True --timeout=5s @@ -297,7 +297,7 @@ test/k3s-%: dist/img.tar bin/k3s dist-% sudo bin/k3s kubectl get pods --all-namespaces sudo bin/k3s kubectl apply -f test/k8s/deploy.yaml sudo bin/k3s kubectl get pods --all-namespaces - sudo bin/k3s kubectl wait deployment wasi-demo --for condition=Available=True --timeout=120s + sudo bin/k3s kubectl wait deployment wasi-demo --for condition=Available=True --timeout=180s # verify that we are still running after some time sleep 5s sudo bin/k3s kubectl wait deployment wasi-demo --for condition=Available=True --timeout=5s @@ -311,7 +311,7 @@ test/k3s-oci-%: dist/img-oci.tar bin/k3s dist-% sudo bin/k3s kubectl get pods --all-namespaces sudo bin/k3s kubectl apply -f test/k8s/deploy.oci.yaml sudo bin/k3s kubectl get pods --all-namespaces - sudo bin/k3s kubectl wait deployment wasi-demo --for condition=Available=True --timeout=120s + sudo bin/k3s kubectl wait deployment wasi-demo --for condition=Available=True --timeout=180s # verify that we are still running after some time sleep 5s sudo bin/k3s kubectl wait deployment wasi-demo --for condition=Available=True --timeout=5s