e4ca337e16bf4f0f749161932038665cefe7391e,python/ray/serve/tests/test_deploy.py,,test_redeploy_single_replica,#Any#Any#,184

Before Change


    def v2(*args):
        return f"2|{os.getpid()}"

    client.deploy(name, v1, version="1")
    ref1 = call.remote(block=False)
    val1, pid1 = ray.get(ref1)
    assert val1 == "1"

After Change



    // Redeploy new version. This should not go through until the old version
    // replica completely stops.
    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)

    // It may take some time for the handle change to propagate and requests
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

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_single_replica


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


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