← Back to Pull requests

OCPEDGE-2990: Report supported topology evaluations #522

Closed
unknown closed this pull request without merging on Oct 22, 2026 17:01 UTC
View on GitHub
unknown unknown commented on Oct 02, 2026 16:59 UTC
Author

Summary

cluster input changes / periodic refresh
  -> background preflight evaluation
  -> Infrastructure availability and per-check conditions
  -> write only if evaluated status changed

Report which topology transitions are available before a request is made. Keep failure details in the individual checks, preserve timestamps, and retry conflicts against fresh Infrastructure status. Topology writes invalidate the old availability report without running evaluation inline.

Transition progress remains on the operator Progressing condition. Moving started, blocked, and complete reporting to Infrastructure is split into a separate PR: https://github.com/openshift/cluster-config-operator/pull/529.

Depends on https://github.com/openshift/cluster-config-operator/pull/528 for the Go/API update. Its changes remain in this diff until that PR merges.

Evidence

  • Local Go doc-comment coverage: 122/122 touched functions (100%), measured with the Go parser over the PR diff, excluding vendored files. Code and test functions are included.

  • Comment-only AST comparison passed; executable code is unchanged.

  • Before: supported transitions and their individual preflight blockers are not reported before a request.

  • After: tests cover background evaluation, blockers and recovery, timestamp stability, worker lifecycle, conflict retries, and report invalidation. A split regression test confirms evaluation keeps transition progress on the operator.
  • Passed: GOCACHE=/tmp/cco-split-go-cache make test-unit GO_TEST_ARGS='-count=1' (all unit tests with race checks).

  • Passed: GOCACHE=/tmp/cco-split-go-cache make verify (formatting and Go vet).

  • Passed: git diff --check for the split change.

  • Cluster end-to-end tests were not run.
  • Merge Danger

    Door: two-way

    Blast Radius: MutableTopology

    Adds a background evaluator and Infrastructure availability reports. Both PRs touch controller wiring and status helpers; reconcile those shared files when the first PR lands.

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

    Summary by CodeRabbit

    New Features
    Topology transition availability is evaluated and reported even when no transition has been requested. Reports show individual preflight check results and refresh as relevant cluster state changes.
    Bug Fixes
    Evaluation failures are reported separately from transition progress, so discovery issues do not incorrectly mark a successful transition sync as degraded.
    * Topology updates are applied only when the expected cluster state is still current, helping prevent concurrent changes from being overwritten.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 342 lines (+256 / -86) across 4 files Reviewer: copejon Review duration: 28801m
    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 · 342 lines diff across 4 files
    0.42
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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.349
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #522"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.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: 42.3% (MEDIUM) · Higher = larger blast radius
    42.3%
    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: 60.5% · Lower = rushed or shallow review
    60.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: 16.7% · Safe to merge
    16.7%