Greenfield: Implement direct controller, E2E fixtures, and fuzzer for DatabaseMigrationPrivateConnection #16818
All Vouch review confidence checks passed
Residual risk 0.39 = Change Risk (0.73) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.73 · 569 lines diff across 7 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.380
Shallow Review Depth
shallow_review_depth
0.344
Sensitive Paths
sensitive_paths
0.073
Real PR Conversation Timeline
1 comments
"Review active on #16818"
general
weight: 0.35
reviewbot-robot
This pull request was generated by an AI coding agent.
Implement Greenfield Phase 2 (direct controller, fuzzer, and E2E fixtures) for
DatabaseMigrationPrivateConnection(datamigration.cnrm.cloud.google.com/v1alpha1):- Generated direct controller using
controllerbuilder generate-controller --prepopulate-resource.- Used
cloud.google.com/go/clouddms/apiv1gRPC client options (NewDataMigrationClientwithm.config.GRPCClientOptions()).- Normalized references before resolving identity using
common.NormalizeGreenfieldReferences(ctx, reader, obj, nil).- Handled immutability via
common.CompareGreenfieldSpec: since GCP DMS API does not supportUpdatePrivateConnection, spec changes are rejected with structured reporting and no-op reconciles refresh status.- Waited on long-running operations in
CreateandDeleteusing standardop.Wait(ctx).- Handled
VpcPeeringConfigmapping inpkg/controller/direct/datamigration/databasemigrationprivateconnection_mapper.go, resolving theVpcNameRef computerefs.ComputeNetworkRefreference field and near-miss casing.- Added
--skip-proto PrivateConnection,VpcPeeringConfigtogenerate-mapperinapis/datamigration/generate.sh.- Configured and registered round-trip fuzzer in
pkg/controller/direct/datamigration/databasemigrationprivateconnection_fuzzer.generated.go.- Verified passing status with
FOCUS=DatabaseMigrationPrivateConnection go test ./pkg/fuzztesting/fuzztests -run TestFocusedMappers.- Updated
pkg/controller/resourceconfig/static_config.goviapython3 dev/tasks/generate_static_config.py.- Created
databasemigrationprivateconnection-minimalanddatabasemigrationprivateconnection-maximalfixtures covering all declared spec fields.- Recorded against real GCP project
cnrm-barni-4usingRECORD_AUDIT_PROBE=1 ./hack/record-gcp.- Generated authentic
_http.log,_audit_probe.log, and golden status files; all 7 validation checks in_http_report.mdpassed for both fixtures.- Documented service-specific implementation details in
.gemini/journals/datamigration.md.Fixes #16802
``
release-note
`NONE
release-note
NONE
Review Instructions
Use .gemini/skills/reviewgen-greenfield-mockgcp/SKILL.md to conduct the review.
KCC Greenfield MockGCP (Step 3/4) Auto-Review Results
Step: 3 (MockGCP)
Real-GCP Baseline Untouched: Pass
Mock Service & CRUD (Step 3) / Fix Quality (Step 4): Pass
Golden Log Alignment & CI Fixtures: Pass
Normalizer Scoping: Pass
Detailed Findings / Actions Required:
None. All checks passed.
<!-- factory:group-step issue=16825 -->