[FLINK-39941][python] Pin virtualenv below 21.5 so py38 tox environments can still be created #58
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 224 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.324
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #58"
general
weight: 0.35
autophagy
What is the purpose of the change
The weekly CI of flink-connector-kafka fails on the v3.4 and v4.0 branches in the
py38-cythontox environment since 2026-06-14, e.g. run 34002024546:python/lint-python.shinstallstox==3.14.0into the uv-created Python 3.11 base environment, and tox depends onvirtualenv>=14without an upper bound. virtualenv 21.5.0 (released 2026-06-13) dropped Python 3.8, so tox can no longer seed the py38 environment. PyFlink 1.20 and 2.0 still declareRequires-Python >=3.8, which is why those connector branches keep py38 in their envlist.Brief change log
"virtualenv<21.5"to the tox install. It resolves to 21.4.3, which runs on the 3.11 base environment and creates 3.8 to 3.13 targets, so the py39 to py311 environments used on newer branches are unaffected.Verifying this change
The connector's
flink-python/pom.xmldownloads this script from theci_utilsbranch at build time, so the fix is exercised by the next weekly run of flink-connector-kafka (python_test (1.20.5, v3.4)andpython_test (2.0.2, v4.0)). Note that 21.4.3 seeds pip 25.0.1, the last pip release for Python 3.8, so this buys time; dropping py38 on those branches (apache/flink-connector-kafka#270) remains the end state.Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code 2.1.263 (Claude Fable 5.1)