Unverified Commit a6818593 authored by Kelly Guo's avatar Kelly Guo Committed by GitHub

Fixes test timeouts (#579)

# Description

Some tests are now taking longer to run, especially the environment
ones. Increasing some timeouts here to allow tests to complete.

## Type of change

<!-- As you go through the list, delete the ones that are not
applicable. -->

- Bug fix (non-breaking change which fixes an issue)

## Checklist

- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [ ] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there

<!--
As you go through the checklist above, you can mark something as done by
putting an x character in it

For example,
- [x] I have done this task
- [ ] I have not done this task
-->

---------
Signed-off-by: 's avatarKelly Guo <kellyg@nvidia.com>
parent 553f1f5d
...@@ -256,6 +256,7 @@ def test_set_nodal_state(sim, num_cubes): ...@@ -256,6 +256,7 @@ def test_set_nodal_state(sim, num_cubes):
@pytest.mark.parametrize("num_cubes", [1, 2]) @pytest.mark.parametrize("num_cubes", [1, 2])
@pytest.mark.parametrize("randomize_pos", [True, False]) @pytest.mark.parametrize("randomize_pos", [True, False])
@pytest.mark.parametrize("randomize_rot", [True, False]) @pytest.mark.parametrize("randomize_rot", [True, False])
@pytest.mark.flaky(reruns=3)
def test_set_nodal_state_with_applied_transform(sim, num_cubes, randomize_pos, randomize_rot): def test_set_nodal_state_with_applied_transform(sim, num_cubes, randomize_pos, randomize_rot):
"""Test setting the state of the deformable object with applied transform.""" """Test setting the state of the deformable object with applied transform."""
carb_settings_iface = carb.settings.get_settings() carb_settings_iface = carb.settings.get_settings()
......
...@@ -232,6 +232,7 @@ def test_cube_contact_time(setup_simulation, disable_contact_processing): ...@@ -232,6 +232,7 @@ def test_cube_contact_time(setup_simulation, disable_contact_processing):
@pytest.mark.parametrize("disable_contact_processing", [True, False]) @pytest.mark.parametrize("disable_contact_processing", [True, False])
@pytest.mark.flaky(reruns=3)
def test_sphere_contact_time(setup_simulation, disable_contact_processing): def test_sphere_contact_time(setup_simulation, disable_contact_processing):
"""Checks contact sensor values for contact time and air time for a sphere collision primitive.""" """Checks contact sensor values for contact time and air time for a sphere collision primitive."""
# check for both contact processing enabled and disabled # check for both contact processing enabled and disabled
......
...@@ -394,6 +394,7 @@ def test_frame_offset_multi_tiled_camera(setup_camera): ...@@ -394,6 +394,7 @@ def test_frame_offset_multi_tiled_camera(setup_camera):
del camera del camera
@pytest.mark.flaky(reruns=3)
def test_frame_different_poses_multi_tiled_camera(setup_camera): def test_frame_different_poses_multi_tiled_camera(setup_camera):
"""Test multiple tiled cameras placed at different poses render different images.""" """Test multiple tiled cameras placed at different poses render different images."""
camera_cfg, sim, dt = setup_camera camera_cfg, sim, dt = setup_camera
......
...@@ -17,18 +17,20 @@ DEFAULT_TIMEOUT = 300 ...@@ -17,18 +17,20 @@ DEFAULT_TIMEOUT = 300
PER_TEST_TIMEOUTS = { PER_TEST_TIMEOUTS = {
"test_articulation.py": 500, "test_articulation.py": 500,
"test_rigid_object.py": 500, "test_rigid_object.py": 300,
"test_rigid_object_collection.py": 300,
"test_stage_in_memory.py": 500, "test_stage_in_memory.py": 500,
"test_environments.py": 2000, # This test runs through all the environments for 100 steps each "test_environments.py": 2000, # This test runs through all the environments for 100 steps each
"test_environments_with_stage_in_memory.py": ( "test_environments_with_stage_in_memory.py": (
1000 2000
), # Like the above, with stage in memory and with and without fabric cloning ), # Like the above, with stage in memory and with and without fabric cloning
"test_environment_determinism.py": 500, # This test runs through many the environments for 100 steps each "test_environment_determinism.py": 500, # This test runs through many the environments for 100 steps each
"test_factory_environments.py": 500, # This test runs through Factory environments for 100 steps each "test_factory_environments.py": 500, # This test runs through Factory environments for 100 steps each
"test_env_rendering_logic.py": 500, "test_multi_agent_environments": 1000, # This test runs through multi-agent environments for 100 steps each
"test_multi_tiled_camera": 500, "test_env_rendering_logic.py": 300,
"test_multi_tiled_camera": 300,
"test_generate_dataset.py": 500, # This test runs annotation for 10 demos and generation until one succeeds "test_generate_dataset.py": 500, # This test runs annotation for 10 demos and generation until one succeeds
"test_operational_space.py": 500, "test_operational_space.py": 300,
"test_environments_training.py": 5000, "test_environments_training.py": 5000,
"test_simulation_render_config.py": 500, "test_simulation_render_config.py": 500,
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment