Greenfield: Implement direct controller, E2E fixtures, and fuzzer for DataformWorkflowConfig #14843
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 #14843"
general
weight: 0.35
sdowell
Implements Greenfield direct controller, unit tests, and real-GCP minimal/maximal E2E fixtures for
DataformWorkflowConfig(dataform.cnrm.cloud.google.com/v1alpha1).Summary of Changes
1. Direct Controller (
pkg/controller/direct/dataform/dataformworkflowconfig_controller.go):- Re-ordered
common.NormalizeGreenfieldReferencesbeforeobj.GetIdentityinAdapterForObjectso parent repository and invocation references are normalized before identity extraction.- Implemented
ExportwithParentRef,ResourceID, andu.SetName(a.id.WorkflowConfig)for full KRM object structural validity.- Kept
// +generated:controllermarker intact.2. IAMServiceAccountRef Greenfield Normalization (
pkg/controller/direct/common/greenfield.go):- Added support for resolving
refs.IAMServiceAccountRefreferences ingreenfieldRefNormalizerso that referencing anIAMServiceAccountbynameis resolved to its email address.3. E2E Test Fixtures & Real-GCP Golden Recording:
- Created minimal (
dataformworkflowconfig-minimal) and maximal (dataformworkflowconfig-maximal) fixtures underpkg/test/resourcefixture/testdata/basic/dataform/v1alpha1/dataformworkflowconfig/.- Tested full CRUD lifecycle against real GCP project
cnrm-barni-4usingRECORD_AUDIT_PROBE=1 hack/record-gcp:- Verified
serviceAccountRefunderinvocationConfigsatisfies GCP Dataform strict act-as checks.- Preserved immutable
invocationConfigacross updates while updating mutablecronSchedule,timeZone, anddisabled.- Generated authentic golden outputs (
_http.log,_http_report.mdwith 7/7 checks passed,_audit_probe.log,_generated_object_.golden.yaml, and_identities.yaml).- Removed all 14
DataformWorkflowConfigentries fromtests/apichecks/testdata/exceptions/alpha-missingfields.txt(100% field coverage).- Verified round-trip fuzzer passes with 200/200 runs (
FOCUS=DataformWorkflowConfig go test -v ./pkg/fuzztesting/fuzztests -run TestFocusedMappers).4. Service Journal:
- Documented service-specific learnings in
.gemini/journals/dataform.md.Audit-Log Proof (Mandatory)
Recorded on GCP project
cnrm-barni-4:Workflow Feedback
Service account must be set when strict act as checks are enabled), requiringinvocationConfig.serviceAccountRefon creation.400 Bad Request(Request update_mask contains immutable fields: [invocation_config]) when mutatinginvocationConfigin-place, whilecronSchedule,timeZone, anddisabledare mutable in-place.*refs.IAMServiceAccountRefingreenfieldRefNormalizerallows direct greenfield controllers to referenceIAMServiceAccountdependencies cleanly by name.Fixes #14832
``
release-note
``NONE
This pull request was generated by an AI coding agent.
<sub>🤖 Agent session</sub>
<!-- factory:task-output kind=Change task=recipe-fix-20261104-014500-92d8 -->