[pre-commit.ci] pre-commit autoupdate #2299
140 passed, 7 failed and 4 skipped
✅ 11335128680-tests-test_controllers/test_controllers.xml
1 tests were completed in 863s with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 1✅ | 863s |
✅ pytest
tests.test_controllers
✅ test_arm_control
✅ 11335128680-tests-test_dump_load_states/test_dump_load_states.xml
4 tests were completed in 1436s with 4 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 4✅ | 1436s |
✅ pytest
tests.test_dump_load_states
✅ test_dump_load
✅ test_dump_load_serialized
✅ test_save_restore_partial
✅ test_save_restore_full
✅ 11335128680-tests-test_envs/test_envs.xml
5 tests were completed in 1781s with 5 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 5✅ | 1781s |
✅ pytest
tests.test_envs
✅ test_dummy_task
✅ test_point_reaching_task
✅ test_point_navigation_task
✅ test_behavior_task
✅ test_rs_int_full_load
✅ 11335128680-tests-test_multiple_envs/test_multiple_envs.xml
10 tests were completed in 611s with 8 passed, 0 failed and 2 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 8✅ | 2⚪ | 611s |
✅ pytest
tests.test_multiple_envs
✅ test_multi_scene_dump_load_states
✅ test_multi_scene_get_local_position
✅ test_multi_scene_set_local_position
✅ test_multi_scene_scene_prim
✅ test_multi_scene_particle_source
✅ test_multi_scene_position_orientation_relative_to_scene
✅ test_tiago_getter
✅ test_tiago_setter
⚪ test_behavior_getter
⚪ test_behavior_setter
✅ 11335128680-tests-test_object_removal/test_object_removal.xml
2 tests were completed in 1922s with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 2✅ | 1922s |
✅ pytest
tests.test_object_removal
✅ test_removal_and_readdition
✅ test_readdition
✅ 11335128680-tests-test_object_states/test_object_states.xml
33 tests were completed in 1487s with 33 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 33✅ | 1487s |
✅ pytest
tests.test_object_states
✅ test_on_top
✅ test_inside
✅ test_under
✅ test_touching
✅ test_contact_bodies
✅ test_next_to
✅ test_overlaid
✅ test_pose
✅ test_joint
✅ test_aabb
✅ test_adjacency
✅ test_temperature
✅ test_max_temperature
✅ test_heat_source_or_sink
✅ test_cooked
✅ test_burnt
✅ test_frozen
✅ test_heated
✅ test_on_fire
✅ test_toggled_on
✅ test_attached_to
✅ test_particle_source
✅ test_particle_sink
✅ test_particle_applier
✅ test_particle_remover
✅ test_saturated
✅ test_open
✅ test_folded_unfolded
✅ test_draped
✅ test_filled
✅ test_contains
✅ test_covered
✅ test_clear_sim
❌ 11335128680-tests-test_primitives/test_primitives.xml
1 tests were completed in 146ms with 0 passed, 1 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 1❌ | 146ms |
❌ pytest
❌ tests.test_primitives
ImportError while importing test module '/_work/default_slurm_9/OmniGibson/OmniGibson/omnigibson-src/tests/test_primitives.py'.
✅ 11335128680-tests-test_robot_states_flatcache/test_robot_states_flatcache.xml
3 tests were completed in 1557s with 3 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 3✅ | 1557s |
✅ pytest
tests.test_robot_states_flatcache
✅ test_camera_pose_flatcache_on
✅ test_robot_load_drive
✅ test_grasping_mode
❌ 11335128680-tests-test_robot_states_no_flatcache/test_robot_states_no_flatcache.xml
3 tests were completed in 446s with 2 passed, 1 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 2✅ | 1❌ | 446s |
❌ pytest
tests.test_robot_states_no_flatcache
✅ test_camera_pose_flatcache_off
✅ test_camera_semantic_segmentation
❌ test_object_in_FOV_of_robot
def test_object_in_FOV_of_robot():
❌ 11335128680-tests-test_robot_teleoperation/test_robot_teleoperation.xml
1 tests were completed in 147ms with 0 passed, 1 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 1❌ | 147ms |
❌ pytest
❌ tests.test_robot_teleoperation
ImportError while importing test module '/_work/default_slurm_12/OmniGibson/OmniGibson/omnigibson-src/tests/test_robot_teleoperation.py'.
✅ 11335128680-tests-test_scene_graph/test_scene_graph.xml
1 tests were completed in 444s with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 1✅ | 444s |
✅ pytest
tests.test_scene_graph
✅ test_scene_graph
✅ 11335128680-tests-test_sensors/test_sensors.xml
2 tests were completed in 1250s with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 2✅ | 1250s |
✅ pytest
tests.test_sensors
✅ test_segmentation_modalities
✅ test_bbox_modalities
✅ 11335128680-tests-test_symbolic_primitives/test_symbolic_primitives.xml
20 tests were completed in 2536s with 18 passed, 0 failed and 2 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 18✅ | 2⚪ | 2536s |
✅ pytest
tests.test_symbolic_primitives.TestSymbolicPrimitives
✅ test_in_hand_state[Fetch]
✅ test_open[Fetch]
✅ test_close[Fetch]
✅ test_place_inside[Fetch]
✅ test_place_ontop[Fetch]
✅ test_toggle_on[Fetch]
✅ test_soak_under[Fetch]
✅ test_wipe[Fetch]
⚪ test_cut[Fetch]
✅ test_persistent_sticky_grasping[Fetch]
✅ test_in_hand_state[Tiago]
✅ test_open[Tiago]
✅ test_close[Tiago]
✅ test_place_inside[Tiago]
✅ test_place_ontop[Tiago]
✅ test_toggle_on[Tiago]
✅ test_soak_under[Tiago]
✅ test_wipe[Tiago]
⚪ test_cut[Tiago]
✅ test_persistent_sticky_grasping[Tiago]
✅ 11335128680-tests-test_systems/test_systems.xml
1 tests were completed in 1857s with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 1✅ | 1857s |
✅ pytest
tests.test_systems
✅ test_system_clear
❌ 11335128680-tests-test_transform_utils/test_transform_utils.xml
34 tests were completed in 585ms with 33 passed, 1 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 33✅ | 1❌ | 585ms |
❌ pytest
tests.test_transform_utils.TestQuaternionOperations
✅ test_quat2mat_special_cases
✅ test_quat_multiply
✅ test_quat_conjugate
✅ test_quat_inverse
✅ test_quat_distance
tests.test_transform_utils.TestVectorOperations
✅ test_normalize
✅ test_dot_product
✅ test_l2_distance
tests.test_transform_utils.TestMatrixOperations
✅ test_rotation_matrix_properties
✅ test_rotation_matrix
✅ test_transformation_matrix
✅ test_transformation_matrix_no_point
✅ test_matrix_inverse
tests.test_transform_utils.TestCoordinateTransformations
✅ test_cartesian_to_polar
tests.test_transform_utils.TestPoseTransformations
✅ test_pose2mat_and_mat2pose
✅ test_pose_inv
tests.test_transform_utils.TestAxisAngleConversions
✅ test_axisangle2quat_and_quat2axisangle
✅ test_vecs2axisangle
✅ test_vecs2quat
tests.test_transform_utils.TestEulerAngleConversions
✅ test_euler2quat_and_quat2euler
✅ test_euler2mat_and_mat2euler
tests.test_transform_utils.TestQuaternionApplications
✅ test_quat_apply
❌ test_quat_slerp
self = <test_transform_utils.TestQuaternionApplications object at 0x7f8129912b00>
tests.test_transform_utils.TestTransformPoints
✅ test_transform_points_2d
✅ test_transform_points_3d
tests.test_transform_utils.TestMiscellaneousFunctions
✅ test_convert_quat
✅ test_random_quaternion
✅ test_random_axis_angle
✅ test_align_vector_sets
✅ test_copysign
✅ test_anorm
✅ test_check_quat_right_angle
✅ test_z_angle_from_quat
✅ test_integer_spiral_coordinates
❌ 11335128680-tests-test_transition_rules/test_transition_rules.xml
30 tests were completed in 1869s with 27 passed, 3 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 27✅ | 3❌ | 1869s |
❌ pytest
tests.test_transition_rules
✅ test_dryer_rule
✅ test_washer_rule
✅ test_slicing_rule
✅ test_dicing_rule_cooked
✅ test_dicing_rule_uncooked
✅ test_melting_rule
✅ test_cooking_physical_particle_rule_failure_recipe_systems
✅ test_cooking_physical_particle_rule_success
❌ test_mixing_rule_failure_recipe_systems
def wrapper():
❌ test_mixing_rule_failure_nonrecipe_systems
def wrapper():
❌ test_mixing_rule_success
def wrapper():
✅ test_cooking_system_rule_failure_recipe_systems
✅ test_cooking_system_rule_failure_nonrecipe_systems
✅ test_cooking_system_rule_failure_nonrecipe_objects
✅ test_cooking_system_rule_success
✅ test_cooking_object_rule_failure_wrong_container
✅ test_cooking_object_rule_failure_recipe_objects
✅ test_cooking_object_rule_failure_unary_states
✅ test_cooking_object_rule_failure_binary_system_states
✅ test_cooking_object_rule_failure_binary_object_states
✅ test_cooking_object_rule_failure_wrong_heat_source
✅ test_cooking_object_rule_success
✅ test_single_toggleable_machine_rule_output_system_failure_wrong_container
✅ test_single_toggleable_machine_rule_output_system_failure_recipe_systems
✅ test_single_toggleable_machine_rule_output_system_failure_recipe_objects
✅ test_single_toggleable_machine_rule_output_system_failure_nonrecipe_systems
✅ test_single_toggleable_machine_rule_output_system_failure_nonrecipe_objects
✅ test_single_toggleable_machine_rule_output_system_success
✅ test_single_toggleable_machine_rule_output_object_failure_unary_states
✅ test_single_toggleable_machine_rule_output_object_success
Annotations
Check failure on line 0 in 11335128680-tests-test_primitives/test_primitives.xml
github-actions / Test Results
pytest ► tests.test_primitives
Failed test found in:
11335128680-tests-test_primitives/test_primitives.xml
Error:
ImportError while importing test module '/_work/default_slurm_9/OmniGibson/OmniGibson/omnigibson-src/tests/test_primitives.py'.
Raw output
ImportError while importing test module '/_work/default_slurm_9/OmniGibson/OmniGibson/omnigibson-src/tests/test_primitives.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/micromamba/envs/omnigibson/lib/python3.10/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/test_primitives.py:7: in <module>
from pytest_rerunfailures import pytest
E ModuleNotFoundError: No module named 'pytest_rerunfailures'
github-actions / Test Results
pytest ► tests.test_robot_states_no_flatcache ► test_object_in_FOV_of_robot
Failed test found in:
11335128680-tests-test_robot_states_no_flatcache/test_robot_states_no_flatcache.xml
Error:
def test_object_in_FOV_of_robot():
Raw output
def test_object_in_FOV_of_robot():
env = setup_environment(False)
robot = env.robots[0]
env.reset()
assert robot.states[ObjectsInFOVOfRobot].get_value() == [robot]
sensors = [s for s in robot.sensors.values() if isinstance(s, VisionSensor)]
assert len(sensors) > 0
vision_sensor = sensors[0]
vision_sensor.set_position_orientation(position=[100, 150, 100])
og.sim.step()
og.sim.step()
> assert robot.states[ObjectsInFOVOfRobot].get_value() == [robot]
E assert [] == [<omnigibson....7f8083faf2e0>]
E
E Right contains one more item: <omnigibson.robots.fetch.Fetch object at 0x7f8083faf2e0>
E
E Full diff:
E + []
E - [
E - <omnigibson.robots.fetch.Fetch object at 0x7f8083faf2e0>,
E - ]
tests/test_robot_states_no_flatcache.py:43: AssertionError
Check failure on line 0 in 11335128680-tests-test_robot_teleoperation/test_robot_teleoperation.xml
github-actions / Test Results
pytest ► tests.test_robot_teleoperation
Failed test found in:
11335128680-tests-test_robot_teleoperation/test_robot_teleoperation.xml
Error:
ImportError while importing test module '/_work/default_slurm_12/OmniGibson/OmniGibson/omnigibson-src/tests/test_robot_teleoperation.py'.
Raw output
ImportError while importing test module '/_work/default_slurm_12/OmniGibson/OmniGibson/omnigibson-src/tests/test_robot_teleoperation.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/micromamba/envs/omnigibson/lib/python3.10/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/test_robot_teleoperation.py:3: in <module>
from telemoma.human_interface.teleop_core import TeleopAction
E ModuleNotFoundError: No module named 'telemoma'
Check failure on line 0 in 11335128680-tests-test_transform_utils/test_transform_utils.xml
github-actions / Test Results
pytest ► tests.test_transform_utils.TestQuaternionApplications ► test_quat_slerp
Failed test found in:
11335128680-tests-test_transform_utils/test_transform_utils.xml
Error:
self = <test_transform_utils.TestQuaternionApplications object at 0x7f8129912b00>
Raw output
self = <test_transform_utils.TestQuaternionApplications object at 0x7f8129912b00>
def test_quat_slerp(self):
for i in range(0, len(RANDOM_QUATERNIONS), 2):
q1, q2 = RANDOM_QUATERNIONS[i], RANDOM_QUATERNIONS[i + 1]
t = th.rand(1)
q_slerp = quat_slerp(q1, q2, t)
key_rots = R.from_quat(np.stack([q1.cpu().numpy(), q2.cpu().numpy()]))
key_times = [0, 1]
slerp = Slerp(key_times, key_rots)
> scipy_q_slerp = slerp([t]).as_quat()[0].astype(NumpyTypes.FLOAT32)
tests/test_transform_utils.py:361:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E ValueError: `times` must be at most 1-dimensional.
_rotation.pyx:2569: ValueError
Check failure on line 0 in 11335128680-tests-test_transition_rules/test_transition_rules.xml
github-actions / Test Results
pytest ► tests.test_transition_rules ► test_mixing_rule_failure_recipe_systems
Failed test found in:
11335128680-tests-test_transition_rules/test_transition_rules.xml
Error:
def wrapper():
Raw output
def wrapper():
assert_test_env()
try:
> func(env)
tests/utils.py:28:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
env = <omnigibson.envs.env_base.Environment object at 0x7f14c058f790>
@og_test
def test_mixing_rule_failure_recipe_systems(env):
assert len(REGISTERED_RULES) > 0, "No rules registered!"
bowl = env.scene.object_registry("name", "bowl")
tablespoon = env.scene.object_registry("name", "tablespoon")
water = env.scene.get_system("water")
granulated_sugar = env.scene.get_system("granulated_sugar")
lemon_juice = env.scene.get_system("lemon_juice")
lemonade = env.scene.get_system("lemonade")
sludge = env.scene.get_system("sludge")
place_obj_on_floor_plane(bowl)
og.sim.step()
water.generate_particles(positions=[[-0.02, 0.0, 0.02]])
granulated_sugar.generate_particles(positions=[[0.0, 0.0, 0.02]])
# This fails the recipe because lemon juice (recipe system) is not in the bowl
lemon_juice.generate_particles(positions=[[0.02, 0.0, 1.02]])
assert bowl.states[Contains].get_value(water)
assert bowl.states[Contains].get_value(granulated_sugar)
assert not bowl.states[Contains].get_value(lemon_juice)
assert lemonade.n_particles == 0
assert sludge.n_particles == 0
tablespoon.set_position_orientation(position=[0.04, 0.0, 0.08], orientation=[0, 0, 0, 1])
og.sim.step()
assert tablespoon.states[Touching].get_value(bowl)
# Recipe should fail: no milkshake should be created, and sludge should be created.
assert lemonade.n_particles == 0
assert sludge.n_particles > 0
> assert water.n_particles == 0
E assert 1 == 0
E + where 1 = <omnigibson.systems.micro_particle_system.FluidSystem object at 0x7f12a3f04280>.n_particles
tests/test_transition_rules.py:477: AssertionError
Check failure on line 0 in 11335128680-tests-test_transition_rules/test_transition_rules.xml
github-actions / Test Results
pytest ► tests.test_transition_rules ► test_mixing_rule_failure_nonrecipe_systems
Failed test found in:
11335128680-tests-test_transition_rules/test_transition_rules.xml
Error:
def wrapper():
Raw output
def wrapper():
assert_test_env()
try:
> func(env)
tests/utils.py:28:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
env = <omnigibson.envs.env_base.Environment object at 0x7f14c058f790>
@og_test
def test_mixing_rule_failure_nonrecipe_systems(env):
assert len(REGISTERED_RULES) > 0, "No rules registered!"
bowl = env.scene.object_registry("name", "bowl")
tablespoon = env.scene.object_registry("name", "tablespoon")
water = env.scene.get_system("water")
granulated_sugar = env.scene.get_system("granulated_sugar")
lemon_juice = env.scene.get_system("lemon_juice")
lemonade = env.scene.get_system("lemonade")
salt = env.scene.get_system("salt")
sludge = env.scene.get_system("sludge")
place_obj_on_floor_plane(bowl)
og.sim.step()
water.generate_particles(positions=[[-0.02, 0, 0.02]])
granulated_sugar.generate_particles(positions=[[0.0, 0.0, 0.02]])
lemon_juice.generate_particles(positions=[[0.02, 0.0, 0.02]])
# This fails the recipe because salt (nonrecipe system) is in the bowl
salt.generate_particles(positions=[[0.0, 0.02, 0.02]])
assert bowl.states[Contains].get_value(water)
assert bowl.states[Contains].get_value(granulated_sugar)
assert bowl.states[Contains].get_value(lemon_juice)
assert bowl.states[Contains].get_value(salt)
assert lemonade.n_particles == 0
> assert sludge.n_particles == 0
E assert 1 == 0
E + where 1 = <omnigibson.systems.micro_particle_system.FluidSystem object at 0x7f12acf80460>.n_particles
tests/test_transition_rules.py:511: AssertionError
Check failure on line 0 in 11335128680-tests-test_transition_rules/test_transition_rules.xml
github-actions / Test Results
pytest ► tests.test_transition_rules ► test_mixing_rule_success
Failed test found in:
11335128680-tests-test_transition_rules/test_transition_rules.xml
Error:
def wrapper():
Raw output
def wrapper():
assert_test_env()
try:
> func(env)
tests/utils.py:28:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
env = <omnigibson.envs.env_base.Environment object at 0x7f14c058f790>
@og_test
def test_mixing_rule_success(env):
assert len(REGISTERED_RULES) > 0, "No rules registered!"
bowl = env.scene.object_registry("name", "bowl")
tablespoon = env.scene.object_registry("name", "tablespoon")
water = env.scene.get_system("water")
granulated_sugar = env.scene.get_system("granulated_sugar")
lemon_juice = env.scene.get_system("lemon_juice")
lemonade = env.scene.get_system("lemonade")
place_obj_on_floor_plane(bowl)
og.sim.step()
water.generate_particles(positions=[[-0.02, 0.0, 0.02]])
granulated_sugar.generate_particles(positions=[[0.0, 0.0, 0.02]])
lemon_juice.generate_particles(positions=[[0.02, 0.0, 0.02]])
assert bowl.states[Contains].get_value(water)
assert bowl.states[Contains].get_value(granulated_sugar)
assert bowl.states[Contains].get_value(lemon_juice)
assert lemonade.n_particles == 0
tablespoon.set_position_orientation(position=[0.04, 0.0, 0.08], orientation=[0, 0, 0, 1])
og.sim.step()
> assert tablespoon.states[Touching].get_value(bowl)
E assert False
E + where False = get_value(<omnigibson.objects.dataset_object.DatasetObject object at 0x7f12ad37e890>)
E + where get_value = <omnigibson.object_states.touching.Touching object at 0x7f12ad7cb580>.get_value
tests/test_transition_rules.py:556: AssertionError