63594c537064d5cc47179169df6e6e6defa613d6,python/ray/serve/tests/test_backend_state.py,,test_deploy_new_config_new_version,#Any#,593

Before Change


    assert len(backend_state._replicas[tag].get()) == 2
    assert backend_state._replicas[tag].count(
        states=[ReplicaState.STOPPING]) == 1
    assert backend_state._replicas[tag].count(
        states=[ReplicaState.STARTING]) == 1
    assert backend_state._replicas[tag].get(
        states=[ReplicaState.STOPPING])[0].version == "1"
    assert backend_state._replicas[tag].get(
        states=[ReplicaState.STARTING])[0].version == "2"

After Change



    // Check that the new version is now running.
    backend_state.update()
    check_counts(
        backend_state,
        version="2",
        total=1,
        by_state=[(ReplicaState.RUNNING, 1)])

    backend_state.update()
    assert goal_manager.check_complete(update_goal)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: ray-project/ray
Commit Name: 63594c537064d5cc47179169df6e6e6defa613d6
Time: 2021-03-25
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/tests/test_backend_state.py
Class Name:
Method Name: test_deploy_new_config_new_version


Project Name: ray-project/ray
Commit Name: 63594c537064d5cc47179169df6e6e6defa613d6
Time: 2021-03-25
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/tests/test_backend_state.py
Class Name:
Method Name: test_redeploy_same_version


Project Name: ray-project/ray
Commit Name: 63594c537064d5cc47179169df6e6e6defa613d6
Time: 2021-03-25
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/tests/test_backend_state.py
Class Name:
Method Name: test_deploy_new_config_same_version