← Back to Pull requests

Align BlockPerNode system tests with watcher and remediation behavior #158

Merged
pranavgaikwad merged 30 files (3843 lines) on Dec 03, 2026 19:04 UTC
View on GitHub
pranavgaikwad pranavgaikwad commented on Dec 03, 2026 03:02 UTC
Author

Why we need this PR

The original BlockPerNode scenarios checked externally visible outcomes before the watcher and revised API were available. The tests can now check which node rebooted, which remediation request owns the cleanup, and when the controller can report success.

Changes

  • Keep the 22 BlockPerNode end-to-end scenarios. Scenarios 04 and 07 require at least one target reboot. Scenario 18 checks that reconnecting the target preserves the peer's out-of-service wait.

  • Check cleanup and terminal success separately. Cover Pod deletion and wait expiry while a Pod remains.

  • Check watcher assignments and writer progress within the full scenarios. In case 20, watcher reads must fail while the writer continues to write.
  • Related issue: RHWA-2092

    Verification

    An offline Ginkgo dry run selected exactly the original 22 BlockPerNode scenario IDs. The SBR unit tests, lint, formatting, Go vet, and test case documentation checks passed. No live cluster tests ran.

    Diff: 3843 lines (+2992 / -851) across 30 files Reviewer: weshayutin Review duration: 961m
    All Vouch review confidence checks passed
    Residual risk 0.36 = Change Risk (0.72) × (1 − Review Confidence (0.50)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.72 · 3843 lines diff across 30 files
    0.72
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.00 · 1 substantive comment(s)
    0.00
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    50%
    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.400
    Shallow Review Depth shallow_review_depth
    0.350
    Mass File Touch mass_file_touch
    0.080
    Real PR Conversation Timeline
    1 comments
    "Review active on #158"
    general weight: 0.35
    Reviewers
    Assignees
    pranavgaikwad pranavgaikwad
    Labels
    risk: medium confidence: 50% 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: 71.5% (HIGH) · Higher = larger blast radius
    71.5%
    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: 50% · Lower = rushed or shallow review
    50%
    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: 35.8% · Moderate risk
    35.8%