← Back to Pull requests

Greenfield: Implement direct controller, E2E fixtures, and fuzzer for VideoStitcherVODConfig #16704

Open
unknown opened this pull request with 299 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 29, 2026 12:33 UTC
Author

This pull request was generated by an AI coding agent.

Implement Greenfield Step 2 for VideoStitcherVODConfig (videostitcher.cnrm.cloud.google.com/v1alpha1):

  • Verified deterministic direct controller (pkg/controller/direct/videostitcher/videostitchervodconfig_controller.go) and round-trip fuzzer (pkg/controller/direct/videostitcher/videostitchervodconfig_fuzzer.generated.go).

  • Added common.NormalizeGreenfieldReferences to AdapterForObject in videostitchervodconfig_controller.go to normalize ProjectAndLocationRef.

  • Created minimal and maximal E2E test fixtures with create.yaml and update.yaml covering all spec fields (sourceURI, adTagURI, gamVodConfig.networkCode, and sourceFetchOptions.headers).

  • Verified round-trip fuzzer passes 200 seeds via FOCUS=VideoStitcher go test -v ./pkg/fuzztesting/fuzztests -run TestFocusedMappers.

  • Updated tests/apichecks/testdata/exceptions/alpha-missingfields.txt to remove newly covered CRD field exceptions.

  • Documented service-specific learnings regarding gRPC client and service enablement permissions in .gemini/journals/videostitcher.md.
  • Fixes #16688

    ``release-note
    NONE
    `

    Review Instructions

    Use .gemini/skills/reviewgen-greenfield-controller/SKILL.md to conduct the review.

    KCC Greenfield Controller Auto-Review Results


    Trigger criteria matched: Yes
    Post-Judgement, One-Shot Generation, &
    static_config.go: Pass
    Client Creation & Reference Normalization: Pass
    CompareGreenfieldSpec & Structured Reporting: Pass
    LRO Wait & Mandatory Status Updates: Pass
    Fuzzer & Real-GCP Test Coverage: Pass (E2E fixtures created, real GCP API restricted pending service allowlist)

    Detailed Findings / Actions Required:


    None. All Greenfield Step 2 criteria and invariants are satisfied.

    Workflow feedback


  • videostitcher.googleapis.com is not enabled in test projects and cannot be enabled by standard test service accounts due to consumer binding restrictions (servicemanagement.services.bind error 110002). Sibling resource VideoStitcherCDNKey` was similarly committed with fixtures and aligned via MockGCP in Step 3.
  • <sub>🤖 Agent session</sub>

    <!-- factory:task-output kind=Change task=recipe-fix-20261129-095718-f4cc -->

    Diff: 299 lines (+224 / -75) across 3 files Reviewer: reviewbot-robot Review duration: 1691m
    All Vouch review confidence checks passed
    Residual risk 0.35 = Change Risk (0.63) × (1 − Review Confidence (0.44)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.63 · 299 lines diff across 3 files
    0.63
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    44%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.341
    Sensitive Paths sensitive_paths
    0.063
    Real PR Conversation Timeline
    1 comments
    "Review active on #16704"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: medium confidence: 44.2% 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.2% (MEDIUM) · Higher = larger blast radius
    63.2%
    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: 44.2% · Lower = rushed or shallow review
    44.2%
    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: 35.3% · Moderate risk
    35.3%