Repository navigation
[cherry-pick][2.60.0][serve] Deflake test_deploy_app_3 (#67165) - #67442
Merged
Merged
Conversation
Cherry-pick of #67165 ([serve] Deflake test_deploy_app_3) onto `releases/2.60.0`. Master commit `b2ca380473`. Applied cleanly with `git cherry-pick -x`. Test-only change: `test_deploy_app_3.py`. Depends on #67439 (cherry-pick of #66492), which adds the `INGRESS_DRAIN_ENV` fixture constant this test imports. Stacked on that PR so this diff shows only #67165; merge #67439 first, then retarget this PR to `releases/2.60.0`. No other backport PR for this change targets `releases/2.60.0`. `pre-commit run --files` on the touched file passes. Relying on CI for the test runs. AI assistance was used to prepare this cherry-pick. Signed-off-by: john.taylor <[email protected]> Signed-off-by: qishengxhe <[email protected]> Co-authored-by: johntaylor-cell <[email protected]> Co-authored-by: Claude <[email protected]> (cherry picked from commit c4840ed)
Contributor
There was a problem hiding this comment.
Code Review
This pull request refactors test_deploy_app_3.py to use a new _drained_config helper, which injects INGRESS_DRAIN_ENV into the deployment's environment, replacing manual configuration of draining periods. It also updates some test assertions and timeouts to handle transient states more robustly. The feedback suggests using the ReplicaState enum directly instead of hardcoded string literals or .value attributes when checking replica states to improve type safety and maintainability.
sai-miduthuri
approved these changes
Oct 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cherry-pick of #67165 onto
releases/2.60.0.Original PR: #67165 (merged on master as b2ca380). This cherry-pick was first made as #67438. That PR was stacked on the #66492 cherry-pick branch and merged into it after #67439 had already landed, so it never reached
releases/2.60.0. This PR applies the same commit (c4840ed) directly ontoreleases/2.60.0. It replaces #67441, which was opened from the stacked branch and showed the already-landed #66492 changes alongside this one.Change
python/ray/serve/tests/test_deploy_app_3.pyonly, +59/-41, identical to #67165 and #67438. The cherry-pick applied cleanly.From #67165:
test_deploy_app_3flakes on the HAProxy, gRPC and flaky-tests shards. The fix:Testing
Test-only change, verified on master in #67165. This PR's premerge runs the Serve test shards against
releases/2.60.0.🤖 Generated with Claude Code