Skip to content

Commit

Permalink
Export Kind logs to ease debugging
Browse files Browse the repository at this point in the history
Signed-off-by: Cédric Ollivier <[email protected]>
  • Loading branch information
collivier committed Nov 13, 2024
1 parent 13afc65 commit 7bfab66
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ jobs:
- kube-system
- local-path-storage
EOF
cat /shared/pss/cluster-level-pss.$CLUSTER.yaml
- name: Mirror Setup
run: |
source cluster.env
Expand Down Expand Up @@ -215,9 +216,9 @@ jobs:
run: |
cat /tmp/cluster.yml
source cluster.env
echo kind create cluster --name $CLUSTER --config=/tmp/cluster.yml --kubeconfig ./$CLUSTER.conf
echo kind create cluster --name $CLUSTER --config=/tmp/cluster.yml --kubeconfig ./$CLUSTER.conf --retain
kind --version
kind create cluster --name $CLUSTER --config=/tmp/cluster.yml --kubeconfig ./$CLUSTER.conf
kind create cluster --name $CLUSTER --config=/tmp/cluster.yml --kubeconfig ./$CLUSTER.conf --retain
export KUBECONFIG=$(pwd)/$CLUSTER.conf
kubectl get nodes
- name: Cache crystal shards
Expand Down Expand Up @@ -290,11 +291,18 @@ jobs:
if: ${{ always() }}
run: |
source cluster.env
kind export logs --name $CLUSTER /tmp/outpur-dir
kind delete cluster --name $CLUSTER
docker container prune -f || true
docker volume prune -f || true
rm -f /shared/pss/cluster-level-pss.$CLUSTER.yaml /tmp/cluster.yml
continue-on-error: true
- name: upload artifact
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: log
path: /tmp/outpur-dir

chaos:
name: Chaos & Oran Tests
Expand Down Expand Up @@ -340,9 +348,9 @@ jobs:
EOF
export CLUSTER=$(uuidgen)
echo "export CLUSTER=$CLUSTER" > cluster.env
echo kind create cluster --name $CLUSTER --config=/tmp/cluster.yml --kubeconfig ./$CLUSTER.conf
echo kind create cluster --name $CLUSTER --config=/tmp/cluster.yml --kubeconfig ./$CLUSTER.conf --retain
kind --version
kind create cluster --name $CLUSTER --config=/tmp/cluster.yml --kubeconfig ./$CLUSTER.conf
kind create cluster --name $CLUSTER --config=/tmp/cluster.yml --kubeconfig ./$CLUSTER.conf --retain
export KUBECONFIG=$(pwd)/$CLUSTER.conf
kubectl get nodes
Expand Down Expand Up @@ -468,7 +476,7 @@ jobs:
echo "export CLUSTER=$CLUSTER"
echo "export CLUSTER=$CLUSTER" > cluster.env
kind --version
kind create cluster --name $CLUSTER --config=/tmp/cluster.yml --kubeconfig /tmp/$CLUSTER.conf
kind create cluster --name $CLUSTER --config=/tmp/cluster.yml --kubeconfig /tmp/$CLUSTER.conf --retain
export KUBECONFIG=/tmp/$CLUSTER.conf
kubectl get nodes
- name: Run Test Suite without source(config_lifecycle)
Expand Down Expand Up @@ -545,7 +553,7 @@ jobs:
export CLUSTER=$(uuidgen)
echo "export CLUSTER=$CLUSTER" > cluster.env
kind --version
kind create cluster --name $CLUSTER --config=/tmp/cluster.yml --kubeconfig /tmp/$CLUSTER.conf
kind create cluster --name $CLUSTER --config=/tmp/cluster.yml --kubeconfig /tmp/$CLUSTER.conf --retain
export KUBECONFIG=/tmp/$CLUSTER.conf
kubectl get nodes
- name: Run Test Suite without source(microservice)
Expand Down Expand Up @@ -621,7 +629,7 @@ jobs:
export CLUSTER=$(uuidgen)
echo "export CLUSTER=$CLUSTER" > cluster.env
kind --version
kind create cluster --name $CLUSTER --config=/tmp/cluster.yml --kubeconfig /tmp/$CLUSTER.conf
kind create cluster --name $CLUSTER --config=/tmp/cluster.yml --kubeconfig /tmp/$CLUSTER.conf --retain
export KUBECONFIG=/tmp/$CLUSTER.conf
kubectl get nodes
- name: Run Test Suite without source(all)
Expand Down

0 comments on commit 7bfab66

Please sign in to comment.