This is an automated email from the ASF dual-hosted git repository.
chia7712 pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/trunk by this push:
new bac8dce3c17 KAFKA-20146 Add CI check to detect Python dependency
conflicts (#21472)
bac8dce3c17 is described below
commit bac8dce3c1761b7a8d66297d7f20d869e4171b76
Author: Ming-Yen Chung <[email protected]>
AuthorDate: Sun Feb 22 20:22:38 2026 +0800
KAFKA-20146 Add CI check to detect Python dependency conflicts (#21472)
Add a `pip install --dry-run ./tests` step in the `validate` job to
catch dependency conflicts in `tests/setup.py` early, before Gradle
compilation.
This addresses the issue from #21415 where dependabot bumped `requests`
to 2.32.4, conflicting with `ducktape==0.12.0`'s pin on
`requests==2.31.0`, which went undetected until it broke kafkatest
installation.
Verified locally that `--dry-run` correctly fails with exit code 1 when
a conflict is present.
Reviewers: Chia-Ping Tsai <[email protected]>
---
.github/workflows/build.yml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 0f6cea60a25..0b7b38a1821 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -124,6 +124,9 @@ jobs:
ref: ${{ github.sha }} # this is the default, just being explicit.
- name: Setup Python
uses: ./.github/actions/setup-python
+ - name: Check Python dependency conflicts
+ shell: bash
+ run: pip install --dry-run ./tests
- name: Setup Gradle
uses: ./.github/actions/setup-gradle
with: