← Back to Pull requests

fix(fault-quarantine): do not overwrite an operator's taint on fresh quarantine #2287

Closed
unknown closed this pull request without merging on Nov 12, 2026 18:15 UTC
View on GitHub
unknown unknown commented on Nov 04, 2026 10:14 UTC
Author

Summary

Fixes #2286.

On the fresh-quarantine path, markPreExistingTaints marked a desired taint PreExisting only on an exact key+value+effect match. A taint with the same key and effect but a different value was applied over the node's own (applyTaints updates the value in place), recorded in the applied-taints annotation, and then removed at unquarantine - destroying an operator taint such as nvidia.com/gpu-xid-error=owned-by-operator:NoSchedule.

markPreExistingTaints now drops such a taint and returns the set to apply, matching sessionTaintsToAdd on the already-quarantined path, so applyTaints never overwrites it and removeTaints never deletes it. The call moves into handleEvent so the filtered set reaches both the annotation and applyTaints.

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)
  • TestMarkPreExistingTaints covers: a taint the node lacks is applied; an exact match is marked PreExisting; a same-key+effect taint with a different value is dropped (the fix); the same key with another effect is a distinct taint and is applied. The dropped-value case fails on main, where the taint is applied and overwrites the node's value.

    Ran locally (Go 1.27.3, envtest, macOS arm64): go test ./pkg/reconciler/... passes (the full package, including the e2e flow through handleEvent); gofmt and go vet clean. make lint-test-all and the e2e cluster suite were not run.

    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

    Bug Fixes
    Quarantine no longer applies or records a proposed taint when a node already has a taint with the same key and effect but a different value.
    Existing taints that match exactly are recognized as pre-existing; taints with a different effect remain distinct.
    Nodes are correctly marked as quarantined even when reconciliation removes all requested taints.
    * After recovery, quarantine annotations are cleared, and taints owned by another operator remain unchanged and are not duplicated.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 338 lines (+253 / -85) across 4 files Reviewer: KaivalyaMDabhadkar Review duration: 12000m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 338 lines diff across 4 files
    0.42
    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.349
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #2287"
    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.2% (MEDIUM) · Higher = larger blast radius
    42.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: 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.7% · Safe to merge
    16.7%