← Back to Pull requests

[Fix] Unmask CI failures and fix ready-endpoints check in TestZeroDowntimeUpgradeAfterOperatorUpgrade #5320

Closed
unknown closed this pull request without merging on Sep 21, 2026 23:10 UTC
View on GitHub
unknown unknown commented on Sep 18, 2026 07:03 UTC
Author

<!-- Thank you for your contribution! -->

<!-- Please add a reviewer to the assignee section when you create a PR. If you don't have the access to it, we will shortly find a reviewer and assign them to your PR. -->

Why are these changes needed?

<!-- Please give a short summary of the change and the problem this solves. -->

This PR addresses two issues in the operator upgrade e2e test suite:

1. Fix masked test failures in CI script (test-e2e.yml)


Problem: The test command piped go test output without set -o pipefail, causing the pipeline to evaluate only the final command's exit code and allowing test failures to be reported as green.
Fix: Added set -o pipefail to ensure test execution failures properly fail the CI job.

2. Configure Ray Serve replica distribution for zero-downtime upgrade


Problem: In TestZeroDowntimeUpgradeAfterOperatorUpgrade, the RayService deployment used num_replicas: 1. Without distributing replicas across multiple worker nodes, the service could not maintain high availability or produce the expected ready endpoints across distinct nodes during rolling upgrades.
Fix: Updated the Serve application configuration to set num_replicas: 2 and max_replicas_per_node: 1. This forces Ray Serve to schedule replicas onto separate worker nodes, ensuring continuous endpoint availability and true zero downtime during upgrades.

Related issue number

<!-- For example: "Closes #1234" -->
Closes #5317

Labels

<!-- Please add the appropriate labels to this PR. -->

  • If this PR has user-facing changes that require documentation updates at release time, I have added the doc-updates-required label.

  • If this PR contains breaking changes, I have added the breaking-change label.
  • Checks

  • I've made sure the tests are passing.

  • Testing Strategy

  • - [x] Unit tests
    - [ ] Manual tests
    - [ ] This PR is not tested :(

    <!-- If you selected "Manual tests" above, please fill in the section below. Otherwise you can remove it. -->

    Manual test instructions

    <!--
    Provide step-by-step instructions so reviewers can verify your changes.
    Include any relevant screenshots or logs demonstrating the behavior.
    -->

    Diff: 284 lines (+213 / -71) across 3 files Reviewer: win5923 Review duration: 5286m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 284 lines diff across 3 files
    0.40
    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.338
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #5320"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 39.7% (MEDIUM) · Higher = larger blast radius
    39.7%
    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: 15.7% · Safe to merge
    15.7%