Skip to content

Fix: Activate per-test MuJoCo reset fixture in lab_sim integration test#604

Draft
JWhitleyWork wants to merge 1 commit intomainfrom
fix/mujoco-reset-between-objective-tests
Draft

Fix: Activate per-test MuJoCo reset fixture in lab_sim integration test#604
JWhitleyWork wants to merge 1 commit intomainfrom
fix/mujoco-reset-between-objective-tests

Conversation

@JWhitleyWork
Copy link
Copy Markdown
Member

Summary

  • Re-exports the new reset_simulation_before_test fixture from moveit_pro_test_utils so pytest activates the autouse MuJoCo reset for every parametrized objective in lab_sim/test/objectives_integration_test.py.

Why

The lab_sim objective integration test runs ~117 parametrized objectives against a single shared backend / MuJoCo instance, with no reset between tests. Objectives that move objects leave residual world state for subsequent tests, which became visible as failures after the MuJoCo 3.2.7 → 3.6.0 upgrade (e.g., Push Button With a Trajectory failing with "Force/Torque threshold exceeded" mid-trajectory because a prior test had left an object in the path). The reset service already exists in picknik_mujoco_ros; the upstream PR adds a fixture that calls it; this PR opts the lab_sim test in.

Dependency

This PR depends on PickNikRobotics/moveit_pro#18731 — reset_simulation_before_test only exists once that PR ships and a new picknikciuser/moveit-studio:main-humble image is published. CI here will fail until then.

Test plan

  • Pre-commit passes locally (verified)
  • After the upstream PR merges and the container image rebuilds, the Integration Test in Studio Container job on this branch goes green

🤖 Generated with Claude Code

The objective integration test runs ~117 parametrized objectives
against a single shared backend and MuJoCo simulation. Pick/place,
push-button, and similar objectives leave residual world state that
caused order-dependent failures after the MuJoCo 3.6.0 upgrade.

Re-export reset_simulation_before_test from moveit_pro_test_utils so
pytest activates the autouse reset fixture for this test module.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@JWhitleyWork JWhitleyWork force-pushed the fix/mujoco-reset-between-objective-tests branch from ee235bd to 403ed80 Compare April 29, 2026 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant