← Back to Pull requests

fix(maas): keep post-deploy alert state within MaaS #10179

Closed
unknown closed this pull request without merging on Oct 13, 2026 11:02 UTC
View on GitHub
unknown unknown commented on Oct 09, 2026 13:23 UTC
Author

Problem

PR #9992 introduces a runtime import from MaaS into the model-serving post-deploy alert store. To resolve it when building the MaaS Portal, the Core BFF image also copies model-serving, TrustyAI, and hardware-profiles into its UI builder. This adds avoidable build dependencies and conflicts with keeping the portal independent of model-serving.

Solution

Move the alert store and its existing tests into MaaS, where all production consumers live. Update the external-model form, publication banners, and internal deployment hook to use the MaaS-owned store, remove its model-serving export, and remove the three Dockerfile copies.

The store implementation and banner behavior remain unchanged. MaaS retains its existing model-serving dependency for dashboard integration.

Evidence

  • All 296 MaaS unit tests and 49 portal unit tests pass. Existing coverage protects alert state, dismissal, navigation, admin links, and publication triggers. The relocated store's 12 tests also pass after updating its import path.

  • Type checks pass for MaaS, model-serving, and the portal. Lint passes, with existing model-serving Modal warnings.

  • The portal production build and Core BFF UI container build pass. Portal source maps contain no code from model-serving, TrustyAI, or hardware-profiles.
  • Reproduce the checks with:

    pnpm --filter @odh-dashboard/maas --filter @odh-dashboard/model-serving --filter @odh-dashboard/maas-portal-distribution run type-check
    pnpm --filter @odh-dashboard/maas --filter @odh-dashboard/model-serving --filter @odh-dashboard/maas-portal-distribution run lint
    pnpm --dir packages/maas/frontend run test:unit --runInBand
    pnpm --filter @odh-dashboard/maas-portal-distribution run test-unit --runInBand
    pnpm --filter @odh-dashboard/maas-portal-distribution run build:prod
    podman build --target ui-builder --file distributions/core-bff/Dockerfile.workspace --tag odh-core-bff:maas-alert-ui-test .
    

    Request review criteria:

    Self checklist (all need to be checked):

  • The developer has manually tested the changes and verified that the changes work

  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).

  • The developer has added tests or explained why testing cannot be added (unit or cypress tests for related changes)

  • The code follows our [Best Practices](/docs/best-practices.md) (React coding standards, PatternFly usage, performance considerations)
  • If you have UI changes (not applicable: banner behavior and appearance are unchanged):

  • Included any necessary screenshots or gifs if it was a UI change.

  • Included tags to the UX team if it was a UI/UX change.
  • After the PR is posted & before it merges:

  • The developer has tested their solution on a cluster by using the image produced by the PR to main
  • <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    Chores
    Updated internal packaging and references for post-deployment alerts. The alert experience and related behavior remain unchanged.
    * The workspace build includes fewer packages. No changes to end-user functionality are expected.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 418 lines (+313 / -105) across 5 files Reviewer: lucferbux Review duration: 5619m
    All Vouch review confidence checks passed
    Residual risk 0.27 = Change Risk (0.68) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.68 · 418 lines diff across 5 files
    0.68
    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%
    60%
    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.361
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.068
    Real PR Conversation Timeline
    1 comments
    "Review active on #10179"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    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: 68.2% (HIGH) · Higher = larger blast radius
    68.2%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 26.9% · Safe to merge
    26.9%