← Back to Pull requests

chore: release `VertexAITrainingPipeline` #16437

Open
unknown opened this pull request with 440 lines diff across 5 files
View on GitHub
unknown unknown commented on Nov 25, 2026 04:13 UTC
Author

This pull request was generated by an AI coding agent.

Release VertexAITrainingPipeline (aiplatform.cnrm.cloud.google.com/v1alpha1) by removing it from the BLOCKED_KINDS array in dev/tasks/build-release-bundle so its CRD ships in the release bundle.

All test fixtures for VertexAITrainingPipeline under pkg/test/resourcefixture/testdata/basic/aiplatform/v1alpha1/vertexaitrainingpipeline/ (vertexaitrainingpipeline-minimal and vertexaitrainingpipeline-maximal) have been verified and recorded against live GCP APIs and aligned with MockGCP.

Results

| Fixture | Real GCP | Mock | TestGoldenLogAlignment |
|---|---|---|---|
| vertexaitrainingpipeline-minimal | PASS | PASS | PASS |
| vertexaitrainingpipeline-maximal | PASS | PASS | PASS |

Environment & Recording Window


  • PDT Recording Window: 2026-11-24 19:23:39 PST – 2026-11-24 19:25:30 PST

  • Master Commit: 8650e98b1da7d65f172e05ae047715660c9b96e8

  • GCP Project: cnrm-barni-4

  • Static References: The fixtures have no static references. Dependencies and dynamic resources use ${projectId} and ${uniqueId}.
  • GCP Behavioral Alignments & Implementation Updates


  • Service-Generated Resource IDs: Vertex AI TrainingPipeline resources exclusively support service-generated numeric IDs. Updated apis/aiplatform/v1alpha1/vertexaitrainingpipeline_identity.go and pkg/controller/direct/aiplatform/vertexaitrainingpipeline_controller.go to follow the service-generated ID pattern (guarding Find(), leaving desiredpb.Name empty during Create(), and updating externalRef from latest.Name).

  • Regional API Endpoint: Configured option.WithEndpoint in trainingPipelineModel.client to use {location}-aiplatform.googleapis.com:443, as Vertex AI rejects regional requests sent to the global endpoint.

  • Asynchronous Cancellation on Deletion: Real GCP prevents deletion of training pipelines in RUNNING or PENDING states. Updated the controller's Delete method to initiate cancellation via CancelTrainingPipeline and wait for terminal state before calling DeleteTrainingPipeline. Implemented CancelTrainingPipeline in mockgcp/mockaiplatform.

  • Re-reconciliation & Server Defaulting: Aligned compareTrainingPipeline to ignore input-only model_id, adopt normalized training_task_inputs from the live resource, and align server-initialized predictSchemata on modelToUpload to prevent spurious diffs during re-reconciliation.

  • Audit Probe Behavior: Probing the resource via the default host (https://aiplatform.googleapis.com) returns 400 INVALID_ARGUMENT ("The provided location ID doesn't match the endpoint. The valid location ID is global."), whereas the controller's regional endpoint (https://us-central1-aiplatform.googleapis.com) succeeds with 200 OK. Probe evidence for vertexaitrainingpipeline-maximal captures the StorageBucket dependency; probe evidence for VertexAITrainingPipeline itself was omitted due to this regional host restriction.
  • Known Limitations


  • VertexAITrainingPipeline is immutable once created. Any modifications to spec fields in Kubernetes will be rejected as unsupported updates.
  • Fixes #16397

    ``release-note
    New Alpha Resources (Direct Reconciler):
    VertexAITrainingPipeline
    ``

    <sub>🤖 Agent session</sub>

    <!-- factory:task-output kind=Change task=recipe-fix-20261124-203420-13cc -->

    Diff: 440 lines (+330 / -110) across 5 files Reviewer: seans3 Review duration: 7975m
    All Vouch review confidence checks passed
    Residual risk 0.26 = Change Risk (0.45) × (1 − Review Confidence (0.43)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.45 · 440 lines diff across 5 files
    0.45
    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%
    42%
    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.364
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #16437"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 43.0% 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: 45.3% (MEDIUM) · Higher = larger blast radius
    45.3%
    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: 43.0% · Lower = rushed or shallow review
    43.0%
    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: 25.8% · Safe to merge
    25.8%