Skip to content

Commit

Permalink
Updated ray to 2.8.0 and removed detached flag to avoid deprecation e…
Browse files Browse the repository at this point in the history
…rror in future (kserve#3272)

* Update ray serve version
Update tests to remove detached=false parameter

Signed-off-by: Andrews Arokiam <[email protected]>

* Pinned `async-timeout` as direct dependency for python 3.11

Signed-off-by: Andrews Arokiam <[email protected]>

---------

Signed-off-by: Andrews Arokiam <[email protected]>
  • Loading branch information
andyi2it authored Dec 11, 2023
1 parent d2e3784 commit c1c5efe
Show file tree
Hide file tree
Showing 16 changed files with 10,960 additions and 11,855 deletions.
1,618 changes: 777 additions & 841 deletions python/aiffairness/poetry.lock

Large diffs are not rendered by default.

2,240 changes: 1,072 additions & 1,168 deletions python/alibiexplainer/poetry.lock

Large diffs are not rendered by default.

1,777 changes: 859 additions & 918 deletions python/artexplainer/poetry.lock

Large diffs are not rendered by default.

1,702 changes: 816 additions & 886 deletions python/custom_model/poetry.lock

Large diffs are not rendered by default.

1,708 changes: 819 additions & 889 deletions python/custom_transformer/poetry.lock

Large diffs are not rendered by default.

1,671 changes: 799 additions & 872 deletions python/kserve/poetry.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion python/kserve/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ kubernetes = ">=23.3.0"
python-dateutil = "^2.8.0"
numpy = "^1.23.5"
psutil = "^5.9.0"
ray = { version = "^2.7.0", extras = ["serve"] }
ray = { version = "^2.8.0", extras = ["serve"] }
async-timeout = { version = "^4.0.3", python = "==3.11.*" }
grpcio = "^1.49.1"
protobuf = "^3.19.0"
prometheus-client = "^0.13.1"
Expand Down
7 changes: 4 additions & 3 deletions python/kserve/test/test_dataplane.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ def dataplane_with_model(self, request): # pylint: disable=no-self-use
dataplane._model_registry.update(model)
yield dataplane
else: # request.param == "TEST_RAY_SERVE_MODEL"
serve.start(detached=False, http_options={"host": "0.0.0.0", "port": 9071})
DummyServeModel.deploy(self.MODEL_NAME)
handle = DummyServeModel.get_handle()
serve.start(http_options={"host": "0.0.0.0", "port": 9071})
# https://github.com/ray-project/ray/blob/releases/2.8.0/python/ray/serve/deployment.py#L256
application = DummyServeModel.bind("TestModel")
handle = serve.run(target=application)
handle.load.remote()
dataplane._model_registry.update_handle(self.MODEL_NAME, handle)
yield dataplane
Expand Down
8 changes: 4 additions & 4 deletions python/kserve/test/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,10 @@ def test_explain_v2(self, http_server_client):
class TestRayServer:
@pytest.fixture(scope="class")
def app(self): # pylint: disable=no-self-use
serve.start(detached=False, http_options={"host": "0.0.0.0", "port": 9071})

DummyServeModel.deploy("TestModel")
handle = DummyServeModel.get_handle()
serve.start(http_options={"host": "0.0.0.0", "port": 9071})
# https://github.com/ray-project/ray/blob/releases/2.8.0/python/ray/serve/deployment.py#L256
application = DummyServeModel.bind("TestModel")
handle = serve.run(target=application)
handle.load.remote()

server = ModelServer()
Expand Down
1,713 changes: 825 additions & 888 deletions python/lgbserver/poetry.lock

Large diffs are not rendered by default.

1,800 changes: 819 additions & 981 deletions python/paddleserver/poetry.lock

Large diffs are not rendered by default.

1,810 changes: 907 additions & 903 deletions python/pmmlserver/poetry.lock

Large diffs are not rendered by default.

1,707 changes: 822 additions & 885 deletions python/sklearnserver/poetry.lock

Large diffs are not rendered by default.

1,699 changes: 820 additions & 879 deletions python/test_resources/graph/error_404_isvc/poetry.lock

Large diffs are not rendered by default.

1,699 changes: 820 additions & 879 deletions python/test_resources/graph/success_200_isvc/poetry.lock

Large diffs are not rendered by default.

1,653 changes: 795 additions & 858 deletions python/xgbserver/poetry.lock

Large diffs are not rendered by default.

0 comments on commit c1c5efe

Please sign in to comment.