← Back to Pull requests

Always publish generated MIG profiles and remove static fallback #598

Open
unknown opened this pull request with 239 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 19, 2026 02:23 UTC
Author

Issue

Part of NVIDIA/gpu-operator#2913

Description

mig-manager now generates the MIG config from hardware and writes the
per-node <node>-mig-config ConfigMap also when a custom config is set,
so users can build custom configs from the profiles of each node. With
a custom config, a failure to generate or publish the profiles only
logs a warning. This also keeps mig-manager working with GPU Operator
versions that do not give it the env and RBAC to write the ConfigMap.

Remove the static config fallback from mig-manager and the systemd
service. It existed for R535 drivers, which cannot list MIG profiles
while MIG mode is disabled, and R535 is no longer supported. Without a
custom config, a generation failure now fails startup. The systemd
service continues when MIG_PARTED_CONFIG_FILE points to a custom
config, or when a config.yaml from an earlier boot exists.

deb and rpm upgrades delete /etc/nvidia-mig-manager/config-default.yaml,
because it is a plain package file. Users who point
MIG_PARTED_CONFIG_FILE at that file must change it before they upgrade.

Checklist

  • No secrets, sensitive information, or unrelated changes

  • Lint checks passing (make lint)

  • Generated assets in-sync (make validate-generated-assets)

  • Go mod artifacts in-sync (make validate-modules)

  • Test cases are added for new code paths
  • Testing

    go build and go vet of ./cmd/nvidia-mig-manager, and bash -n of
    the changed shell scripts. No unit test: publishGeneratedConfig runs NVML-based
    config generation, which has no test seam in this package.

    The service.sh config block was run with a stub nvidia-mig-parted for
    these cases: generation succeeds; generation fails with a custom config;
    with an existing config.yaml; with a legacy symlink; with no config; and
    with MIG_PARTED_CONFIG_FILE set to the default config.yaml. Only the
    last three exit 1.

    Diff: 239 lines (+179 / -60) across 2 files Reviewer: tariq1890 Review duration: 16534m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.37) × (1 − Review Confidence (0.43)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 239 lines diff across 2 files
    0.37
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    42%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.328
    Real PR Conversation Timeline
    1 comments
    "Review active on #598"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 43.0% 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: 37.2% (MEDIUM) · Higher = larger blast radius
    37.2%
    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: 43.0% · Lower = rushed or shallow review
    43.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: 21.2% · Safe to merge
    21.2%