← Back to Pull requests

fix(labeler): reconcile device count labels on allocatable changes #1602

Closed
unknown closed this pull request without merging on Aug 24, 2026 06:34 UTC
View on GitHub
unknown unknown commented on Aug 14, 2026 07:08 UTC
Author

Summary

The labeler's nodeRequiresReconciliation only checked for node label changes, but the NIC count CEL expression reads from node.status.allocatable. When MOFED driver restarts temporarily zeroed allocatable, the labeler wrote nic.count.current=0 and never corrected it after recovery because no labels changed, leaving stale labels on 20+ nodes.

This adds NodeResourcesAffectDeviceCounts to also trigger reconciliation when status.allocatable or status.capacity changes, for classes whose CEL expression references node.status. Label-only classes (e.g., GPU) pay zero cost.

Type of Change


  • 🐛 Bug fix

  • ✨ New feature

  • 💥 Breaking change

  • 📚 Documentation

  • 🔧 Refactoring

  • 🔨 Build/CI
  • Component(s) Affected


  • Core Services

  • Documentation/CI

  • Fault Management

  • Health Monitors

  • Janitor

  • Other: Labeler
  • 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 -->

    Summary by CodeRabbit

  • Bug Fixes

  • - Node label reconciliation now responds to relevant allocatable and capacity resource changes.
    - Detects added, removed, and modified resources referenced by device-count configurations while ignoring unrelated changes.
    - Driver pod updates are now reliably incorporated into label detection and reconciliation.
    - Driver and device-count labels can be updated together in a single reconciliation.

  • Tests

  • - Expanded coverage for resource changes, driver pod events, cache synchronization, and combined label updates.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 231 lines (+173 / -58) across 2 files Reviewer: cbumb Review duration: 14365m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 231 lines diff across 2 files
    0.37
    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.326
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #1602"
    general weight: 0.35
    Reviewers
    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: 37% (MEDIUM) · Higher = larger blast radius
    37%
    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: 14.6% · Safe to merge
    14.6%