← Back to Pull requests

replace hardcoded SlesCSDDriverVersions map with actual registry.suse.com check #572

Closed
unknown closed this pull request without merging on Jul 07, 2026 00:32 UTC
View on GitHub
unknown unknown commented on Jun 09, 2026 16:49 UTC
Author

Motivation

follow up on point (1) - https://github.com/ROCm/gpu-operator/pull/562#issuecomment-4654323994

Technical Details

> kubectl get deviceconfig driver-test -n kube-amd-gpu -o jsonpath-as-json="{.status}"
[
    {
        "conditions": [
            {
                "lastTransitionTime": "2026-06-09T16:01:19Z",
                "message": "Validation failed: [driver driver version validation failed for node ip-172-xx-xx-xx: driver version \"31.40\" is not available for SLES 16.0 on registry.suse.com]",
                "reason": "ValidationError",
                "status": "True",
                "type": "Error"
            },
            {
                "lastTransitionTime": "2026-06-09T16:01:19Z",
                "message": "",
                "reason": "OperatorReady",
                "status": "False",
                "type": "Ready"
            }
        ]
    }
]

and cache logs would look like:

2026-06-09T14:16:28.13.083 INFO SLES driver version cache refreshed  {"codestream": "16.0", "version": "31.80", "available": false}
2026-06-09T14:16.28.13.100 INFO SLES driver version cache refreshed  {"codestream": "16.0", "version": "31.40", "available": false}
2026-06-09T14:16.28.13.120 INFO SLES driver version cache hit         {"codestream": "16.0", "version": "31.30", "available": true}
2026-06-09T14:16:28.54.100 INFO SLES driver version cache hit         {"codestream": "16.0", "version": "31.80", "available": false}

Test Plan

updated test in internal/utils_test.go, to rewrite TestValidateSLESDriverVersion to accomodate the new model of driver version validation

Test Result

> go test ./internal/ -run TestValidateSLESDriverVersion -v -count=1
=== RUN   TestValidateSLESDriverVersion
=== RUN   TestValidateSLESDriverVersion/non-SLES_OS_is_always_valid
=== RUN   TestValidateSLESDriverVersion/valid_version_for_SLES_15_SP7
=== RUN   TestValidateSLESDriverVersion/valid_version_for_SLES_16.0
=== RUN   TestValidateSLESDriverVersion/unavailable_version_on_SLES_16.0
=== RUN   TestValidateSLESDriverVersion/unavailable_version_on_SLES_15_SP7
--- PASS: TestValidateSLESDriverVersion (0.00s)
    --- PASS: TestValidateSLESDriverVersion/non-SLES_OS_is_always_valid (0.00s)
    --- PASS: TestValidateSLESDriverVersion/valid_version_for_SLES_15_SP7 (0.00s)
    --- PASS: TestValidateSLESDriverVersion/valid_version_for_SLES_16.0 (0.00s)
    --- PASS: TestValidateSLESDriverVersion/unavailable_version_on_SLES_16.0 (0.00s)
    --- PASS: TestValidateSLESDriverVersion/unavailable_version_on_SLES_15_SP7 (0.00s)
PASS
ok  	github.com/ROCm/gpu-operator/internal	0.017s

Submission Checklist

  • Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.
  • Diff: 356 lines (+267 / -89) across 4 files Reviewer: Priyankasaggu11929 Review duration: 39343m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 356 lines diff across 4 files
    0.43
    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.352
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #572"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    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: 42.5% (MEDIUM) · Higher = larger blast radius
    42.5%
    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: 16.8% · Safe to merge
    16.8%