From 63703b76ec86f6951b1862b59298829fce3f0c71 Mon Sep 17 00:00:00 2001 From: Chris Burr Date: Mon, 18 Sep 2023 05:36:59 +0200 Subject: [PATCH] Add debugging information to CI --- .github/workflows/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6f3b803..367c4b7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -52,6 +52,18 @@ jobs: - name: Start demo run: | ./run_demo.sh --exit-when-done /tmp/diracx /tmp/DIRAC + - name: Debugging information + run: | + export KUBECONFIG=$PWD/.demo/kube.conf + .demo/kubectl get pods + for pod_name in $(.demo/kubectl get pods -o json | jq -r '.items[] | .metadata.name' | grep -vE '(dex|minio|mysql|rabbitmq|opensearch)'); do + echo "${pod_name}" + .demo/kubectl describe "${pod_name}" || true + for container_name in $(.demo/kubectl get pods $pod_name -o jsonpath='{.spec.initContainers[*].name} {.spec.containers[*].name}'); do + echo $pod_name $container_name + .demo/kubectl logs "${pod_name}" -c "${container_name}" || true + done + done - name: Check for success run: | if [ ! -f ".demo/.success" ]; then