@@ -54,38 +54,14 @@ jobs:
5454 runs-on : ubuntu-latest
5555 steps :
5656 - uses : actions/checkout@v6
57- - uses : actions /setup-python@v6
57+ - uses : prefix-dev /setup-pixi@v0.9.5
5858 with :
59- python-version : 3.x
59+ cache : false
60+ environments : pre-commit
6061 - uses : pre-commit/action@v3.0.1
6162 - uses : pre-commit-ci/lite-action@v1.1.0
6263 if : always()
6364
64- update-diagram :
65- needs : detect-docs-only
66- if : needs.detect-docs-only.outputs.docs-only != 'true'
67- runs-on : ubuntu-latest
68- steps :
69- - uses : actions/checkout@v6
70- - uses : prefix-dev/setup-pixi@v0.9.5
71- with :
72- cache : false
73- environments : diagram
74- - name : Regenerate diagram
75- run : pixi run generate-diagram
76- - name : Check diagram is up to date
77- run : |
78- if ! git diff --exit-code docs/admin/explanations/architecture_diagram.md; then
79- echo "::error::architecture_diagram.md is out of date. Run 'pixi run generate-diagram' and commit the result."
80- exit 1
81- fi
82- - name : Upload diagram on failure
83- uses : actions/upload-artifact@v7
84- with :
85- name : architecture-diagram
86- path : docs/admin/explanations/architecture_diagram.md
87- if : failure()
88-
8965 run-demo :
9066 needs : detect-docs-only
9167 if : needs.detect-docs-only.outputs.docs-only != 'true'
@@ -120,17 +96,8 @@ jobs:
12096
12197 echo "SUCCESS: Environment variable DIRACX_SERVICE_AUTH_REFRESH_TOKEN_EXPIRE_MINUTES is correctly set to 12345"
12298 - name : Debugging information
123- run : |
124- export KUBECONFIG=$PWD/.demo/kube.conf
125- .demo/kubectl get pods
126- for pod_name in $(.demo/kubectl get pods -o json | jq -r '.items[] | .metadata.name' | grep -vE '(dex|minio|mysql|rabbitmq|opensearch)'); do
127- echo "${pod_name}"
128- .demo/kubectl describe pod/"${pod_name}" || true
129- for container_name in $(.demo/kubectl get pods $pod_name -o jsonpath='{.spec.initContainers[*].name} {.spec.containers[*].name}'); do
130- echo $pod_name $container_name
131- .demo/kubectl logs "${pod_name}" -c "${container_name}" || true
132- done
133- done
99+ if : always()
100+ run : curl https://raw.githubusercontent.com/DIRACGrid/diracx/refs/heads/main/.github/scripts/collect-k8s-debug-info.sh | bash -s -- "$PWD/.demo"
134101 - name : Check for success
135102 run : |
136103 if [ ! -f ".demo/.success" ]; then
0 commit comments