← Back to Pull requests

Greenfield: Implement direct controller, E2E fixtures, and fuzzer for OracleDatabaseAutonomousDatabase #13807

Open
unknown opened this pull request with 245 lines diff across 3 files
View on GitHub
unknown unknown commented on Oct 08, 2026 07:14 UTC
Author

Summary of Changes

This PR implements the Greenfield Direct Controller, E2E fixtures, and fuzzer for OracleDatabaseAutonomousDatabase:

1. Direct Controller:
- Implemented autonomousDatabaseAdapter managing reconciliation lifecycle (Find, Create, Update, Delete, Export) using the GAPIC REST client (oracledatabase.NewRESTClient) with m.config.RESTClientOptions().
- Used common.NormalizeReferences to resolve projectRef, networkRef, and adminPasswordSecretVersionRef.
- Structured diff calculation using common.DiffForTopLevelFields.
- Populated observed state and status conditions from live GCP API responses.
- Registered the model in pkg/controller/direct/register/register.go and pkg/controller/resourceconfig/static_config.go.

2. Fuzzer:
- Implemented oracleDatabaseAutonomousDatabaseFuzzer in pkg/controller/direct/oracledatabase/oracledatabaseautonomousdatabase_fuzzer.go using fuzztesting.KRMTypedFuzzer.
- Added oracledatabaseautonomousdatabase_fuzzer_test.go and verified 10,000 iterations roundtrip without errors.

3. E2E Test Fixtures & Real GCP Recording:
- Added minimal (oracledatabaseautonomousdatabase-minimal) and maximal (oracledatabaseautonomousdatabase-maximal) test fixtures covering required and optional fields.
- Tested against real GCP (hack/record-gcp) using GCP project cnrm-barni-4. Recorded golden objects, dependency requests, and verified API endpoint communication against live GCP (which validated authentication, parameters, and returned ENTITLEMENT_NOT_FOUND as the project billing account requires a commercial Marketplace order for Oracle Database@Google Cloud).
- Reduced missing fields in tests/apichecks/testdata/exceptions/alpha-missingfields.txt.

Fixes #13806

``release-note
NONE
``

This PR was generated by the overseer,greenfield,step/controller,overseer/review agent (powered by the gemini-3.7-flash model).

Diff: 245 lines (+183 / -62) across 3 files Reviewer: reviewbot-robot Review duration: 2100m
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.39) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 245 lines diff across 3 files
0.39
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
46%
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
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.329
Real PR Conversation Timeline
1 comments
"Review active on #13807"
general weight: 0.35
Assignees
Unassigned
Labels
risk: low confidence: 46.7% 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: 38.9% (MEDIUM) · Higher = larger blast radius
38.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: 46.7% · Lower = rushed or shallow review
46.7%
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: 20.7% · Safe to merge
20.7%