Skip to content

Commit 3501215

Browse files
committed
tests/multi-server: dump listener files too on failure
We already tail logs/* on a failed test, but the per-suite listener/*.txt is where the consumer (and producer linelog) writes structured events the framework validates against. Dumping logs alone tells us the containers ran; dumping listeners tells us whether the pipeline actually produced the events we were waiting for. Counts-by-prefix header makes it easy to spot 'no kafka-consumer-received lines at all' vs 'got some but not the expected count'.
1 parent a55fa35 commit 3501215

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/tests/multi-server/all.mk

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,15 @@ test.multi-server.${1}.${2}: $$(TEST_MULTI_SERVER_RENDERED.${1}.${2})
154154
echo "=== $$$$f ==="; \
155155
tail -200 "$$$$f"; \
156156
done; \
157+
for f in ${4}/listener/*; do \
158+
[ -f "$$$$f" ] || continue; \
159+
echo ""; \
160+
echo "=== $$$$f ==="; \
161+
echo "-- line-type counts --"; \
162+
awk '{print $$$$1}' "$$$$f" | sort | uniq -c; \
163+
echo "-- last 200 lines --"; \
164+
tail -200 "$$$$f"; \
165+
done; \
157166
exit 1; \
158167
}
159168
endef

0 commit comments

Comments
 (0)