Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(ci): reach cohort test kafka over ipv4 (#128745)

Raúl Negrón-Otero92fdfb810b60
diff --git a/.github/workflows/ci-rust.yml b/.github/workflows/ci-rust.yml
index 382a0facfe9c..606801d5adf3 100644
--- a/.github/workflows/ci-rust.yml
+++ b/.github/workflows/ci-rust.yml
@@ -475,9 +475,10 @@ jobs:
# cohort-stream-processor's broker and S3 tests are #[ignore]'d. This job runs Kafka
# and SeaweedFS (objectstorage, :19000). `kind(test)` selects the tests/ binaries,
# whose ignored tests all need this stack. One at a time: each joins its own
- # consumer group and most create several 64-partition topics.
+ # consumer group and most create several 64-partition topics. Not `localhost`: it
+ # also resolves to `::1`, where the broker refuses, and the tests' readers fail on that.
if [ "$pkg" = "cohort-stream-processor" ]; then
- KAFKA_HOSTS=localhost:9092 \
+ KAFKA_HOSTS=kafka:9092 \
CHECKPOINT_S3_ENDPOINT=http://localhost:19000 \
CHECKPOINT_S3_REGION=us-east-1 \
CHECKPOINT_S3_BUCKET=posthog \