← Back to Pull requests

test: verify nodepool upgrade via KubeletVersion (AROSLSRE-1935) #6727

Closed
unknown closed this pull request without merging on Aug 28, 2026 23:42 UTC
View on GitHub
unknown unknown commented on Aug 28, 2026 16:12 UTC
Author

Summary

Fixes the nodeVersionInMinor verifier in test/util/verifiers/nodes.go to 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 the VerifyNodePoolUpgrade verifier cannot parse the CRI-O version on OCP 4.22 nodes.

The original implementation extracted the OCP version from a rhaos tag in ContainerRuntimeVersion (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) — no rhaos tag — causing all nodes to fail verification.

This is a Tide merge queue blocker.

Fix

Replaced the rhaos regex approach with a direct KubeletVersion check. The function now:

1. Parses KubeletVersion (e.g. v1.35.6+...) via semver.ParseTolerant
2. Guards that the Kubernetes major version is 1
3. Verifies kubeletMinor == expectedOCPMinor + 13 using the ocpToK8sMinorOffset constant

No 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.go with:

  • TestNodeVersionInMinor — 7 subtests: matching version, wrong minor, unexpected major, unparseable kubelet, boundary versions (4.14, 4.23), OCP 4.20 match

  • TestOcpToK8sMinorOffset — validates the offset constant against known OCP↔Kubernetes version mappings (4.14–4.22)
  • All 8 tests pass. go vet and go build clean.

    Jira

    Fixes AROSLSRE-1935

    Diff: 211 lines (+158 / -53) across 2 files Reviewer: stevekuznetsov Review duration: 450m
    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
    0.60
    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%
    60%
    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.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
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 59.7% (MEDIUM) · Higher = larger blast radius
    59.7%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 23.6% · Safe to merge
    23.6%
    Repository