Skip to content

Commit 945a452

Browse files
authored
[MISC] Flag more unit tests as 'slow'. (#2043)
1 parent cd516d8 commit 945a452

File tree

5 files changed

+14
-1
lines changed

5 files changed

+14
-1
lines changed

tests/test_deformable_physics.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ def test_muscle(n_envs, muscle_material, show_viewer):
104104
scene.step()
105105

106106

107+
@pytest.mark.slow # ~150s
107108
@pytest.mark.required
108109
@pytest.mark.skipif(platform.machine() == "aarch64", reason="Module 'tetgen' is crashing on Linux ARM.")
109110
@pytest.mark.parametrize("backend", [gs.gpu])

tests/test_gstaichi.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ def gs_static_child(args: list[str]):
145145
sys.exit(RET_SUCCESS)
146146

147147

148+
@pytest.mark.slow # ~170s
148149
@pytest.mark.required
149150
@pytest.mark.parametrize("backend", [None]) # Disable genesis initialization at worker level
150151
@pytest.mark.parametrize("test_backend", ["cpu", "gpu"])
@@ -234,6 +235,7 @@ def gs_num_envs_child(args: list[str]):
234235
sys.exit(RET_SUCCESS)
235236

236237

238+
@pytest.mark.slow # ~230s
237239
@pytest.mark.required
238240
@pytest.mark.parametrize("backend", [None]) # Disable genesis initialization at worker level
239241
@pytest.mark.parametrize("test_backend", ["cpu", "gpu"])
@@ -339,6 +341,7 @@ def change_scene(args: list[str]):
339341
sys.exit(RET_SUCCESS)
340342

341343

344+
@pytest.mark.slow # ~120s
342345
@pytest.mark.required
343346
@pytest.mark.parametrize("backend", [None]) # Disable genesis initialization at worker level
344347
# Note that, on GPU, PARA_LEVEL is changing between batched and non-batched simulation

tests/test_integration.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from .utils import assert_allclose, get_hf_dataset
77

88

9+
@pytest.mark.slow # ~120s
910
@pytest.mark.parametrize("mode", [0, 1, 2])
1011
@pytest.mark.parametrize("backend", [gs.cpu, gs.gpu])
1112
def test_pick_and_place(mode, show_viewer):
@@ -207,6 +208,7 @@ def test_hanging_rigid_cable(show_viewer, tol):
207208
assert_allclose(links_quat_err, 0.0, tol=1e-3)
208209

209210

211+
@pytest.mark.slow # ~150s
210212
@pytest.mark.parametrize("primitive_type", ["box", "sphere"])
211213
@pytest.mark.parametrize("precision", ["64"])
212214
def test_franka_panda_grasp_fem_entity(primitive_type, show_viewer):

tests/test_rigid_physics.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ def test_box_box_dynamics(gs_sim):
861861
assert_allclose(qpos[8], 0.6, atol=2e-3)
862862

863863

864-
@pytest.mark.slow
864+
@pytest.mark.slow # ~840s
865865
@pytest.mark.parametrize(
866866
"box_box_detection, gjk_collision, dynamics",
867867
[
@@ -1361,6 +1361,7 @@ def test_set_sol_params(n_envs, batched, tol):
13611361
assert_allclose(obj.sol_params, sol_params, tol=tol)
13621362

13631363

1364+
@pytest.mark.slow # ~160s
13641365
@pytest.mark.required
13651366
@pytest.mark.mujoco_compatibility(False)
13661367
@pytest.mark.parametrize("xml_path", ["xml/humanoid.xml"])
@@ -1457,6 +1458,7 @@ def test_multilink_inverse_kinematics(show_viewer):
14571458
assert_allclose(wrist.get_pos(envs_idx=(1,)), wrist_pos, tol=TOL)
14581459

14591460

1461+
@pytest.mark.slow # ~180s
14601462
@pytest.mark.required
14611463
@pytest.mark.parametrize("n_envs", [0, 2])
14621464
@pytest.mark.parametrize("backend", [gs.cpu, gs.gpu])
@@ -1929,6 +1931,7 @@ def test_mesh_repair(convexify, show_viewer, gjk_collision):
19291931
assert_allclose(qpos[:2], (0.3, 0.0), atol=2e-3)
19301932

19311933

1934+
@pytest.mark.slow # ~160s
19321935
@pytest.mark.required
19331936
@pytest.mark.parametrize("euler", [(90, 0, 90), (74, 15, 90)])
19341937
@pytest.mark.parametrize("gjk_collision", [True, False])
@@ -2547,6 +2550,7 @@ def test_gravity(show_viewer, tol):
25472550
)
25482551

25492552

2553+
@pytest.mark.slow # ~110s
25502554
@pytest.mark.required
25512555
@pytest.mark.parametrize("backend", [gs.cpu, gs.gpu])
25522556
def test_scene_saver_franka(tmp_path, show_viewer, tol):
@@ -2732,6 +2736,7 @@ def test_get_constraints_api(show_viewer, tol):
27322736
assert_allclose((link_a_[1], link_b_[1]), ((link_a,), (link_b,)), tol=0)
27332737

27342738

2739+
@pytest.mark.slow # ~100s
27352740
@pytest.mark.parametrize(
27362741
"n_envs, batched, backend",
27372742
[
@@ -3210,6 +3215,7 @@ def test_mesh_primitive_COM(show_viewer, tol):
32103215
assert_allclose(cube_COM[2], 0.25, atol=2e-3)
32113216

32123217

3218+
@pytest.mark.slow # ~110s
32133219
@pytest.mark.required
32143220
@pytest.mark.parametrize("scale", [0.1, 10.0])
32153221
@pytest.mark.parametrize("box_box_detection", [False, True])

tests/test_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ def kernel(
107107
return kernel
108108

109109

110+
@pytest.mark.slow # ~110s
110111
@pytest.mark.required
111112
@pytest.mark.parametrize("batch_shape", [(10, 40, 25), ()])
112113
def test_utils_geom_taichi_vs_tensor_consistency(batch_shape):

0 commit comments

Comments
 (0)