← Back to Pull requests

NO-JIRA: move downstream toolset tests out of pkg/mcp/toolsets_test.go #588

Merged
grokspawn merged 2 files (133 lines) on Nov 20, 2026 22:27 UTC
View on GitHub
grokspawn grokspawn commented on Nov 18, 2026 19:58 UTC
Author

Why

pkg/mcp/toolsets_test.go conflicted on nearly every upstream sync because both sides append to the same TestGranularToolsetsTools registration list and to the end of the file — most recently upstream #1621 (alertmanagement toolset) and #1650 (target compatibility filters) colliding with the downstream ovnkubernetes / cluster-diagnostics / cni-diagnostics / openshift-mustgather additions.

What

  • pkg/mcp/toolsets_test.go is reverted to the upstream content at the last sync point (2bb8c6a8) and stays byte-identical to upstream going forward.

  • Downstream-only coverage moves to a new pkg/mcp/toolsets_openshift_test.go: a granular-tools test for ovnkubernetes, cluster-diagnostics and cni-diagnostics (same pattern as the shared test), plus the openshift/mustgather tool and prompt tests moved verbatim.

  • The duplicated tekton entry is dropped; upstream's own registration list already covers it.
  • Verification

  • git diff 2bb8c6a8 -- pkg/mcp/toolsets_test.go is empty (zero divergence from upstream)

  • go test ./pkg/mcp -run TestToolsets (envtest) — ok
  • Stacked on #587 — merge that first; this PR includes its commit until then.

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    Documentation
    Added OSSM setup guidance covering its relationship to Kiali, tool naming, configuration, and further setup resources.
    Updated OSSM documentation links to use consistent filename casing.
    Updated the Kiali integration heading and example to refer to the Kiali toolset.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 133 lines (+90 / -43) across 2 files Reviewer: 2uasimojo Review duration: 3029m
    All Vouch review confidence checks passed
    Residual risk 0.08 = Change Risk (0.34) × (1 − Review Confidence (0.78)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.34 · 133 lines diff across 2 files
    0.34
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.62 · 1 substantive comment(s)
    0.62
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    77%
    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.293
    Real PR Conversation Timeline
    1 comments
    "Review active on #588"
    general weight: 0.35
    Reviewers
    Assignees
    grokspawn grokspawn
    Labels
    risk: low confidence: 77.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: 33.8% (LOW) · Higher = larger blast radius
    33.8%
    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: 77.5% · Lower = rushed or shallow review
    77.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: 7.6% · Safe to merge
    7.6%