← Back to Pull requests

feat: add the trace analytics prepopulation Job workflow #764

Open
jonburdo opened this pull request with 4147 lines diff across 28 files
View on GitHub
jonburdo jonburdo commented on Nov 19, 2026 20:35 UTC
Author

Adds an administrator-run Kubernetes Job sample and runbook for mlflow db prepopulate-trace-analytics, an opt-in integration test that proves rerun idempotency at the row level against a predecessor-schema deployment, and a CI workflow that exercises the full flow end to end. Prepopulation backfills denormalized trace analytics columns while the deployment keeps serving traffic; it never advances the Alembic revision, and the final operator-managed mlflow db upgrade remains required.

Implemented independently, then incorporated selected hardening, CI checks, and documentation from this PR:

https://github.com/opendatahub-io/mlflow-operator/pull/281

Assisted-by: OpenCode (GLM 5.3)

(cherry picked from commit 01fcc7c8e9f03691a598533a2087304feaaa13e9)

Summary

RHOAIENG-99736

cherry pick of https://github.com/opendatahub-io/mlflow-operator/pull/287 with the image value changed to be a registry.redhat.io image instead of quay/odh image

Testing

  • CI

  • Unit tests

  • Integration or e2e tests

  • Manual testing

  • Not run (explain why)
  • Testing details:

    Tested against a live rhoai 3.5.3 cluster (i.e. pre-upgrade scenario) with db seeded with over 1000 traces

    Diff: 4147 lines (+4131 / -16) across 28 files Reviewer: dbasunag Review duration: 15735m
    All Vouch review confidence checks passed
    Residual risk 0.32 = Change Risk (0.72) × (1 − Review Confidence (0.55)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.72 · 4147 lines diff across 28 files
    0.72
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 2 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    55%
    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.400
    Shallow Review Depth shallow_review_depth
    0.291
    Mass File Touch mass_file_touch
    0.080
    Real PR Conversation Timeline
    4 items
    coderabbitai[bot] coderabbitai[bot] commented on Nov 19, 2026 20:35 UTC
    Bot

    <!-- coderabbit-ai-generated:v1 -->

    <!-- This is an auto-generated comment: summarize by coderabbit.ai -->
    <!-- This is an auto-generated comment: skip review by coderabbit.ai -->

    [!IMPORTANT]

    ## Review skipped

    > Auto reviews are disabled on base/target branches other than the default branch.

    >

    > Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

    > <details>

    <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</strong></summary>

    <dl>

    <dd>

    <br>

    > - Source mode: Auto

    - Repository: Unavailable

    - Branch: Unavailable

    - File: No configuration file from this repository applied

    - Commit: Unavailable

    - Layers: Organization UI

    - Review profile: CHILL

    - Plan: Enterprise

    - Run ID: e00b5021-5009-456b-b548-4b0b287732e5

    > </dd>

    </dl>

    </details>

    > You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

    > Use the checkbox below for a quick retry:

    - [ ] <!-- {"checkboxId":"e9bb8d72-00e8-4f67-9cb2-caf3b22574fe"} --> Trigger review

    <!-- end of auto-generated comment: skip review by coderabbit.ai -->

    github-actions[bot] github-actions[bot] commented on Nov 19, 2026 20:35 UTC
    Bot

    <!-- post-codefreeze-gatekeeper -->

    Post-Codefreeze Gatekeeper — FAILED

    Target branch: rhoai-3.6
    Required Jira version: 3.6 GA RHOAI RELEASE

    ❌ The following issues were found:

  • RHOAIENG-99736:

  • - fixVersion does not include 3.6 GA RHOAI RELEASE (found: none)
    - Release Blocker is not set, expected Approved

    ---
    <sub>After resolving issues, rerun the <strong>Post-Codefreeze Gatekeeper</strong> workflow in GitHub Actions to revalidate the current PR description.</sub>

    dbasunag dbasunag approved these changes on Nov 19, 2026 20:43 UTC
    Approved Reviewer

    /lgtm

    Reviewers
    Assignees
    jonburdo jonburdo
    Labels
    risk: low confidence: 55.2% 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: 71.5% (HIGH) · Higher = larger blast radius
    71.5%
    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: 55.2% · Lower = rushed or shallow review
    55.2%
    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: 32% · Safe to merge
    32%