List full status of tests in Errored state that contain running pods. (#26345)

* List full status of tests in Errored state that contain running pods.

This change lists the full status, including failure reason and start and end time, to help with debugging.
pull/26369/head
Paulo Castello da Costa 4 years ago committed by GitHub
parent 8b3f4fca25
commit 4cbb9099d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      tools/internal_ci/helper_scripts/list_leftover_loadtests.sh

@ -22,7 +22,7 @@ kubectl get pods --no-headers -o jsonpath='{range .items[*]}{.metadata.ownerRefe
| grep Running \
| cut -f1 -d' ' \
| sort -u \
| xargs -r kubectl get loadtest --no-headers -o jsonpath='{range .items[*]}{.metadata.name}{" "}{.status.state}{" "}{.metadata.annotations.pool}{" "}{.metadata.annotations.scenario}{"\n"}{end}' \
| grep Errored
| xargs -r kubectl get loadtest --no-headers -o jsonpath='{range .items[*]}{.metadata.name}{" "}{.metadata.annotations.pool}{" "}{.metadata.annotations.scenario}{" "}{.status}{"\n"}{end}' \
| grep '"state":"Errored"' || true
echo "END Listing leftover tests."

Loading…
Cancel
Save