test: verify nodepool upgrade via KubeletVersion (AROSLSRE-1935) #6727
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.60) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.60 · 211 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.320
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.060
Real PR Conversation Timeline
1 comments
"Review active on #6727"
general
weight: 0.35
stevekuznetsov
Summary
Fixes the
nodeVersionInMinorverifier intest/util/verifiers/nodes.goto correctly validate node versions during nodepool upgrade E2E tests.Problem
The nodepool upgrade E2E test (
should upgrade a nodepool skipping one minor version (+2) from 4.20.z to 4.22.zLatest) times out after 45 minutes because theVerifyNodePoolUpgradeverifier cannot parse the CRI-O version on OCP 4.22 nodes.The original implementation extracted the OCP version from a
rhaostag inContainerRuntimeVersion(e.g.cri-o://1.33.9-3.rhaos4.20.gitXXX.el9). OCP 4.22+ ships CRI-O with a clean semver format (cri-o://1.35.6) — norhaostag — causing all nodes to fail verification.This is a Tide merge queue blocker.
Fix
Replaced the
rhaosregex approach with a directKubeletVersioncheck. The function now:1. Parses
KubeletVersion(e.g.v1.35.6+...) viasemver.ParseTolerant2. Guards that the Kubernetes major version is 1
3. Verifies
kubeletMinor == expectedOCPMinor + 13using theocpToK8sMinorOffsetconstantNo fallbacks, no regex — one deterministic path for all OCP versions. The OCP-to-Kubernetes minor offset (13) is a stable invariant (OCP 4.14 = k8s 1.27, ..., OCP 4.22 = k8s 1.35).
Tests
Added
test/util/verifiers/nodes_test.gowith:TestNodeVersionInMinor— 7 subtests: matching version, wrong minor, unexpected major, unparseable kubelet, boundary versions (4.14, 4.23), OCP 4.20 matchTestOcpToK8sMinorOffset— validates the offset constant against known OCP↔Kubernetes version mappings (4.14–4.22)All 8 tests pass.
go vetandgo buildclean.Jira
Fixes AROSLSRE-1935