e4ca337e16bf4f0f749161932038665cefe7391e,python/ray/serve/tests/test_regression.py,,test_np_in_composed_model,#Any#,13

Before Change


            result = await self.model.remote(data=data)
            return result

    serve.create_backend("sum_model", sum_model)
    serve.create_endpoint("sum_model", backend="sum_model")
    serve.create_backend("model", ComposedModel)
    serve.create_endpoint(
        "model", backend="model", route="/model", methods=["GET"])

    result = requests.get("http://127.0.0.1:8000/model")
    assert result.status_code == 200
    assert result.json() == 100.0

After Change


            ref = await self.model.remote(data=data)
            return await ref

    sum_model.deploy()
    ComposedModel.deploy()

    result = requests.get("http://127.0.0.1:8000/model")
    assert result.status_code == 200
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: ray-project/ray
Commit Name: e4ca337e16bf4f0f749161932038665cefe7391e
Time: 2021-04-08
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/tests/test_regression.py
Class Name:
Method Name: test_np_in_composed_model


Project Name: ray-project/ray
Commit Name: e4ca337e16bf4f0f749161932038665cefe7391e
Time: 2021-04-08
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/tests/test_regression.py
Class Name:
Method Name: test_np_in_composed_model


Project Name: ray-project/ray
Commit Name: e4ca337e16bf4f0f749161932038665cefe7391e
Time: 2021-04-08
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/tests/test_failure.py
Class Name:
Method Name: test_controller_failure


Project Name: ray-project/ray
Commit Name: e4ca337e16bf4f0f749161932038665cefe7391e
Time: 2021-04-08
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/tests/test_metrics.py
Class Name:
Method Name: test_serve_metrics