← Back to Pull requests

Harden breakglass e2e session timing and add MC provider registration logging #7276

Closed
unknown closed this pull request without merging on Oct 01, 2026 20:10 UTC
View on GitHub
unknown unknown commented on Sep 30, 2026 19:15 UTC
Author

Summary

The breakglass e2e "another user" (owner-isolation) session intermittently times out waiting for readiness. Kusto traces of a failed run show BuildManagementClusterProvider taking ~2.5 minutes to complete (from "building management cluster provider" to informers registered), which exceeded the prior 1m sessionReadyTimeout and the 1m session TTL for that non-expiry test session.

Changes

  • test/e2e/admin_api.go — bump the "another user" (owner-isolation) session TTL from 1m to 3m. The two expiry-assertion sessions remain at 2m and are intentionally unchanged.

  • test/util/framework/admin_api_helpers.go — bump sessionReadyTimeout from 1m to 3m, with a comment explaining the observed MC-provider registration delay.

  • sessiongate/pkg/controller/hcpprovider.go — add klog timing logs around GetAKSRESTConfig, BuildManagementClusterProvider, and WaitForCacheSync so the management-cluster provider registration delay is observable in Kusto.

  • sessiongate/pkg/controller/sessioncontroller.go — raise the provider-registration skip log from V(4) to Info so the sessiongate skip is visible in Kusto.
  • Verification

  • make fmt clean, make lint 0 issues, sessiongate build + controller tests pass, and the test module builds with the E2Etests tag.
  • Tracking

    Supersedes and consolidates the earlier split PRs, all now closed: #7273, #7275, #7274.

    ---
    AI-generated. Review for accuracy.

    @machi1990 requested in Slack thread

    Diff: 195 lines (+146 / -49) across 2 files Reviewer: machi1990 Review duration: 1495m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 195 lines diff across 2 files
    0.36
    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.316
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #7276"
    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: 36% (MEDIUM) · Higher = larger blast radius
    36%
    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: 14.2% · Safe to merge
    14.2%
    Repository