Skip to content

Conversation

@abrarsheikh
Copy link
Contributor

num_waiter == 0 does not necessarily mean that the request has been completed.

Signed-off-by: abrar <abrar@anyscale.com>
@abrarsheikh abrarsheikh requested a review from a team as a code owner October 21, 2025 22:01
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request addresses a flaky test in the app-level autoscaling logic. The core issue, where num_waiter == 0 was used to check for request completion, is correctly identified and fixed by instead waiting on the ObjectRefs of the remote calls. This is a solid fix that should improve test stability.

I've found one issue where a necessary wait_for_condition call was accidentally removed, which could introduce a new race condition. I've left a comment with a suggestion to add it back.

The rest of the changes correctly apply the fix across several test cases. While there is some code repetition that could be refactored into a helper function in a follow-up, the current changes are focused and effectively solve the flakiness problem.

cursor[bot]

This comment was marked as outdated.

Signed-off-by: abrar <abrar@anyscale.com>
@abrarsheikh abrarsheikh added the go add ONLY when ready to merge, run all tests label Oct 21, 2025
@abrarsheikh abrarsheikh merged commit 4660221 into master Oct 22, 2025
7 checks passed
@abrarsheikh abrarsheikh deleted the SERVE-1256-abrar-flaky branch October 22, 2025 00:46
nrghosh pushed a commit to nrghosh/ray that referenced this pull request Oct 22, 2025
num_waiter == 0 does not necessarily mean that the request has been
completed.

---------

Signed-off-by: abrar <abrar@anyscale.com>
landscapepainter pushed a commit to landscapepainter/ray that referenced this pull request Nov 17, 2025
num_waiter == 0 does not necessarily mean that the request has been
completed.

---------

Signed-off-by: abrar <abrar@anyscale.com>
Aydin-ab pushed a commit to Aydin-ab/ray-aydin that referenced this pull request Nov 19, 2025
num_waiter == 0 does not necessarily mean that the request has been
completed.

---------

Signed-off-by: abrar <abrar@anyscale.com>
Signed-off-by: Aydin Abiar <aydin@anyscale.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants