Skip to content

Commit

Permalink
logs
Browse files Browse the repository at this point in the history
  • Loading branch information
frankh committed Oct 19, 2023
1 parent 91af21e commit a8c1688
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ci/kubetest/helpers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ def wait_for_pods_to_be_ready(kube, labels=None, expected_count=None, namespace=
# NOTE 2: the test is currently a bit flaky likely due to
# liveness/readiness checks. I'm bumping the expected restart
# count from 0 to 2 for now.
print("container logs start")
print([c.get_logs() for c in pod.get_containers()])
print("container logs finish")
assert get_pod_restart_count(pod) < 2, f"Detected too many restarts in pod {pod.obj.metadata.name}"

# Note we assume that if "job-name" is a label then it is a job pod.
Expand Down

0 comments on commit a8c1688

Please sign in to comment.