← Back to Pull requests

Greenfield: Align MockGCP logs with RealGCP for DataprocSession #11484

Closed
unknown closed this pull request without merging on Jul 15, 2026 03:02 UTC
View on GitHub
unknown unknown commented on Jul 08, 2026 01:16 UTC
Author

This Pull Request aligns the MockGCP implementation of DataprocSession with Real GCP.

Description


1. MockGCP Realignment:
- Added appropriate SessionOperationMetadata fields in MockGCP (OperationType, lowercase description "Create session", "Delete session", "Terminate session").
- Populated the metadata labels map in the LROs for session creation, termination, and deletion to match Real GCP's behavior.
- Initialized RuntimeInfo as &pb.RuntimeInfo{} inside MockGCP's session model so it marshals correctly as runtimeInfo: {}.
- Set the initial stateHistory to CREATING (which matches the Real GCP history for an active session).

2. Log & Object Normalization:
- Updated mockgcp/mockdataproc/normalize.go's Previsit with a generic regex-based UUID normalizer scoped to dataproc.googleapis.com so that random session UUIDs are normalized to a fixed dummy UUID 00000000-0000-0000-0000-000000000001 consistently.
- Updated the E2E test suite's tests/e2e/normalize.go with specific ReplacePath rules to normalize .status.observedState.uuid to 00000000-0000-0000-0000-000000000001 and .status.observedState.creator to ${creatorID} dynamically.

3. Golden Outputs:
- Re-recorded and verified the baseline logs against real GCP using hack/record-gcp and verified that they run 100% green against MockGCP using hack/compare-mock.

---
This PR was generated by the overseer,overseer,greenfield agent (powered by the gemini-3.5-flash model).

Fixes #11474

Diff: 192 lines (+144 / -48) across 2 files Reviewer: lovelace-coder-bot Review duration: 10186m
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
0.36
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%
56%
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.315
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #11484"
general weight: 0.35
Assignees
Unassigned
Labels
risk: low confidence: 56.8% 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.9% (MEDIUM) · Higher = larger blast radius
35.9%
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: 56.8% · Lower = rushed or shallow review
56.8%
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: 15.5% · Safe to merge
15.5%