Greenfield: Implement direct controller, E2E fixtures, and fuzzer for DataMigrationMappingRule #16775
All Vouch review confidence checks passed
Residual risk 0.33 = Change Risk (0.75) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.75 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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.388
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.075
Real PR Conversation Timeline
1 comments
"Review active on #16775"
general
weight: 0.35
reviewbot-robot
This pull request was generated by an AI coding agent.
Summary of Changes
Implements Greenfield Step 2 direct controller verification, round-trip fuzzer, and real-GCP recorded E2E fixtures for
DataMigrationMappingRule(datamigration.cnrm.cloud.google.com/v1alpha1):1. Direct Controller & Fuzzer:
- Verified direct controller
pkg/controller/direct/datamigration/datamigrationmappingrule_controller.goadhering to canonical Greenfield standards.- Called
common.NormalizeGreenfieldReferencesinAdapterForObject.- Handled immutability in
Update(since Cloud DMS does not support anUpdateMappingRuleRPC, the controller rejects spec changes with diff reporting while supporting idempotent re-reconciliation without mutating GCP).- Verified round-trip fuzzer
pkg/controller/direct/datamigration/datamigrationmappingrule_fuzzer.generated.go, passingFOCUS=DataMigrationMappingRule go test -v ./pkg/fuzztesting/fuzztests -run TestFocusedMappers.2. E2E Fixtures & Real-GCP Recordings:
- Created minimal (
datamigrationmappingrule-minimal) and maximal (datamigrationmappingrule-maximal) fixtures withDatabaseMigrationConversionWorkspacedependencies.- Recorded golden HTTP logs (
_http.log) and audit probe logs (_audit_probe.log) against real GCP projectcnrm-barni-4, passing all 7/7 automated lifecycle validation checks.- Configured
state: ENABLEDon both fixtures to satisfy the GCP Cloud DMS API requirement (ResourceState cannot be unspecified).3. Exceptions & Journal:
- Updated
tests/apichecks/testdata/exceptions/alpha-missingfields.txt.- Documented service behavior and findings in
.gemini/journals/datamigration.md.Fixes #16762
``
release-noteDataMigrationMappingRuleNONE
release-note
NONE
release-note
New Alpha Resources (Direct Reconciler):
`Review Instructions
Use .gemini/skills/reviewgen-greenfield-release/SKILL.md to conduct the review.
KCC Greenfield Release Auto-Review Results
Only BLOCKED_KINDS
Changed: PassFixture Evidence (_http.log
,_audit_probe.log,_http_mock.log`): PassDetailed Findings / Actions Required:
None. All Greenfield Release criteria are satisfied.
<!-- factory:group-step issue=16830 -->