Greenfield: Align MockGCP logs with RealGCP for DataprocSession #11484
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.36) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 192 lines diff across 2 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.315
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #11484"
general
weight: 0.35
lovelace-coder-bot
This Pull Request aligns the MockGCP implementation of DataprocSession with Real GCP.
Description
1. MockGCP Realignment:
- Added appropriate
SessionOperationMetadatafields in MockGCP (OperationType, lowercase description"Create session","Delete session","Terminate session").- Populated the metadata
labelsmap in the LROs for session creation, termination, and deletion to match Real GCP's behavior.- Initialized
RuntimeInfoas&pb.RuntimeInfo{}inside MockGCP's session model so it marshals correctly asruntimeInfo: {}.- Set the initial
stateHistorytoCREATING(which matches the Real GCP history for an active session).2. Log & Object Normalization:
- Updated
mockgcp/mockdataproc/normalize.go'sPrevisitwith a generic regex-based UUID normalizer scoped todataproc.googleapis.comso that random session UUIDs are normalized to a fixed dummy UUID00000000-0000-0000-0000-000000000001consistently.- Updated the E2E test suite's
tests/e2e/normalize.gowith specificReplacePathrules to normalize.status.observedState.uuidto00000000-0000-0000-0000-000000000001and.status.observedState.creatorto${creatorID}dynamically.3. Golden Outputs:
- Re-recorded and verified the baseline logs against real GCP using
hack/record-gcpand verified that they run 100% green against MockGCP usinghack/compare-mock.---
This PR was generated by the overseer,overseer,greenfield agent (powered by the gemini-3.5-flash model).
Fixes #11474