← Back to Pull requests

fix(janitor): give GPUReset a Succeeded condition that reports the outcome #2462

Closed
unknown closed this pull request without merging on Nov 20, 2026 11:10 UTC
View on GitHub
unknown unknown commented on Nov 19, 2026 01:47 UTC
Author

Summary

The janitor sets Complete=True on each GPUReset that ends, also when the reset failed. A fault-remediation configuration that reads Complete thus counts a failed reset as successful (#2450).

  • Complete does not change. It continues to mean that the controller has finished with the GPUReset.

  • The janitor sets a new Succeeded condition when a GPUReset ends: True with reason GPUResetSucceeded, or False with the failure reason and message. It writes the condition in the same status update as Complete. The condition is absent while the reset is in progress.

  • The janitor adds Succeeded to each GPUReset that ended before this change and is not being deleted. It takes the outcome from the Complete condition, not from the phase: the restoration after a failed reset can change the phase of a completed GPUReset. It does this at the end of the reconcile, after the restoration and the release of the node lock.

  • The documented and shipped configurations that send COMPONENT_RESET to GPUReset now use completeConditionType: "Succeeded". The chart default does not use GPUReset and does not change.

  • The CRD schema does not change, so there is no CRD to apply. fault-remediation code does not change.
  • What changes in fault-remediation with Succeeded, after a failed GPUReset:

  • An event of the same remediation session that is processed after the failed GPUReset gets a new GPUReset. Before, it was marked as remediated. An event created after the GPUReset already got a new one.

  • When fault-remediation computes the node label again after a partial recovery, an event that waits behind the failed GPUReset no longer counts as remediated.
  • Why the outcome is a condition, and not the phase: the phase of a GPUReset that has ended is not stable. Example: a GPUReset stops the GPU services and then fails, because the reset Job is gone (ResetJobNotFound).

    1. The janitor ends the GPUReset: phase: Failed, completionTime is set, Complete=True with reason ResetJobNotFound.
    2. The services are still stopped, so the janitor continues to restore the node labels.
    3. The first restoration step writes the ServicesRestored condition with reason RestoringServices. Each condition write computes the phase again from the reason, so the phase becomes InProgress.
    4. When the labels are back, the phase becomes Failed again. If the node is deleted before that, the phase stays InProgress.

    A system that reads the phase sees a reset in progress for a GPUReset that has failed. Succeeded=False does not change in these steps. The test "should record the outcome of a failed GPUReset from the Complete condition after the restoration changed its phase" shows this.

    Not in this PR: this PR does not make a node reboot when the reset Job wrote no result line. As discussed in #2450, the system that runs the escalation ladder (#2359) handles reset -> reboot outside the janitor. That system can read this condition to see that a reset failed.

    Upgrade note: if your values set completeConditionType: "Complete" for GPUReset, change the value to Succeeded. helm upgrade --reuse-values keeps the old value, and the behaviour then stays as before. Use Succeeded only with a janitor that has this change: with an earlier janitor, fault-remediation reads each GPUReset as in progress.

    Local checks: janitor module build, vet, golangci-lint and tests (envtest, -race), helm lint and helm template with the changed values, and go vet of the E2E code. I did not run all of make lint-test-all (the protobuf, Python and shell tools are not installed here, and this change does not touch those areas) or the E2E suite.

    Design references: docs/designs/020-nvsentinel-gpu-reset.md, docs/designs/070-vendor-neutral-core.md (escalation ladder).

    Refs #2450

    Type of Change


  • 🐛 Bug fix

  • ✨ New feature

  • 💥 Breaking change

  • 📚 Documentation

  • 🔧 Refactoring

  • 🔨 Build/CI
  • Component(s) Affected


  • Health Monitor

  • Core Service

  • Fault Management

  • Janitor

  • Deployment/Config

  • API/Interface

  • Preflight

  • Plugins

  • Documentation/CI

  • New Component

  • Multiple Components

  • Other
  • Testing


  • Tests pass locally

  • Manual testing completed

  • No breaking changes (or documented)
  • Checklist


  • Self-review completed

  • Documentation updated (if needed)

  • Ready for review
  • <!-- This is an auto-generated comment: release notes by coderabbit.ai -->
    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    New Features
    GPU resets now report success or failure separately from whether processing has finished. The outcome is absent while a reset is in progress.
    Bug Fixes
    Reset configurations now use the outcome condition to distinguish successful resets from failures.
    Documentation
    Updated configuration guidance and status examples to explain reset outcomes, compatibility with older janitors, and upgrade considerations, including the effect of reusing existing Helm values.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 643 lines (+482 / -161) across 8 files Reviewer: lalitadithya Review duration: 2002m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.52) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 643 lines diff across 8 files
    0.52
    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%
    56%
    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.387
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #2462"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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: 51.9% (MEDIUM) · Higher = larger blast radius
    51.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: 56.8% · Lower = rushed or shallow review
    56.8%
    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: 22.5% · Safe to merge
    22.5%