fix(fault-quarantine): do not overwrite an operator's taint on fresh quarantine #2287
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
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.349
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2287"
general
weight: 0.35
KaivalyaMDabhadkar
Summary
Fixes #2286.
On the fresh-quarantine path,
markPreExistingTaintsmarked a desired taintPreExistingonly 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 (applyTaintsupdates the value in place), recorded in the applied-taints annotation, and then removed at unquarantine - destroying an operator taint such asnvidia.com/gpu-xid-error=owned-by-operator:NoSchedule.markPreExistingTaintsnow drops such a taint and returns the set to apply, matchingsessionTaintsToAddon the already-quarantined path, soapplyTaintsnever overwrites it andremoveTaintsnever deletes it. The call moves intohandleEventso the filtered set reaches both the annotation andapplyTaints.Type of Change
Component(s) Affected
Testing
TestMarkPreExistingTaintscovers: a taint the node lacks is applied; an exact match is markedPreExisting; 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 onmain, 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 throughhandleEvent);gofmtandgo vetclean.make lint-test-alland the e2e cluster suite were not run.Checklist
<!-- 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 -->