← Back to Pull requests

dra: record the skewed kubelet version in job-run metadata #38099

Closed
unknown closed this pull request without merging on Oct 28, 2026 17:05 UTC
View on GitHub
unknown unknown commented on Oct 17, 2026 18:15 UTC
Author

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

The version-skew jobs ci-kind-dra-n-1, ci-kind-dra-n-2 and ci-kind-dra-n-3 run a control plane built at HEAD with a kubelet from one, two or three minor releases back (a HEAD at alpha.0 counts as the release before it). The kubelet is downloaded at run time and copied into the kind worker nodes. The metadata.json these jobs upload records only the control-plane revision, which does not say which kubelet was tested.

On a real skew failure, ci-kind-dra-n-3 build 2086199172385476608 (2026-08-08), metadata.json, finished.json and kind's per-node kubernetes-version.txt all reported the HEAD revision v1.38.0-alpha.0.6+94c136764292cc. The failing spec was tagged [KubeletMinVersion:1.34] and ran against kubelet v1.34.10-4+4c074912963515, which is in no structured field and shows up only in logs (build-log.txt, and each worker's kubelet.log).

After the kubelet is replaced on every worker, this writes the resolved kubelet build into metadata.json next to the revision. It is emitted only when kubelet_skew > 0, so it covers the nine skew jobs (the ci, presubmit and canary variants for the n-1, n-2 and n-3 skew levels) and nothing else changes.

I edited dra.jinja and ran make generate-jobs; dra-canary.yaml, dra-ci.yaml and dra-presubmit.yaml are regenerated. dra-testinfra.yaml is intentionally unchanged, since its jobs have no kubelet skew.

Which issue(s) this PR fixes:

Fixes #38097

Special notes for your reviewer:

The write is after the worker replacement loop, so a run that fails earlier (a failed docker cp or restart) does not record a kubelet it did not finish installing. On the ci path metadata.json is written once at the existing # Report what was tested line and again here with the extra field, since $previous is only known after the download.

Release-branch skew jobs in release-branch-jobs/1.35.yaml, 1.36.yaml and 1.37.yaml are maintained separately; adding the field there is a follow-up.

Does this PR introduce a user-facing change?

``release-note
NONE
``

Diff: 282 lines (+211 / -71) across 3 files Reviewer: SergeyKanzhelev Review duration: 15769m
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.63) × (1 − Review Confidence (0.58)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.63 · 282 lines diff across 3 files
0.63
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
57%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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.338
Shallow Review Depth shallow_review_depth
0.289
Sensitive Paths sensitive_paths
0.063
Real PR Conversation Timeline
1 comments
"Review active on #38099"
general weight: 0.35
Assignees
Unassigned
Labels
risk: low confidence: 58.0% reviewed sensitive_module
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 62.9% (MEDIUM) · Higher = larger blast radius
62.9%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 58.0% · Lower = rushed or shallow review
58.0%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 26.4% · Safe to merge
26.4%