Skip to content

Commit 2b866b4

Browse files
add additional logs for test workload (#22)
* add additional logs for test workload
1 parent f163978 commit 2b866b4

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/_test_workload.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,17 @@ jobs:
4242
az aks get-credentials --name $CLUSTER_NAME --resource-group $RESOURCE_GROUP --overwrite-existing
4343
4444
echo "Wait for pod readiness before checking expected Kafka message."
45-
kubectl wait --for=condition=Ready=true -n kafka pod/kafka-golang-consumer --timeout=180s
46-
kubectl wait --for=condition=Ready=true -n kafka pod/kafka-producer --timeout=180s
45+
kubectl wait --for=condition=ready -n kafka pod/kafka-golang-consumer --timeout=180s || {
46+
echo "Consumer is not ready within the acceptable time range. Printing out kubectl describe output."
47+
echo $(kubectl describe pod -n kafka kafka-golang-consumer)
48+
exit 1
49+
}
50+
51+
kubectl wait --for=condition=ready -n kafka pod/kafka-producer --timeout=180s || {
52+
echo "Producer is not ready within the acceptable time range. Printing out kubectl describe output."
53+
echo $(kubectl describe pod -n kafka kafka-producer)
54+
exit 1
55+
}
4756
4857
max_retries=5
4958
retries=0

0 commit comments

Comments
 (0)