Skip to content

Commit

Permalink
save events from failed workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
SkorikSergey committed Mar 20, 2024
1 parent 12fd009 commit bbd92a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/performance/load-tests/load-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,10 @@ function runTest() {
succeeded=$((succeeded + 1))
else
print_error "Timeout waiting for dw$i to become ready or an error occurred."
ws_name=$(kubectl get dw dw$i --template='{{.status.devworkspaceId}}')
kubectl describe dw dw$i >logs/dw$i-log.log
kubectl logs $(kubectl get dw dw$i --template='{{.status.devworkspaceId}}') >logs/dw$i-pod.log || true
kubectl get events | grep $ws_name >logs/dw$i-events.log
kubectl logs $ws_name >logs/dw$i-pod.log || true
fi
done

Expand Down

0 comments on commit bbd92a4

Please sign in to comment.