Negotiate WebSocket v5 in the async exec client #2797
All Vouch review confidence checks passed
Residual risk 0.13 = Change Risk (0.31) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.31 · 110 lines diff across 1 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
Shallow Review Depth
shallow_review_depth
0.289
Diff Size
diff_size
0.282
Real PR Conversation Timeline
1 comments
"Review active on #2797"
general
weight: 0.35
aojea
Async exec offered only v4.channel.k8s.io, causing upgrade failures with servers requiring v5. The client now offers v5 with v4 fallback and handles v5 channel-close frames in buffered responses.
Negotiation: Use aiohttp’s subprotocol negotiation and preserve explicitly configured subprotocol headers.
Sec-WebSocket-Protocol: v5.channel.k8s.io,v4.channel.k8s.io
Channel closure: Buffered responses stop collecting data from a channel after its v5 close frame while continuing to collect other channels.
Raw streams: Return the unprocessed aiohttp WebSocket; callers remain responsible for channel framing and close messages.
Fixes: https://github.com/kubernetes-client/python/issues/2355
``
release-notev5.channel.k8s.ioNegotiate
(withv4.channel.k8s.iofallback) and handle v5 channel-close frames inkubernetes.aio.stream.WsApiClientfor async pod exec.
``