sbr-operator: add block remediation e2e tests #137
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 530 lines diff across 6 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.375
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #137"
general
weight: 0.35
mpryc
Adds 28 BlockPerNode tests for requested and autonomous remediation. Includes fault injection, public state observations, safe cleanup, and test documentation.
| TestID | Purpose |
|---|---|
| RHWA-1839-01 | Check healthy storage and API access.<br>Check that no reboot or remediation occurs. |
| RHWA-1839-02 | Remove API access from all selected agents.<br>Check that healthy storage prevents autonomous reboots. |
| RHWA-1839-03A | Fail storage on all selected nodes.<br>Check unhealthy conditions without reboots while API access remains available. |
| RHWA-1839-03B | Request remediation while all selected nodes have unhealthy storage.<br>Check target reboot, request completion, and peer continuity. |
| RHWA-1839-04A | Combine storage and API failures.<br>Check exactly one autonomous reboot during the unresolved outage. |
| RHWA-1839-04B | Trigger an autonomous reboot after a completed requested remediation.<br>Check that the Node preserves the previous request identity. |
| RHWA-1839-05A | Remove API access from one node.<br>Check that healthy storage prevents reboot and storage-policy remediation. |
| RHWA-1839-05B | Isolate one node from peers and the API.<br>Check that accessible storage prevents reboot. |
| RHWA-1839-06 | Trigger NHC remediation through storage failure.<br>Check reboot, workload removal, request completion, and restriction release. |
| RHWA-1839-07 | Trigger a kernel crash through SysRq.<br>Check target recovery and unchanged peer boot IDs. |
| RHWA-1839-08 | Delete an SBR agent Pod.<br>Check healthy reporting from its replacement without a host reboot. |
| RHWA-1839-09 | Stop kubelet while storage remains healthy.<br>Check that this failure causes no reboot or SBR request. |
| RHWA-1839-10A | Delay storage beyond the probe timeout.<br>Check unhealthy reporting without an unauthorized reboot. |
| RHWA-1839-10B | Drop storage traffic until operations time out.<br>Check unhealthy reporting and recovery after traffic restoration. |
| RHWA-1839-10C | Request remediation while both peers have storage timeouts.<br>Check target completion without peer reboots or agent replacement. |
| RHWA-1839-11 | Partition selected nodes while storage and API access remain available.<br>Check healthy storage reporting without remediation or reboots. |
| RHWA-1839-12A | Restore storage after SBR accepts a request.<br>Check that the accepted request still causes a reboot. |
| RHWA-1839-12B | Interrupt and restore API access after request acceptance.<br>Check that the accepted request still causes a reboot. |
| RHWA-1839-15A | Retain a terminating workload Pod during remediation.<br>Check bounded completion and release of SBR-owned restrictions after request deletion. |
| RHWA-1839-15B | Retain a terminating Pod with existing administrator restrictions.<br>Check that request deletion preserves those restrictions. |
| RHWA-1839-16A | Prevent journal writes before creating a request.<br>Check that SBR neither reboots nor reports false success. |
| RHWA-1839-16B | Restore journal access and restart the agent.<br>Check that a new request completes without replacing journal contents. |
| RHWA-1839-16C | Prevent journal writes on both peers.<br>Check that target remediation completes without peer reboots. |
| RHWA-1839-17A | Create successive requests during persistent storage failure.<br>Check one reboot per request and no repeats from retained completed requests. |
| RHWA-1839-17B | Create a request after an autonomous reboot.<br>Check requested remediation without another autonomous reboot during the unresolved outage. |
| RHWA-1839-17C | Restore health for less than the recovery period.<br>Check that another outage cannot cause another autonomous reboot. |
| RHWA-1839-17D | Maintain health beyond the recovery period.<br>Check that a later outage permits another autonomous reboot. |
| RHWA-1839-17E | Interrupt recovery with an API outage.<br>Check that separate healthy intervals do not satisfy continuous recovery. |
Validation: SBR and shared-helper unit tests, race checks, lint, vet, document checks, and the 28-case dry run passed. Live behavioral validation is pending. The feature is not implemented, so behavioral failures are expected.