Repository navigation
Accelerate and strengthen asset tests [9/13] - #8149
AntoineRichard wants to merge 6 commits into
Conversation
Replace the disabled deformable suite with one scene of surface and volume meshes authored with their simulation topology, so no mesher or collision cooking runs. Check view and material discovery, partial nodal writes, the transformed default state, kinematic targets, the surface target rejection, and the CPU rejection.
Author the gripper and its two cubes locally instead of loading a Nucleus articulation, keep the CI skip for the real open/close seam, and check the command filtering and partial property payloads with a recording view so they are covered in CI.
|
| ) | ||
| root_pos_w = cube_object.data.root_pos_w.torch | ||
| assert torch.all(root_pos_w[1:, 2] < default_root_pos[1:, 2]) | ||
| def test_deformable_initialization(deformable_scene: _DeformableScene): |
There was a problem hiding this comment.
CUDA tests are deselected. The CI orchestrator runs this file with
-m isaacsim_ci, but only the CPU test has that marker. All three new CUDA tests are therefore deselected in CI, leaving the deformable coverage this PR intends to restore unrun.
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!
| volume.write_nodal_state_to_sim_index(nodal_state) | ||
| torch.testing.assert_close(volume.data.root_pos_w.torch, nodal_pos.mean(dim=1)) |
There was a problem hiding this comment.
Apply the body schemas where they are authored, type and document the authoring helper, and annotate the tests and the scene fixture.
Also drop a comment that narrated the simulation step.
The transformed default-state write is now checked against the PhysX nodal positions instead of the Lab buffer it just wrote. The CPU rejection matches its error message, and every test carries the Isaac Sim CI marker.
Description
Part 9/13 of the asset-test series (tracker: #7282). Scope: PhysX deformable and surface gripper. No dependencies.
What changed
Deformables. On
develop, the whole PhysX deformable suite is skipped because it intermittently aborted in CI, so none of its 12 tests run. This PR replaces it with one CUDA scene of locally authored meshes: a five-node, two-tetrahedron volume body and a four-node surface body, two environments each, each with its own bound material. Both meshes are authored with their simulation topology, so no mesher or collision cooking runs. The tests check:Five consecutive local runs passed. Because the old suite was disabled for CI aborts, please watch the first CI runs.
Surface gripper. The gripper and two stacked cubes are authored locally instead of loading the Nucleus
test_gripper.usdarticulation:SurfaceGripperViewinitialization can deadlock in CI.unit/test_physx_surface_gripper.py: runs in CI with a recording view. It checks that only open/close commands are submitted and that partial property updates keep the selector order.CI does not validate the locally authored gripper. The open/close test is skipped whenever
CI,GITHUB_ACTIONSorGITLAB_CIis set, as ondevelop, and the CUDA rejection raises on the first line of initialization, before any prim is resolved. The gripper authoring is exercised only by local runs of the open/close test, which pass on this branch.Disposition
The deformable tests never ran on
develop(all 12 skipped), so that part only adds coverage. They depended on cooked cuboid meshes; the new probes do not. The last column lists cases that were latent ondevelopand are not carried over.test_initialization(deformable, 4 material cases)test_deformable_initialization(volume)develop; not carried: a material shared by path (material_physx_view.count == 1), no material (material_physx_view is None), one-instance scenetest_initialization_surface_deformabletest_deformable_initialization(surface)develop; nonetest_initialization_on_device_cpudevelop; now matches the error messagetest_set_nodal_statetest_deformable_nodal_state_writesdevelop; mutation: full-environment nodal positions not written. Not carried: five write/reset()cycles with settling stepstest_set_nodal_state_with_applied_transform(4 cases)test_deformable_nodal_state_writes(transformed default state)develop; same mutation. Not carried: the 50-step settle afterreset()test_set_kinematic_targetstest_volume_kinematic_targets_hold_selected_nodesdevelop; not carried: fivereset()cycles; the hold runs 5 steps instead of 20test_close_and_open_commandtest_raise_error_if_not_cpuDevices and CI selection
develop.@pytest.mark.isaacsim_ci; both gripper tests keep it, as ondevelop.Timing
Warm Warp cache, repository orchestrator (
pytest tools), one process per file, second of two runs, RTX 5090.developis 09b1d54; this branch is 69e38f9.Times are the per-file process wall times the orchestrator reports, including interpreter and Kit startup.
developtest_deformable_object.pytest_surface_gripper.pyunit/test_physx_surface_gripper.py(new)The deformable file now runs 4 tests where
developran none; the surface-gripper file is 2.2 s faster without the Nucleus asset.Type 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