Skip to content

Merge pull request #619 from StanfordVL/disable-tests #21

Merge pull request #619 from StanfordVL/disable-tests

Merge pull request #619 from StanfordVL/disable-tests #21

GitHub Actions / Test Results failed Feb 22, 2024 in 1s

65 passed, 2 failed and 21 skipped

Tests failed

❌ results.xml

88 tests were completed in 1309s with 65 passed, 2 failed and 21 skipped.

Test suite Passed Failed Skipped Time
pytest 65✅ 2❌ 21⚪ 1309s

❌ pytest

tests.test_dump_load_states
  ✅ test_dump_load
  ✅ test_dump_load_serialized
tests.test_envs
  ✅ test_dummy_task
  ✅ test_point_reaching_task
  ✅ test_point_navigation_task
  ✅ test_behavior_task
  ✅ test_rs_int_full_load
tests.test_object_removal
  ✅ test_removal_and_readdition
  ✅ test_readdition
tests.test_object_states
  ✅ test_on_top
  ✅ test_inside
  ✅ test_under
  ✅ test_touching
  ✅ test_contact_bodies
  ✅ test_next_to
  ✅ test_overlaid
  ✅ test_pose
  ✅ 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
tests.test_primitives
  ⚪ test_navigate
  ⚪ test_grasp
  ⚪ test_place
  ⚪ test_open_prismatic
  ⚪ test_open_revolute
tests.test_robot_teleoperation
  ⚪ test_teleop
tests.test_symbolic_primitives.TestSymbolicPrimitives
  ⚪ test_in_hand_state
  ⚪ test_open
  ⚪ test_close
  ⚪ test_place_inside
  ⚪ test_place_ontop
  ⚪ test_toggle_on
  ⚪ test_soak_under
  ⚪ test_wipe
  ⚪ test_cut
  ✅ test_persistent_sticky_grasping
tests.test_systems
  ✅ test_system_clear
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
  ✅ test_mixing_rule_failure_nonrecipe_systems
  ✅ test_mixing_rule_success
  ✅ 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
	def wrapper():
  ✅ 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
	def wrapper():
  ⚪ test_single_toggleable_machine_rule_output_object_success

Annotations

Check failure on line 0 in results.xml

See this annotation in the file changed.

@github-actions github-actions / Test Results

pytest ► tests.test_transition_rules ► test_cooking_system_rule_success

Failed test found in:
  results.xml
Error:
  def wrapper():
Raw output
def wrapper():
        assert_test_scene()
        try:
>           func()

tests/utils.py:24: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    @og_test
    def test_cooking_system_rule_success():
        assert len(REGISTERED_RULES) > 0, "No rules registered!"
        stove = og.sim.scene.object_registry("name", "stove")
        stockpot = og.sim.scene.object_registry("name", "stockpot")
        chicken = og.sim.scene.object_registry("name", "chicken")
        chicken_broth = get_system("chicken_broth")
        diced_carrot = get_system("diced__carrot")
        diced_celery = get_system("diced__celery")
        salt = get_system("salt")
        rosemary = get_system("rosemary")
        chicken_soup = get_system("cooked__chicken_soup")
    
        deleted_objs = [chicken]
        deleted_objs_cfg = [retrieve_obj_cfg(obj) for obj in deleted_objs]
    
        place_obj_on_floor_plane(stove)
        og.sim.step()
    
        stockpot.set_position_orientation([-0.24, 0.11, 0.89], [0, 0, 0, 1])
        og.sim.step()
        assert stockpot.states[OnTop].get_value(stove)
    
        chicken.set_position_orientation([-0.24, 0.11, 0.88], [0, 0, 0, 1])
        chicken_broth.generate_particles(positions=[[-0.25, 0.13, 0.97]])
        diced_carrot.generate_particles(positions=[[-0.25, 0.17, 0.97]])
        diced_celery.generate_particles(positions=[[-0.15, 0.13, 0.97]])
        salt.generate_particles(positions=[[-0.15, 0.15, 0.97]])
        rosemary.generate_particles(positions=[[-0.15, 0.17, 0.97]])
        og.sim.step()
    
        assert chicken.states[Inside].get_value(stockpot)
        assert not chicken.states[Cooked].get_value()
        assert stockpot.states[Contains].get_value(chicken_broth)
        assert stockpot.states[Contains].get_value(diced_carrot)
        assert stockpot.states[Contains].get_value(diced_celery)
        assert stockpot.states[Contains].get_value(salt)
>       assert stockpot.states[Contains].get_value(rosemary)
E       AssertionError: assert False
E        +  where False = <bound method BaseObjectState.get_value of <omnigibson.object_states.contains.Contains object at 0x7f630d170b50>>(<class 'omnigibson.utils.python_utils.Rosemary'>)
E        +    where <bound method BaseObjectState.get_value of <omnigibson.object_states.contains.Contains object at 0x7f630d170b50>> = <omnigibson.object_states.contains.Contains object at 0x7f630d170b50>.get_value

tests/test_transition_rules.py:755: AssertionError

Check failure on line 0 in results.xml

See this annotation in the file changed.

@github-actions github-actions / Test Results

pytest ► tests.test_transition_rules ► test_single_toggleable_machine_rule_output_object_failure_unary_states

Failed test found in:
  results.xml
Error:
  def wrapper():
Raw output
def wrapper():
        assert_test_scene()
        try:
>           func()

tests/utils.py:24: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    @og_test
    def test_single_toggleable_machine_rule_output_object_failure_unary_states():
        assert len(REGISTERED_RULES) > 0, "No rules registered!"
        electric_mixer = og.sim.scene.object_registry("name", "electric_mixer")
        raw_egg = og.sim.scene.object_registry("name", "raw_egg")
        another_raw_egg = og.sim.scene.object_registry("name", "another_raw_egg")
        flour = get_system("flour")
        granulated_sugar = get_system("granulated_sugar")
        vanilla = get_system("vanilla")
        melted_butter = get_system("melted__butter")
        baking_powder = get_system("baking_powder")
        salt = get_system("salt")
        sludge = get_system("sludge")
    
        initial_doughs = og.sim.scene.object_registry("category", "sugar_cookie_dough", set()).copy()
    
        deleted_objs = [raw_egg, another_raw_egg]
        deleted_objs_cfg = [retrieve_obj_cfg(obj) for obj in deleted_objs]
    
        place_obj_on_floor_plane(electric_mixer)
        og.sim.step()
    
        another_raw_egg.set_position_orientation([-0.01, -0.14, 0.40], [0, 0, 0, 1])
        raw_egg.set_position_orientation([-0.01, -0.14, 0.37], [0, 0, 0, 1])
        flour.generate_particles(positions=np.array([[-0.01, -0.15, 0.33]]))
        granulated_sugar.generate_particles(positions=np.array([[0.01, -0.15, 0.33]]))
        vanilla.generate_particles(positions=np.array([[0.03, -0.15, 0.33]]))
        melted_butter.generate_particles(positions=np.array([[-0.01, -0.13, 0.33]]))
        baking_powder.generate_particles(positions=np.array([[0.01, -0.13, 0.33]]))
        salt.generate_particles(positions=np.array([[0.03, -0.13, 0.33]]))
        # This fails the recipe because the egg should not be cooked
        raw_egg.states[Cooked].set_value(True)
        og.sim.step()
    
        assert electric_mixer.states[Contains].get_value(flour)
        assert electric_mixer.states[Contains].get_value(granulated_sugar)
        assert electric_mixer.states[Contains].get_value(vanilla)
        assert electric_mixer.states[Contains].get_value(melted_butter)
        assert electric_mixer.states[Contains].get_value(baking_powder)
        assert electric_mixer.states[Contains].get_value(salt)
        assert raw_egg.states[Inside].get_value(electric_mixer)
        assert raw_egg.states[Cooked].get_value()
        assert another_raw_egg.states[Inside].get_value(electric_mixer)
        assert not another_raw_egg.states[Cooked].get_value()
    
        assert sludge.n_particles == 0
    
        electric_mixer.states[ToggledOn].set_value(True)
        og.sim.step()
    
        # Recipe should fail: no dough should be created, and sludge should be created.
        final_doughs = og.sim.scene.object_registry("category", "sugar_cookie_dough", set()).copy()
    
        # Recipe should execute successfully: new dough should be created, and the ingredients should be deleted
        assert len(final_doughs) == len(initial_doughs)
        for obj in deleted_objs:
            assert og.sim.scene.object_registry("name", obj.name) is None
        assert flour.n_particles == 0
        assert granulated_sugar.n_particles == 0
        assert vanilla.n_particles == 0
        assert melted_butter.n_particles == 0
        assert baking_powder.n_particles == 0
>       assert salt.n_particles == 0
E       AssertionError: assert 1 == 0
E        +  where 1 = <class 'omnigibson.utils.python_utils.Salt'>.n_particles

tests/test_transition_rules.py:1461: AssertionError