From 086246b56e4f15f80227e1e394e145a3d787a6f1 Mon Sep 17 00:00:00 2001 From: Theofanis Petkos Date: Fri, 20 Oct 2023 15:46:49 +0100 Subject: [PATCH] Update github actions and improve ci logging (#187) * Feature/update gh actions (#4) * Update gh actions for nodejs16 Signed-off-by: thepetk * Further updates on gh actions versions Signe-off-by: thepetk Signed-off-by: thepetk --------- Signed-off-by: thepetk * Add detailed logging for crashLoopBackOff cases Signed-off-by: thepetk * Update github-action and increase memory Signed-off-by: thepetk * Revert update in kubernetes Signed-off-by: thepetk --------- Signed-off-by: thepetk --- .ci/run_tests_minikube_linux.sh | 9 ++++++++- .github/workflows/ci.yaml | 6 +++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.ci/run_tests_minikube_linux.sh b/.ci/run_tests_minikube_linux.sh index 3f1e853d..6da80cc6 100755 --- a/.ci/run_tests_minikube_linux.sh +++ b/.ci/run_tests_minikube_linux.sh @@ -30,7 +30,14 @@ helm install devfile-registry ./deploy/chart/devfile-registry --set global.ingre # Wait for the registry to become ready kubectl wait deploy/devfile-registry --for=condition=Available --timeout=600s if [ $? -ne 0 ]; then - kubectl get pods + # Return the logs of the 3 containers in case the condition is not met + echo "devfile-registry container logs:" + kubectl logs -l app=devfile-registry --container devfile-registry + echo "oci-registry container logs:" + kubectl logs -l app=devfile-registry --container oci-registry + echo "registry-viewer container logs:" + kubectl logs -l app=devfile-registry --container registry-viewer + # Return the description of every pod kubectl describe pods exit 1 fi diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 62415d8a..ea91d058 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -129,13 +129,13 @@ jobs: with: go-version: 1.18 - name: Setup Minikube - uses: manusa/actions-setup-minikube@v2.7.1 + uses: manusa/actions-setup-minikube@3856c6fa039819f1c8e7e248b1fc5a8564e354c9 # v2.9.0 with: - minikube version: 'v1.21.0' + minikube version: 'v1.31.2' kubernetes version: 'v1.21.0' driver: 'docker' github token: ${{ secrets.GITHUB_TOKEN }} - start args: '--addons=ingress' + start args: '--addons=ingress --memory 4096 --cpus 2' - name: Run the devfile registry integration tests run: | export GOPATH=$(go env GOPATH)