Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[serve.llm] remove backoff dependency #50822

Merged
merged 6 commits into from
Feb 25, 2025

Conversation

kouroshHakha
Copy link
Contributor

Remove backoff from ray.serve.llm dependency.

Signed-off-by: Kourosh Hakhamaneshi <kourosh@anyscale.com>
Signed-off-by: Kourosh Hakhamaneshi <kourosh@anyscale.com>
@kouroshHakha kouroshHakha requested a review from a team as a code owner February 22, 2025 03:51
@kouroshHakha kouroshHakha added the go add ONLY when ready to merge, run all tests label Feb 22, 2025
Copy link
Contributor

@GeneDer GeneDer left a comment

Choose a reason for hiding this comment

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

Some small suggestions. Also would be nice to include a test. Let me know what you think

Signed-off-by: Kourosh Hakhamaneshi <kourosh@anyscale.com>
Signed-off-by: Kourosh Hakhamaneshi <kourosh@anyscale.com>
Signed-off-by: Kourosh Hakhamaneshi <kourosh@anyscale.com>
@kouroshHakha kouroshHakha requested a review from GeneDer February 25, 2025 06:40
Copy link
Contributor

@GeneDer GeneDer left a comment

Choose a reason for hiding this comment

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

Great tests 💯

def test_retry_success_first_try():
"""Test that the function works normally when no exceptions occur."""
# Create a mock function that doesn't raise exceptions
mock_fn = Mock(return_value="success")
Copy link
Contributor

Choose a reason for hiding this comment

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

Non-blocker: Would prefer not to just those mock/ patch when can. It's really simply to just write a function to do exactly return success and such 🙃

Signed-off-by: Kourosh Hakhamaneshi <kourosh@anyscale.com>
@kouroshHakha
Copy link
Contributor Author

Great tests 💯

It's me and my friend :)

@kouroshHakha kouroshHakha merged commit f94b53c into ray-project:master Feb 25, 2025
5 checks passed
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.

2 participants