← Back to Pull requests

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

Closed
unknown closed this pull request without merging on Jul 03, 2026 13:31 UTC
View on GitHub
unknown unknown commented on Jun 19, 2026 11:14 UTC
Author

Hi Team,

Splitting the original PR: https://github.com/openshift/cluster-authentication-operator/pull/859 into smaller once to better debug and merge the PR's easily.

PR about:
This commit migrates the encryption performance tests to support both traditional go test and the OpenShift Tests Extension (OTE) framework, following the dual-mode pattern established in PR #859.

Changes:

  • Add encryption_perf.go with Ginkgo test registration

  • Refactor encryption_perf_test.go to call shared test function

  • Add test/library/encryption_wrappers.go for testing.TB compatibility

  • Add test/library/encryption/scenarios.go with core test implementations

  • Add test/library/encryption/perf_helpers.go for performance test utilities

  • Register encryption-perf suite in OTE main.go with ClusterStability: Disruptive
  • The tests now use testing.TB interface for framework compatibility and context.Background() instead of t.Context() to avoid Ginkgo panics.

    Suite details:

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

  • Parallelism: 1 (serial execution)

  • ClusterStability: Disruptive (triggers API server rollouts)
  • Test: [sig-auth] authentication operator [Encryption][Serial] TestPerfEncryptionTypeAESCBC

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

    Summary by CodeRabbit

    New Features
    Added a new encryption performance test suite to broaden coverage for OAuth API server encryption scenarios.
    Introduced a long-running performance check that measures encryption migration behavior and token creation throughput.

    Bug Fixes
    * Improved validation to detect slow encryption migrations and fail when they exceed the expected time limit.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 227 lines (+170 / -57) across 2 files Reviewer: liouk Review duration: 20297m
    All Vouch review confidence checks passed
    Residual risk 0.24 = Change Risk (0.60) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.60 · 227 lines diff across 2 files
    0.60
    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.325
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.060
    Real PR Conversation Timeline
    1 comments
    "Review active on #926"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 60.1% (MEDIUM) · Higher = larger blast radius
    60.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: 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: 23.8% · Safe to merge
    23.8%