← Back to Pull requests

OCPSTRAT-3679: Add test plan for configurable event TTL #11

Closed
unknown closed this pull request without merging on Oct 26, 2026 11:45 UTC
View on GitHub
unknown unknown commented on Oct 21, 2026 11:27 UTC
Author

Add an IEEE 829 test plan for configurable kube-apiserver event TTL in HyperShift hosted control planes, covering the typed API field added in openshift/hypershift#9836 and designed in openshift/enhancements#2137.

The plan is written against the approved API design, not the earlier annotation proposal (CNTRLPLANE-1617 / hypershift#7202), which was closed and is explicitly out of scope:

  • spec.operatorConfiguration.kubeAPIServer.eventTTLMinutes, an int32 on the shared KubeAPIServerOperatorSpec, so it lands on both HostedCluster and HostedControlPlane

  • Range [5, 180] enforced only by the CRD schema at admission time; no operator-side validation and no ValidConfiguration condition handling

  • No CRD default; the platform default literal moves from "3h" to "180m" so that eventTTLMinutes: 180 renders an identical config

  • Gated on KubeAPIServerEventTTL, enabled in TechPreviewNoUpgrade only
  • Thirteen test cases spanning unit, envtest/CRD schema, e2e, and manual cluster-level verification: default and backward compatibility, valid and invalid values, propagation to the rendered kube-apiserver argument, day-2 updates and rollout, upgrade compatibility, and regression.

    Automated tests delivered with the implementation are separated from manual verification, and section 6.2 records seven coverage gaps found by reading the diff, each mapped to the manual case that covers it. Notably: the CRD testsuite has no onUpdate rejection case, nothing asserts the HostedCluster to HostedControlPlane mirror or the kube-apiserver rollout, there is no upgrade or event-expiry test, and the e2e skips rather than fails on a Default feature set.

    No test is claimed to have passed; both referenced PRs are still open. Results belong in a later verification report under reports/.

    Diff: 222 lines (+166 / -56) across 2 files Reviewer: sdminonne Review duration: 7218m
    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 · 222 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.323
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.060
    Real PR Conversation Timeline
    1 comments
    "Review active on #11"
    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.0% (MEDIUM) · Higher = larger blast radius
    60.0%
    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.7% · Safe to merge
    23.7%