← Back to Pull requests

[RayService][e2e] Fix misplaced max_ongoing_requests in incremental-upgrade serveConfigV2 #5107

Merged
justinyeh1995 merged 1 files (2 lines) on Aug 10, 2026 15:16 UTC
View on GitHub
justinyeh1995 justinyeh1995 commented on Aug 08, 2026 07:24 UTC
Author

<!-- 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?

The max_ongoing_requests used in highRPSServeConfigV2 is misplaced. https://github.com/ray-project/kuberay/blob/55ffdebb12a3d62b3a75b628219f01749fec3210/ray-operator/test/e2eincrementalupgrade/constant.go#L117

As Ray Serve Autoscaling points out, it is not part of the autoscaling config. Therefore, the current setup uses a default value of 5 instead of the proclaimed value 6.

https://github.com/ray-project/ray/blob/328e6b7646facad6dc92e37b8db2b478b2089a87/python/ray/serve/_private/constants.py#L283

Also, there is a 1/50 (2×25 runs) chances the RPS >= 400 check would timeout but comparing with the original setup it is not a regression, which also has a chances of failing 1 out of 50 times under 2 runs.

Related issue number

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

related to #4782

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

  • - [ ] Unit tests
    - [x] Manual tests

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

    Manual test instructions

    Manual test is recorded in https://github.com/ray-project/kuberay/pull/5098, the change does not introduce a regression.

    Diff: 2 lines (+1 / -1) across 1 files Reviewer: win5923 Review duration: 3352m
    All Vouch review confidence checks passed
    Residual risk 0.06 = Change Risk (0.33) × (1 − Review Confidence (0.82)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.33 · 2 lines diff across 1 files
    0.33
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.75 · 5 substantive comment(s)
    0.75
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    82%
    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.066
    Sensitive Paths sensitive_paths
    0.033
    Real PR Conversation Timeline
    13 items
    justinyeh1995 justinyeh1995 commented on Aug 08, 2026 07:27 UTC
    Author

    cc @win5923 @machichima to decide if this counts as fixing https://github.com/ray-project/kuberay/issues/4782. Thank you.

    win5923 win5923 commented on Aug 08, 2026 12:06 UTC
    Contributor

    Thanks! I think we can merge this for now, but should still follow up on the 1/50 failure and figure out what's causing it.
    I can also take a look later.

    win5923 win5923 approved these changes on Aug 08, 2026 12:06 UTC
    Approved Reviewer

    Approved these changes.

    machichima machichima commented on Aug 08, 2026 13:08 UTC
    Contributor

    Actually I'm thinking if we could decrease the required RPS from 400 to something like 350. In the PR adding this test, there's a few tuning on this value

    https://github.com/ray-project/kuberay/pull/4541/changes/ffd38b688e034d8ab138689ff7bc022529a07719

    justinyeh1995 justinyeh1995 commented on Aug 08, 2026 13:30 UTC
    Author

    Thanks! I think we can merge this for now, but should still follow up on the 1/50 failure and figure out what's causing it. I can also take a look later.

    Will do. Thanks.

    Actually I'm thinking if we could decrease the required RPS from 400 to something like 350. In the PR adding this test, there's a few tuning on this value

    > ffd38b6

    If there is no particular reason to use 400, I think we can turn it down to 350, and run the test again to verify the results. Would love to get more context from @JiangJiaWei1103 if you get the time. Thanks.

    justinyeh1995 justinyeh1995 commented on Aug 09, 2026 07:21 UTC
    Author

    Had an discussion with @machichima, who proposed looking into whether the locust container has undergone cpu throttling. The intuition here is that the client could possibly not able to send enough requests.

    JiangJiaWei1103 JiangJiaWei1103 commented on Aug 09, 2026 16:26 UTC
    Contributor

    Sorry for the delay. I'm currently busy with relocation. Will take a look tmr. Thx!

    JiangJiaWei1103 JiangJiaWei1103 approved these changes on Aug 10, 2026 02:28 UTC
    Approved Reviewer

    Thanks for working on this! I agree with merging this fix first and lowering the threshold to 350.

    In the long term, relying on hardcoded absolute RPS assertions on shared CI runners is flaky due to issues like noisy neighbors on shared host VMs, varying runner hardware specifications across runs, and local resource contention.

    We can discuss adopting a more robust benchmark strategy in the original issue (e.g., relative performance comparison against baseline).

    andrewsykim andrewsykim commented on code on Aug 10, 2026 15:16 UTC
    Code Review
    ray-operator/test/e2eincrementalupgrade/constant.go:1
    @@ -110,11 +110,11 @@ const highRPSServeConfigV2 serveConfigV2 = `applications:
           working_dir: "https://github.com/ray-project/serve_config_examples/archive/530e247ca195530b71b92d7e708048a1bdc02583.zip"
         deployments:
           - name: SimpleDeployment
    +        max_ongoing_requests: 6

    It's kind of weird that this doesn't cause an error or some condition in the RayService status. As a follow-up we should consider doing some validation agains the RayService configs and raising an error earlier.

    andrewsykim andrewsykim approved these changes on Aug 10, 2026 15:16 UTC
    Approved Reviewer

    Approved these changes.

    justinyeh1995 justinyeh1995 commented on Aug 10, 2026 16:55 UTC
    Author

    Actually I'm thinking if we could decrease the required RPS from 400 to something like 350. In the PR adding this test, there's a few tuning on this value

    > ffd38b6

    Two test runs in https://buildkite.com/ray-project/ray-ecosystem-ci-kuberay-ci/builds/16520/list?sid=019fec4c-eac3-426b-a92d-13a249b7345c&tab=artifacts and 1dbea77 result in 1/50 failure, which shows that 350 is not safer than the original 400.

    justinyeh1995 justinyeh1995 commented on code on Aug 10, 2026 17:01 UTC
    Code Review
    ray-operator/test/e2eincrementalupgrade/constant.go:1
    @@ -110,11 +110,11 @@ const highRPSServeConfigV2 serveConfigV2 = `applications:
           working_dir: "https://github.com/ray-project/serve_config_examples/archive/530e247ca195530b71b92d7e708048a1bdc02583.zip"
         deployments:
           - name: SimpleDeployment
    +        max_ongoing_requests: 6

    Agreed. I'll look into this first, then file a follow-up issue to track it. Thanks for the suggestion!

    Reviewers
    Assignees
    justinyeh1995 justinyeh1995
    Labels
    risk: low confidence: 82.4% 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: 32.7% (LOW) · Higher = larger blast radius
    32.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: 82.4% · Lower = rushed or shallow review
    82.4%
    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: 5.8% · Safe to merge
    5.8%