← Back to Pull requests

Greenfield: Implement MockGCP and Alignment for NetworkServicesServiceLBPolicy #13955

Merged
lovelace-coder-bot merged 5 files (820 lines) on Oct 14, 2026 19:47 UTC
View on GitHub
lovelace-coder-bot lovelace-coder-bot commented on Oct 13, 2026 19:27 UTC
Author

Summary of Changes


  • Implemented MockGCP CRUD operations for NetworkServicesServiceLBPolicy in mockgcp/mocknetworkservices/servicelbpolicy.go.

  • Added normalization for ServiceLbPolicy timestamps in mockgcp/mocknetworkservices/normalize.go.

  • Enabled NetworkServicesServiceLBPolicy in the sample test harness (config/tests/samples/create/harness.go).

  • Aligned MockGCP behavior with real GCP golden logs for both networkservicesservicelbpolicy-minimal and networkservicesservicelbpolicy-maximal test fixtures, generating matching _http_mock.log files with zero diff.
  • Fixes #13954

    ``release-note
    New Alpha Resources (Direct Reconciler):
    NetworkServicesServiceLBPolicy
    ``

    This pull request was generated by an AI coding agent.

    <!-- factory:task-output kind=Change task=recipe-fix-20261013-185656-9505 -->

    Diff: 820 lines (+820 / -0) across 5 files Reviewer: himanigulati01 Review duration: 1459m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.49) × (1 − Review Confidence (0.58)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.49 · 820 lines diff across 5 files
    0.49
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.20 · 1 substantive comment(s)
    0.20
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    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.400
    Shallow Review Depth shallow_review_depth
    0.280
    Real PR Conversation Timeline
    5 items
    himanigulati01 himanigulati01 approved these changes on Oct 14, 2026 07:39 UTC
    Approved Reviewer

    /lgtm

    anfernee anfernee approved these changes on Oct 14, 2026 16:48 UTC
    Approved Reviewer

    Approved these changes.

    acpana acpana approved these changes on Oct 14, 2026 18:57 UTC
    Approved Reviewer

    Approved these changes.

    google-oss-prow[bot] google-oss-prow[bot] commented on Oct 14, 2026 18:58 UTC
    Bot

    [APPROVALNOTIFIER] This PR is APPROVED

    This pull-request has been approved by: <a href="https://github.com/GoogleCloudPlatform/k8s-config-connector/pull/13955#pullrequestreview-5523109599" title="Approved">acpana</a>, <a href="https://github.com/GoogleCloudPlatform/k8s-config-connector/pull/13955#pullrequestreview-5521455512" title="Approved">anfernee</a>, <a href="https://github.com/GoogleCloudPlatform/k8s-config-connector/pull/13955#pullrequestreview-5514570806" title="LGTM">himanigulati01</a>

    The full list of commands accepted by this bot can be found here.

    The pull request process is described here

    <details >
    Needs approval from an approver in each of these files:

  • ~~OWNERS~~ [acpana,anfernee]
  • Approvers can indicate their approval by writing /approve in a comment
    Approvers can cancel approval by writing /approve cancel in a comment
    </details>
    <!-- META={"approvers":[]} -->

    Assignees
    lovelace-coder-bot lovelace-coder-bot
    Labels
    risk: low confidence: 58.0% 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: 48.9% (MEDIUM) · Higher = larger blast radius
    48.9%
    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: 20.5% · Safe to merge
    20.5%