dcb9e03fde3116f7c43787947ea6f0b37ddb3210,python/ray/tests/test_placement_group.py,,test_atomic_creation,#Any#,620

Before Change


        placement_group=pg,
        placement_group_bundle_index=num_nodes * bundle_per_node - 1).remote()
    // Destroy some nodes to fail placement group creation.
    nodes_to_kill = get_other_nodes(cluster, exclude_head=True)
    for node_to_kill in nodes_to_kill:
        cluster.remove_node(node_to_kill)

    // Wait on the placement group now. It should be unready
    // because normal actor takes resources that are required
    // for one of bundle creation.
    ready, unready = ray.wait([pg.ready()], timeout=0)
    assert len(ready) == 0
    assert len(unready) == 1

After Change


    def pg_removed():
        return ray.util.placement_group_table(pg)["state"] == "REMOVED"

    wait_for_condition(pg_removed)

    // Make sure check without pgs are all
    // scheduled properly because resources are cleaned up.
    assert all(ray.get(check_without_pg))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: ray-project/ray
Commit Name: dcb9e03fde3116f7c43787947ea6f0b37ddb3210
Time: 2020-09-08
Author: rkooo567@gmail.com
File Name: python/ray/tests/test_placement_group.py
Class Name:
Method Name: test_atomic_creation


Project Name: ray-project/ray
Commit Name: bed1be611e075a1e676c0bc66e26824e728108b2
Time: 2020-07-09
Author: chenh1024@gmail.com
File Name: python/ray/tests/test_dynres.py
Class Name:
Method Name: test_dynamic_res_creation_clientid_multiple


Project Name: ray-project/ray
Commit Name: 8223a33bff9b8d0e736571c9808b27dc2e2a74f5
Time: 2020-11-30
Author: rkooo567@gmail.com
File Name: python/ray/tests/test_tempfile.py
Class Name:
Method Name: test_raylet_tempfiles