nhc-operator: enable snr operand in suite precondition #150
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 318 lines diff across 3 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.345
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #150"
general
weight: 0.35
jwmatthews
What
Adds a suite-level precondition to the NHC suite that enables the NHC and SNR operands of the
WorkloadAvailabilityConfigsingleton and waits for both to reportAvailable, before the first spec.Why
Most NHC specs use SNR as their remediator — they create a
NodeHealthCheckreferencing aSelfNodeRemediationTemplateand assert on theSelfNodeRemediationCRs created from it. Under WAO every operand CRD is installed with the operator regardless of enablement, so the existing CRD check in the remediation specs cannot tell an enabled SNR manager from a disabled one. On theinstall-wao-nhc-daily-awsjob, where only thenhccomponent is enabled, three specs fail (4 of 13 total failures in run 2127281675946692608):DisabledwithRemediationTemplateNotFoundbecauseself-node-remediation-automatic-strategy-templatedoes not exist (selector-update and missing-namespace specs)With the precondition enabling both operands, the suite no longer depends on the CI step having enabled
snrout of band.Design notes
Follows the precondition contract in
docs/TESTCASES/AGENTS.md:Available; a cluster that is already correct is not touched.WorkloadAvailabilityConfigsingleton isIsNotFound, the precondition changes nothing and the per-operator checks each spec already performs remain the gate.nhc+snr, notWAOAllComponents.The remaining failure in that job's analysis (webhook denied duplicate template kind
MultiTemplateRemediationTemplate) is an RBAC gap in the WAO operator, not addressed here.Note: #123 also rewrites
tests/nhc-operator/README.md; the paragraph added here sits in the Prerequisites section and may need a small rebase over it.Verification
go build ./tests/nhc-operator/...make fmt,golangci-lint run tests/nhc-operator/...(0 issues),go vetECO_DRY_RUN=true KUBECONFIG=/dev/null ginkgo run -r --dry-run ./tests/nhc-operator/— 28/28 specs, PASS🤖 Generated with Claude Code