Repository navigation
Accelerate and strengthen asset tests [13/13] - #8156
AntoineRichard wants to merge 27 commits into
Conversation
|
| @pytest.fixture(scope="module") | ||
| def composite_scene() -> _Scene: | ||
| """Initialize every articulation island once for this module.""" | ||
| sim_cfg = newton_sim_cfg(_DEVICE, use_newton_actuators=False, newton_contacts=True) |
There was a problem hiding this comment.
CUDA writer coverage removed The composite scene runs only on CPU, but the joint-state and friction-writer tests it replaces ran on the available test devices. A CUDA-specific regression in partial writes, ordering, or property updates could now go undetected. Please retain focused CUDA coverage or parameterize the composite scene by device.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
…/asset-tests-p19-newton-task-space-controllers
…/asset-tests-p20-newton-actuators
… into antoiner/asset-tests-p23-newton-articulation-core # Conflicts: # source/isaaclab_newton/test/controllers/test_newton_task_space_controllers.py
…r/asset-tests-p23-newton-articulation-core # Conflicts: # source/isaaclab_newton/test/assets/test_newton_actuators_newton.py
… antoiner/asset-tests-p24-newton-articulation-regressions # Conflicts: # source/isaaclab_newton/test/assets/test_articulation.py
…/asset-tests-p19-newton-task-space-controllers
…nd keep its Isaac Sim CI routing
…/asset-tests-p20-newton-actuators
…ass oracle tolerances explicitly
… into antoiner/asset-tests-p23-newton-articulation-core
…r/asset-tests-p23-newton-articulation-core
…from the test mask, and keep Isaac Sim CI routing
… antoiner/asset-tests-p24-newton-articulation-regressions # Conflicts: # source/isaaclab_newton/test/assets/test_articulation.py
…e the gravity check through the public event
Description
Part 13/13 of the asset-test series (tracker: #7282). Scope: Newton articulation. Depends on #8151, #8153; this branch contains their commits until they merge.
What changed
source/isaaclab_newton/test/assets/test_articulation.pyis kitless: it starts withlaunch_test_simulation(SimulationCfg(physics=NewtonCfg())), carries theintegrationandkitlessmarkers, and uses no Nucleus assets.test_articulation_initialization_and_partial_state;test_articulation_joint_and_body_properties_round_trip, with the exact model-change notifications;test_articulation_drive_and_dynamics;test_floating_articulation_root_and_wrench_response, where net force and moment are checked against Δv = 2FΔt/M and Δω;GRAVITY_VEC_Wthroughrandomize_physics_scene_gravity;body_qfreshness beforecollide().test_invalid_articulation_cfg_fails_initialization[joint_pos|joint_vel|articulation_root_prim_path];test_newton_rebind_refreshes_ordered_state_and_preserves_lab_owned_actuator_gains: three implicit islands (floating identity, floating reordered, fixed reordered) and two explicit islands; sentinel state and model arrays are swapped in once, then deregistration of the post-step hook is checked;test_newton_ordered_state_publishes_inside_captured_cuda_graph[cuda]: one reordered-leg island on CUDA with graph capture; the user-order state shadows are clobbered after capture and must be republished by the replayed graph.Other files
assets/unit/test_articulation_accessors.py:develop's task-space allocation test and shape-count test, moved verbatim.assets/test_articulation_ordering_kernels.py: addspytestmark = pytest.mark.unit.Disposition (deleted from
test_articulation.py)developtest_write_joint_state_data_consistencytest_fragment_fix_root_link_uses_base_managertest_initialization_fixed_base_made_floating_basetest_write_joint_viscous_friction_to_simtest_loading_gains_from_usdtest_fixed_base_reports_body_velocitiestest_write_root_state_functions_data_consistencyset_coms_indexand COM/link/root writes)test_external_force_on_multiple_bodies,test_external_force_on_multiple_bodies_at_positionpack_body_wrench_to_worldturns it redtest_resetresetcall, wrench clearing)test_branching_fixture_physx_ordering_reorders_newton_to_bfstest_newton_ordered_body_state_cache_invalidates_on_same_timestamp_root_writetest_newton_ordered_state_publishes_in_step_and_refreshes_same_timestamp_writestest_newton_post_step_hook_publishes_ordered_state_and_deregisterstest_newton_ordered_state_caches_invalidate_on_rebind,test_newton_rebind_preserves_lab_owned_actuator_gainstest_newton_rebind_refreshes_ordered_state_and_preserves_lab_owned_actuator_gainstest_write_data_to_sim_writes_joint_targets_in_backend_ordertest_setting_joint_limits_from_cfgtest_out_of_range_default_joint_state,test_setting_articulation_root_prim_pathtest_invalid_articulation_cfg_fails_initialization; the valid root path is the floating islandtest_set_material_propertiestest_hand_with_tendons_initializes_and_targets_only_given_envs,test_fixed_tendon_properties_reach_solvertest_hand_with_tendons_targets_only_given_envs_and_properties_reach_solver(local tendon hand)env_idsturns it red; dropping the tendon-property notification turns it redtest_heterogeneous_scene_per_view_shapes,test_get_gravity_compensation_forces_matches_jacobian_gravitytest_get_gravity_compensation_forces_matches_jacobian_gravity[fixed/floating/floating_reordered]test_get_gravity_compensation_forces_static_equilibriumtest_body_root_stateset_coms_indextest_gravity_vec_w_tracks_model_gravityrandomize_physics_scene_gravitymodel.gravityturns it redtest_body_q_consistent_after_root_writetest_franka_osc_tracking_accuracy,test_franka_osc_gravity_compensation_precisionprepare_native_actuatorstests;test_newton_native_actuator_gain_write_maps_public_joint_subset_to_backendtest_num_shapes_per_body_follows_public_body_order,test_task_space_allocation_and_captureassets/unit/test_articulation_accessors.pyDevice scope and CI routing
test_devices(DeviceScope.CPU)selects, without CUDA-graph capture. Ondevelopabout twenty of these tests ran on CUDA with Newton's default graph capture.test_newton_ordered_state_publishes_inside_captured_cuda_graphruns ontest_devices(DeviceScope.CUDA)withuse_cuda_graph=True, so the ordered-state republish recorded into a captured graph stays covered.developmarked keep@pytest.mark.isaacsim_ci:test_gravity_vec_w_tracks_model_gravityand the two gravity-compensation tests here, and the Franka keepers in Accelerate and strengthen asset tests [10/13] #8151. The file stays selected by Isaac Sim's short CI (ISAACSIM_CI_SHORT).Timing
Warm Warp cache, repository orchestrator, one process per file, RTX 5090. The second of two runs is reported.
developassets/test_articulation.pyassets/unit/test_articulation_accessors.pyassets/test_articulation_ordering_kernels.pyType of change
Release backport
developChecklist
Docker and GPU tests run on demand. Push the commits you want tested, then
comment
run-cion the pull request.pre-commitchecks withuv run isaaclab --formatsource/<pkg>/changelog.d/for every touched package (do not editCHANGELOG.rstor bump package versions — CI handles that)CONTRIBUTORS.mdor my name already exists there