Skip to content

CI GH Action for Kafka#2125

Merged
jeremydmiller merged 8 commits intomainfrom
kafka-ci
Feb 6, 2026
Merged

CI GH Action for Kafka#2125
jeremydmiller merged 8 commits intomainfrom
kafka-ci

Conversation

@jeremydmiller
Copy link
Member

  • Runs on push and PR to main branch
  • Installs .NET 8, 9, and 10 (tests run on .NET 10 only)
  • Starts Kafka container from docker-compose
  • Waits for Kafka port 9092 with TCP check before running tests
  • 10 minute timeout
  • Builds only the Kafka test project to avoid unnecessary compilation

jeremydmiller and others added 8 commits February 6, 2026 10:05
- Runs on push and PR to main branch
- Installs .NET 8, 9, and 10 (tests run on .NET 10 only)
- Starts Kafka container from docker-compose
- Waits for Kafka port 9092 with TCP check before running tests
- 10 minute timeout
- Builds only the Kafka test project to avoid unnecessary compilation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add GetEffectiveConsumerConfig() and GetEffectiveProducerConfig() to KafkaTopic
  to ensure topic-specific configs inherit BootstrapServers from parent transport
- Fix bug in BuildListenerAsync passing wrong config to CreateConsumer
- Update InlineKafkaSender and KafkaSenderProtocol to use effective configs
- Add handler discovery to test files so handlers defined in test assembly are found
- Fix configure_consumers_and_publishers test setup and assertions

All 65 Kafka tests now pass.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Some Kafka tests use PostgreSQL for message persistence, so the
container needs to be available for tests to pass.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Configure AutoOffsetReset.Earliest for BatchMessaging consumers to
  ensure messages published before consumer subscription are not missed
- Use Kafka REST API health endpoint (/v3/clusters) instead of TCP port
  check to ensure broker is fully ready before running tests

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Prevents messages from being missed in CI when published before
consumer subscription completes.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
These tests have timing issues with Kafka consumer group coordination
that cause intermittent failures in CI environments.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant