Skip to content

ci: verify support for Apache Kafka 4.0 in the integration matrix#714

Merged
wbarnha merged 2 commits into
masterfrom
claude/support-kafka-v4
Jul 20, 2026
Merged

ci: verify support for Apache Kafka 4.0 in the integration matrix#714
wbarnha merged 2 commits into
masterfrom
claude/support-kafka-v4

Conversation

@wbarnha

@wbarnha wbarnha commented Jul 19, 2026

Copy link
Copy Markdown
Member

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:

kafka-version: ['3.8.1', '4.0.0']

The integration job's existing KAFKA_CONTROLLER_QUORUM_VOTERS static-voter
config 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/broker suite against a locally-run
apache-kafka 4.0.0 broker (KRaft, metadata.version 4.0-IV3) — all pass:

test_offset_commit.py::test_does_not_commit_past_inflight_message  PASSED
test_offset_commit.py::test_commits_contiguous_acks                PASSED
test_smoke.py::test_aiokafka_roundtrip                             PASSED
test_smoke.py::test_confluent_roundtrip                            PASSED
4 passed

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

🤖 Generated with Claude Code


Generated by Claude Code

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
@wbarnha wbarnha linked an issue Jul 19, 2026 that may be closed by this pull request
@codecov

codecov Bot commented Jul 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.15%. Comparing base (3c18394) to head (a436396).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@wbarnha
wbarnha merged commit 0a92897 into master Jul 20, 2026
23 of 24 checks passed
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.

[QUESTION] Supporting Apache Kafka 4.0

1 participant