image/copy: report effective throughput when consumer is the bottleneck #1225
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.36) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 116 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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.344
Diff Size
diff_size
0.285
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #1225"
general
weight: 0.35
mtrmac
Use a customProxyReader with
mpb.Barto reflect the effective throughput when the destination / consumer is slower than the source.Why?
Current progress bar measures blob copy throughput with
mpb.ProxyReaderwhich only measures the time spent insideRead(). When consumer is slow (network / storage IO), wall-clock time mostly is spent between reads and the displayed throughput is inflated due to short bursts of source reads, which can be orders of magnitude above the actual transfer speed.Fixes https://github.com/podman-container-tools/container-libs/issues/1224 https://github.com/podman-container-tools/podman/issues/20634
<!--- Please read the contributing guidelines before proceeding --->
I tried generating some LLM unit tests for this but didn't include them as they added lots of boilerplate code. Any suggestions on this?