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

    // Add a node back to schedule placement group.
    for _ in range(len(nodes_to_kill)):
        nodes.append(
            cluster.add_node(num_cpus=bundle_cpu_size * bundle_per_node))
    // Wait on the placement group creation.
    ready, unready = ray.wait([pg.ready()])
    assert len(ready) == 1
    assert len(unready) == 0

After Change


        return True

    // Schedule tasks to fail initial placement group creation.
    tasks = [bothering_task.remote() for _ in range(2)]
    // Create an actor that will fail bundle scheduling.
    // It is important to use pack strategy to make test less flaky.
    pg = ray.util.placement_group(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: 1e39c403709b96d0bfa9c139e927441acc232426
Time: 2020-09-27
Author: rkooo567@gmail.com
File Name: python/ray/tests/test_placement_group.py
Class Name:
Method Name: test_capture_child_tasks


Project Name: ray-project/ray
Commit Name: 2298f6fb40cb6d348b5b48593c93cdd58ddd1f29
Time: 2020-04-23
Author: ekhliang@gmail.com
File Name: rllib/execution/replay_ops.py
Class Name: StoreToReplayBuffer
Method Name: __call__