diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index f367bc2c7..4f3246c03 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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) @@ -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) @@ -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)