e4ca337e16bf4f0f749161932038665cefe7391e,python/ray/serve/tests/test_deploy.py,,test_redeploy_multiple_replicas,#Any#Any#,263

Before Change



        return responses, blocking

    client.deploy(name, v1, version="1", config={"num_replicas": 2})
    responses1, _ = make_nonblocking_calls({"1": 2})
    pids1 = responses1["1"]

    // ref2 will block a single replica until the signal is sent. Check that

After Change



        return responses, blocking

    v1 = serve.deployment(name=name, version="1", num_replicas=2)(v1)
    v1.deploy()
    responses1, _ = make_nonblocking_calls({"1": 2})
    pids1 = responses1["1"]

    // ref2 will block a single replica until the signal is sent. Check that
    // some requests are now blocking.
    ref2 = call.remote(block=True)
    responses2, blocking2 = make_nonblocking_calls(
        {
            "1": 1
        }, expect_blocking=True)
    assert list(responses2["1"])[0] in pids1

    // Redeploy new version. Since there is one replica blocking, only one new
    // replica should be started up.
    v2 = v1.options(backend_def=v2, version="2")
    goal_ref = v2.deploy(_blocking=False)
    assert not client._wait_for_goal(goal_ref, timeout=0.1)
    responses3, blocking3 = make_nonblocking_calls(
        {
            "1": 1
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

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_deploy.py
Class Name:
Method Name: test_redeploy_multiple_replicas


Project Name: ray-project/ray
Commit Name: 7a1f85ab38b9d8ceaa0575f9b3896eb149b81812
Time: 2021-03-23
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/tests/test_deploy.py
Class Name:
Method Name: test_config_change


Project Name: ray-project/ray
Commit Name: 7a1f85ab38b9d8ceaa0575f9b3896eb149b81812
Time: 2021-03-23
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/tests/test_deploy.py
Class Name:
Method Name: test_deploy