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] Create deployment.py and deployment_graph.py #23578

Merged
merged 7 commits into from
Apr 1, 2022

Conversation

shrekris-anyscale
Copy link
Contributor

Why are these changes needed?

api.py has accumulated classes and functions that aren't purely public APIs, causing circular dependencies. This change pulls Deployment and deployment graph-related features out of api.py and puts them in two new files: deployment.py and deployment_graph.py.

Related issue number

N/A

Checks

  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • This change relies on existing tests only.

@shrekris-anyscale shrekris-anyscale changed the title [WIP] [serve] Create deployment.py and deployment_graph.py [serve] Create deployment.py and deployment_graph.py Mar 30, 2022
Copy link
Contributor

@edoakes edoakes left a comment

Choose a reason for hiding this comment

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

I believe you'll need to update the import paths in the package ref

@shrekris-anyscale
Copy link
Contributor Author

I believe you'll need to update the import paths in the package ref

Good catch– I updated Deployment's import path.

@edoakes
Copy link
Contributor

edoakes commented Apr 1, 2022

Suspicious test failure, rerunning

@edoakes edoakes merged commit 071e1dd into ray-project:master Apr 1, 2022
edoakes pushed a commit that referenced this pull request May 10, 2022
…` functions (#24616)

There are delayed imports in the [`run()`](https://github.com/ray-project/ray/blob/master/python/ray/serve/api.py#L596-L597) and [`build()`](https://github.com/ray-project/ray/blob/master/python/ray/serve/api.py#L672) functions in [`api.py`](https://github.com/ray-project/ray/blob/master/python/ray/serve/api.py). These imports are no longer circular due to recent refactoring (see #23578 and #23759). This change promotes them to top-level imports.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants