ci: verify support for Apache Kafka 4.0 in the integration matrix#714
Merged
Conversation
Kafka 4.0 (released 2025) is KRaft-only and drops support for very old client protocol API versions. Add it to the live-broker integration matrix so faust's aiokafka and confluent-kafka drivers are continuously verified against a 4.x broker alongside 3.x. The job's existing `KAFKA_CONTROLLER_QUORUM_VOTERS` static-voter configuration works unchanged on 4.0. Verified locally against a real apache-kafka 4.0.0 broker: the aiokafka + confluent-kafka round-trips and the #606 offset-commit regression tests all pass, so no faust code changes are needed for Kafka 4 support -- this makes it a tested guarantee. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HHPL4VFWQRQPpjR1gXSKyL
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #714 +/- ##
=======================================
Coverage 94.15% 94.15%
=======================================
Files 104 104
Lines 11136 11136
Branches 1201 1201
=======================================
Hits 10485 10485
Misses 550 550
Partials 101 101 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds Apache Kafka 4.0 to faust's live-broker integration test matrix so the
project is continuously verified against a 4.x broker (KRaft-only, released
2025) alongside 3.x:
The integration job's existing
KAFKA_CONTROLLER_QUORUM_VOTERSstatic-voterconfig works unchanged on 4.0 (static voters are still supported), so only the
matrix entry is needed.
Verification (against a real Kafka 4.0.0 broker)
I ran the full
tests/integration/brokersuite against a locally-runapache-kafka 4.0.0 broker (KRaft,
metadata.version 4.0-IV3) — all pass:Both transport drivers (aiokafka and confluent-kafka) round-trip correctly, and
the offset-commit regression tests pass. No faust code changes are required
for Kafka 4 support — this PR turns "it happens to work" into a tested
guarantee.
Notes
continue-on-error: true, not in therequired
checkgate), so a flaky broker leg never blocks merges.concern (the
apache/kafka:4.0.0image), not faust's.test_offset_commitcases; the aiokafka/confluent smoke tests (already on master via ci: add live-broker integration test harness (Kafka in CI) #706) also
exercise 4.0 on their own.
🤖 Generated with Claude Code
Generated by Claude Code