From dda1902da716ac7ac4befadbd2edb82db8e4add4 Mon Sep 17 00:00:00 2001 From: William Barnhart Date: Sun, 19 Jul 2026 19:24:38 +0000 Subject: [PATCH] ci: test the integration suite against Kafka 4.0 as well as 3.8.1 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 Claude-Session: https://claude.ai/code/session_01HHPL4VFWQRQPpjR1gXSKyL --- .github/workflows/python-package.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 2c24efa9c..4f03bcd96 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -108,7 +108,10 @@ jobs: strategy: fail-fast: false matrix: - kafka-version: ['3.8.1'] + # Test against both a 3.x broker and Kafka 4.x (KRaft-only, released + # 2025). The `KAFKA_CONTROLLER_QUORUM_VOTERS` static-voter config below + # works for both. + kafka-version: ['3.8.1', '4.0.0'] steps: - uses: actions/checkout@v4 with: