da296bf8c5f9a1264508ce12ac015a7d656ae516,python/ray/serve/tests/test_api.py,,test_not_killing_replicas,#Any#,205

Before Change


    serve.set_backend_config("bsimple:v1", bnew_config)
    new_replica_tag_list = ray.get(
        master_actor._list_replicas.remote("bsimple:v1"))
    new_all_tag_list = list(
        ray.get(master_actor.get_all_worker_handles.remote()).keys())

    // the old and new replica tag list should be identical
    // and should be subset of all_tag_list
    assert set(old_replica_tag_list) <= set(new_all_tag_list)

After Change


    serve.set_backend_config("bsimple:v1", bnew_config)
    new_replica_tag_list = ray.get(
        master_actor._list_replicas.remote("bsimple:v1"))
    new_all_tag_list = []
    for worker_dict in ray.get(
            master_actor.get_all_worker_handles.remote()).values():
        new_all_tag_list.extend(list(worker_dict.keys()))

    // the old and new replica tag list should be identical
    // and should be subset of all_tag_list
    assert set(old_replica_tag_list) <= set(new_all_tag_list)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: ray-project/ray
Commit Name: da296bf8c5f9a1264508ce12ac015a7d656ae516
Time: 2020-04-19
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/tests/test_api.py
Class Name:
Method Name: test_not_killing_replicas


Project Name: ray-project/ray
Commit Name: da296bf8c5f9a1264508ce12ac015a7d656ae516
Time: 2020-04-19
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/tests/test_api.py
Class Name:
Method Name: test_killing_replicas


Project Name: ray-project/ray
Commit Name: 34bae27ac7d3c39335a2b8c7d4cd4efba56aa398
Time: 2020-06-12
Author: ekhliang@gmail.com
File Name: rllib/execution/replay_buffer.py
Class Name: PrioritizedReplayBuffer
Method Name: sample