fix(labeler): reconcile device count labels on allocatable changes #1602
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
cbumb
Summary
The labeler's
nodeRequiresReconciliationonly checked for node label changes, but the NIC count CEL expression reads fromnode.status.allocatable. When MOFED driver restarts temporarily zeroed allocatable, the labeler wrotenic.count.current=0and never corrected it after recovery because no labels changed, leaving stale labels on 20+ nodes.This adds
NodeResourcesAffectDeviceCountsto also trigger reconciliation whenstatus.allocatableorstatus.capacitychanges, for classes whose CEL expression referencesnode.status. Label-only classes (e.g., GPU) pay zero cost.Type of Change
Component(s) Affected
Testing
Checklist
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
- 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.
- Expanded coverage for resource changes, driver pod events, cache synchronization, and combined label updates.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->