← Back to Pull requests

Greenfield: Implement direct controller, E2E fixtures, and fuzzer for CloudBuildConnection #12863

Closed
unknown closed this pull request without merging on Sep 24, 2026 20:44 UTC
View on GitHub
unknown unknown commented on Sep 09, 2026 22:40 UTC
Author

This Pull Request implements Phase 2 (direct controller, E2E fixtures, and fuzzer) for the CloudBuildConnection (CloudBuildConnection v1alpha1) resource.

Key Changes


1. Isolated Controller: Created under pkg/controller/direct/cloudbuild/cloudbuildconnection_controller.go using GAPIC REST RepositoryManagerRESTClient from cloud.google.com/go/cloudbuild/apiv2.
2. Identity & References: Implemented ParentString helper method on the identity struct, and resolved references like oauthTokenSecretVersionRef using common.NormalizeReferences.
3. E2E Golden Logs: Minimal and maximal E2E fixtures created under pkg/test/resourcefixture/testdata/basic/cloudbuild/v1alpha1/cloudbuildconnection/.
4. GCP Testing: record-gcp was run successfully against real GCP on project cnrm-barni-4 to capture traffic, object state, and live REST GET probe audit receipt (_audit_probe.log) for both the minimal and maximal fixtures.
5. KRM Fuzzer: Registered and configured under pkg/controller/direct/cloudbuild/cloudbuildconnection_fuzzer.go.
6. Field Presence Coverage: Updated the alpha-missingfields.txt exception file since CloudBuildConnection now has 100% field coverage under E2E tests.

Fixes #12850

``release-note
NONE
``


This PR was generated by the
overseer,overseer,greenfield,step/controller,overseer/review
* agent (powered by the gemini-3.6-flash model).

Diff: 177 lines (+132 / -45) across 2 files Reviewer: himanigulati01 Review duration: 21483m
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 177 lines diff across 2 files
0.35
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.310
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #12863"
general weight: 0.35
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: 35.4% (MEDIUM) · Higher = larger blast radius
35.4%
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% · Safe to merge
14%