← Back to Pull requests

CNTRLPLANE-2589: Migrate test/e2e-encryption to OpenShift Tests Extension framework #944

Closed
unknown closed this pull request without merging on Jul 08, 2026 09:04 UTC
View on GitHub
unknown unknown commented on Jul 04, 2026 15:10 UTC
Author

Hi Team,

Migrate the encryption tests to support both traditional go test and the OpenShift Tests Extension (OTE) framework

Changes:

  • Add encryption.go with Ginkgo test registration

  • Refactor encryption_test.go to call shared test functions

  • Register operator-encryption/serial suite in OTE main.go

  • Update package name to e2e_encryption (with underscores)
  • The tests now use testing.TB interface for framework compatibility.

    Suite details:

  • Name: openshift/cluster-authentication-operator/operator-encryption/serial

  • Parallelism: 1 (serial execution)

  • ClusterStability: Disruptive (triggers API server rollouts)
  • <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    New Features
    Added an end-to-end encryption test suite with identity, unset, and turn-on/turn-off coverage.
    Ensured encryption E2E tests are registered and executed in a single disruptive serial run.
    Bug Fixes
    Updated test selection to focus on encryption behavior while excluding rotation, performance, and KMS-related scenarios.
    Refactor
    * Simplified encryption test wiring by delegating scenario setup to shared helpers and standardizing test package naming.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 163 lines (+122 / -41) across 2 files Reviewer: liouk Review duration: 5393m
    All Vouch review confidence checks passed
    Residual risk 0.27 = Change Risk (0.63) × (1 − Review Confidence (0.58)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.63 · 163 lines diff across 2 files
    0.63
    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%
    57%
    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.305
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.063
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #944"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 58.0% reviewed sensitive_module
    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: 63.1% (MEDIUM) · Higher = larger blast radius
    63.1%
    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: 58.0% · Lower = rushed or shallow review
    58.0%
    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: 26.5% · Safe to merge
    26.5%