Repository navigation
[Backport release/3.0.0] Cherry-pick selected develop PRs - #7226
kellyguo11 merged 12 commits into
Conversation
# Description Every CI test run installed the pytest harness (`pytest`, `pytest-mock`, `junitparser`, `flaky`, `coverage>=7.6.1`) from PyPI before it could start — once per test job in `run_tests.sh`, and again on each multi-GPU shard host in `multi_gpu_shard_runner.sh`. That puts a network round-trip on the critical path of every lane and makes runs fail on transient PyPI errors. This bakes those packages into the image instead: - **`docker-build/action.yml`** gains a step that layers the pytest deps onto the freshly built image (`FROM <image-tag>` on stdin, no build context). It only runs when a real build happened — cache hits already carry the layer. The layer installs as `root` and restores the image's own default `USER` afterwards, read back from `docker image inspect`. - **`_lib/compute-deps-hash/action.yml`** now hashes `.github/actions/docker-build/action.yml`, so editing the package list invalidates the local deps-cache tag and forces a rebuild instead of silently reusing an image without the new packages. - **`run_tests.sh`** and **`multi_gpu_shard_runner.sh`** drop their now-redundant installs. The `with-python-package-retries.sh` wrapper added in isaac-sim#7144 stays in place for the remaining `TEST_EXTRA_PIP_PACKAGES` / `TEST_EXTRA_UV_PACKAGES` installs, which are still per-run by design. The deps stay out of the tracked `Dockerfile.*` files on purpose: those build the local dev containers that ship via `publish-images.yaml`, and the pytest harness is a CI-only concern. Fixes # (issue) ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Validation - `uv run isaaclab -f` - `bash -n` on both modified shell scripts - YAML parse of both modified composite actions - `uv run --no-project python tools/changelog/cli.py check develop` ## Screenshots N/A — CI-only change. ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [ ] I have made corresponding changes to the documentation — N/A, no user-facing docs cover the CI image build - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works — N/A, CI itself is the test: every lane that pulls the image must still collect and run pytest - [ ] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package — N/A, no `source/<pkg>/` files are touched; `tools/changelog/cli.py check develop` passes - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there --------- Co-authored-by: Antoine RICHARD <[email protected]> (cherry picked from commit 470dce0)
…#7077) # Description Adds `ovphysx` physics presets to the Franka soft-body and cloth lift tasks, including their camera variants. The presets reuse the existing PhysX deformable schemas and materials, enable scene replication for OVPhysX, and leave the existing Isaac Sim PhysX and Newton presets unchanged. OVPhysX does not currently expose a runtime gravity setter, so its preset disables the variable-gravity event and gravity curriculum and trains at the configured fixed gravity. The Isaac Sim PhysX preset retains the existing gravity curriculum. Short RSL-RL smoke runs completed for 10 iterations with 16 environments and seed 42. To account for the gravity limitation, OVPhysX was compared with Isaac Sim PhysX using the same fixed gravity: | Task | OVPhysX mean reward | Isaac Sim PhysX mean reward | OVPhysX throughput | Isaac Sim PhysX throughput | |---|---:|---:|---:|---:| | Cloth lift | 3.90 | 4.08 | 259 steps/s | 324 steps/s | | Soft lift | 1.97 | 2.03 | 296 steps/s | 339 steps/s | All runs completed 3,840 steps without NaNs, out-of-bounds terminations, or joint-velocity-limit terminations. These short runs validate configuration and training stability, not converged training parity. No new external dependencies are required. ## Type of change - New feature (non-breaking change which adds functionality) ## Screenshots Not applicable. ## Validation - 10-iteration RSL-RL smoke runs for soft-body and cloth lift with OVPhysX and fixed-gravity Isaac Sim PhysX - Python syntax checks for the changed modules - `uv run python tools/changelog/cli.py check develop` - `uv run isaaclab -f` - `git diff --check` ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `uv run isaaclab -f` - [x] Documentation changes are not required for this preset-only change - [x] My changes generate no new warnings - [ ] I have added tests that prove my feature works - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package - [x] My name already exists in `CONTRIBUTORS.md` --------- Co-authored-by: Kelly Guo <[email protected]> (cherry picked from commit a9eb1ff)
## Summary - Raise clear errors when a camera requests unknown data types or outputs unsupported by its active renderer. - Raise instead of silently dropping Isaac RTX albedo and simple-shading outputs on Isaac Sim versions before 6.0. - Replace the warning regression test with error coverage for renderer-capability and typo paths. ## Breaking change Camera configurations that previously ran while silently omitting unsupported data types now fail at camera initialization. Remove unsupported types from `CameraCfg.data_types` or select a compatible renderer. ## Validation - `uv run --extra test --frozen isaaclab -f` - Runtime-free smoke test of `Camera._create_buffers` for both error paths. - The Isaac Sim integration test could not run in this environment because the full Isaac Sim runtime is not installed. ## In-tree configuration finding Cartpole simple-shading presets default to `newton_renderer`, which cannot produce those outputs and will now raise. Kuka Allegro already rejects the equivalent Newton combinations in its existing task-level compatibility validation. ## Out of scope Teaching task discovery about renderer capabilities remains follow-up work because renderer capability is currently per-instance. (cherry picked from commit 1499a77)
## Summary - Keep benchmark environment stepping within `torch.inference_mode()`, matching normal play and startup benchmarks. - Add a regression test that observes inference mode at the environment step boundary. ## Validation - `uv run isaaclab -f` - `uv run python tools/changelog/cli.py check develop` - `uv run --extra test python -m pytest source/isaaclab/test/benchmark/test_play_schema.py` ## Checklist - [x] Bug fix - [x] Tests added - [x] Changelog fragment added - [x] No documentation change required - [x] Contributor already listed (cherry picked from commit 0f36eae)
## Description Fixed benchmark play adapters to pass the resolved environment configuration when building `RunConfig`. This makes `run.config.physics_backend` report the backend that ran, matching training, runtime, and startup behavior. For `isaacsim_physx`, play results now report `physx`; the requested preset remains in `run.config.presets`. No additional dependencies are required. ## Type of change - [x] Bug fix (non-breaking change which fixes an issue) ## Screenshots Not applicable. ## Checklist - [x] I have read and understood the contribution guidelines - [x] I have run the pre-commit checks - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package - [x] My name already exists in `CONTRIBUTORS.md` (cherry picked from commit 233df5b)
# Description Adds video recording support to the RSL-RL, RL-Games, SKRL, and SB3 play benchmark adapters. Each adapter now: - accepts --video and --video_length - enables cameras and injects a Kit visualizer before simulation launch when needed - applies recorder configuration after launch and before environment creation - reports the effective recorder output directory in PlayBundle.video_path This preserves preconfigured recorder output directories and leaves no-video behavior unchanged. No dependencies or public APIs were added. ## Type of change - [x] New feature (non-breaking change which adds functionality) ## Screenshots Not applicable. ## Validation - uv run --extra test --frozen python -m pytest source/isaaclab/test/benchmark/test_api.py source/isaaclab_rl/test/test_apply_video_recording.py -q --disable-warnings — 37 passed - uv run --frozen isaaclab -f — passed - Changelog validation — passed - Real RSL-RL Cartpole play run produced an H.264 MP4; ffprobe reported 1854x1080 and 11 frames - Benchmark JSON reported the matching videos/play directory - A no-video run produced no media and reported video_path as null ## Checklist - [x] I have read and understood the contribution guidelines - [x] I have run the repository pre-commit checks - [x] My changes generate no new warnings - [x] I have added behavior-focused tests that prove the feature works - [x] I have added a changelog fragment under source/isaaclab/changelog.d/ - [x] My name already exists in CONTRIBUTORS.md (cherry picked from commit e997d9b)
## Summary - Reduce all GearAssembly task defaults to 1024 parallel environments. - Remove the UR10e-specific 2048 override so all Rizon and UR ROS/non-ROS variants share the safe default. - Add configuration coverage for all six variants and a changelog fragment. ## Motivation The recurrent PPO critic can OOM during an LSTM update at the previous task defaults despite successful simulation rollout. The new default avoids advertising a configuration that exceeds typical development GPU memory; users can still override it with `--num_envs`. ## Validation - `uv run --extra test --frozen python -m pytest source/isaaclab_tasks/test/contrib/test_gear_assembly_env_cfg.py -q` (6 passed) - `uv run --frozen isaaclab -f` - `uv run --extra test --frozen python tools/changelog/cli.py check develop` ## Checklist - [x] I have read and understood the contribution guidelines - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package - [x] My name already exists in `CONTRIBUTORS.md` (cherry picked from commit a439847)
## Summary - Remove unsupported newton_kamino simulation and decimation presets from the shared Open-Drawer cabinet configuration. - Remove the now-unused Kamino solver import. ## Testing - Focused preset suite: 25 passed. - Direct check confirms the shared simulation and decimation preset tables do not expose newton_kamino. - Ruff check passed for cabinet_env_cfg.py. (cherry picked from commit b0afb82)
# Description Routes scene-wide gravity randomization for the kitless OvPhysX backend through sealed OvStage control ordinals. The change adds a live `OvPhysxManager.set_gravity()` path, dispatches the shared gravity event to it, and re-enables the intended variable-gravity event and ADR curriculum for Kuka-Allegro tasks. Native OvStage path/query resources are released deterministically on success and failure. No new dependencies are required. Validation: - 19 focused lifecycle, task-preset, and combined dispatch/real-backend tests passed. - `Isaac-Lift-KukaAllegro` with `physics=ovphysx`, `presets=cube`, two CUDA environments completed initialization, first reset, and five steps with `variable_gravity` and `gravity_adr` active. - `uv run isaaclab -f` passed. - Warmed CPU microbenchmark, 30 calls: `update_from_ovstage` mean 1.56 ms / p95 1.75 ms; complete `set_gravity` mean 1.78 ms / p95 1.99 ms. ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Screenshots Not applicable. ## Checklist - [x] I have read and understood the contribution guidelines - [x] I have run the pre-commit checks with `uv run isaaclab -f` - [x] I updated API documentation and changelog fragments; no separate user guide change is required - [x] My changes generate no new warnings - [x] I have added tests that prove the fix is effective - [x] I have added a changelog fragment for every touched package - [x] My name already exists in `CONTRIBUTORS.md` (cherry picked from commit f41e4bd)
# Description Fixes OVPhysX shape-material bindings being treated as CUDA-resident during GPU simulation. Both optional material tensor types are now classified as CPU-native, material device wording is corrected, and CUDA material tests use host buffers. No additional dependencies or production randomization changes. Fixes # (none) ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Screenshots Not applicable. ## Checklist - [x] I have read and understood the contribution guidelines - [x] I have run the pre-commit checks with `uv run isaaclab -f` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package - [x] I have added my name to the CONTRIBUTORS.md or my name already exists there ## Validation - `uv run --no-sync python -m pytest source/isaaclab_ov/test/sim/test_ovphysx_view.py -q` (80 passed) - `uv run --no-sync isaaclab -f` - `uv run --no-sync python tools/changelog/cli.py check develop` (cherry picked from commit 57edec9)
## Summary Author `PreviewSurfaceCfg` and visual-material bindings with standard OpenUSD APIs so they work without an Omniverse Kit runtime. ## Root cause `spawn_preview_surface` used `CreateShaderPrimFromSdrCommand`, and `bind_visual_material` used `BindMaterialCommand`. Both functions returned early when Kit was unavailable. As a result, non-Kit renderers imported otherwise valid USD geometry without its configured material and rendered the default neutral gray. MPM demos compensated with visualizer-specific conditionals. ## Changes - define the material and `UsdPreviewSurface` shader directly with `UsdShade` - author typed shader inputs and connect the standard surface output - bind materials with `UsdShade.MaterialBindingAPI` - remove Kit checks and material-wrapper helpers from Snowball Smash, Granular, and Teapot Fill - use a portable translucent preview surface for Teapot Fill water instead of an MDL-only glass material `PreviewSurfaceCfg` and `bind_visual_material` retain their existing public signatures and prim layout. MDL material spawning remains Kit-only. ## Impact This is a core fix, not an MPM-specific material implementation. Existing `PreviewSurfaceCfg` consumers automatically gain standard USD material authoring in Kitless runs. The repository currently uses the configuration from 89 Python files, including 18 demos, 8 tutorials, and 10 task files. No other visualizer-specific preview-surface workarounds were found; only the three MPM demos required call-site cleanup. Examples that benefit without source changes include Newton ray-cast demos, visualization markers, UR10 Particle Push, lift and handover tasks, terrain materials, and asset-spawning tutorials. Existing Kit consumers keep the same configuration interface and `/Shader` prim layout. ## Validation - kitless in-memory `UsdPreviewSurface` authoring and binding smoke passed - 25 Newton USD material-import tests passed - Snowball Smash, Granular, and Teapot Fill completed Newton GL smoke runs from this branch in isolation - Snowball Smash visually rendered all six crates with distinct authored colors - UR10 Particle Push completed a two-environment Newton smoke run with its existing `PreviewSurfaceCfg` declarations - `git diff --check` passed - `uv.lock` and `pyproject.toml` are unchanged --------- Co-authored-by: Octi Zhang <[email protected]> Co-authored-by: Antoine RICHARD <[email protected]> (cherry picked from commit 3f87e32)
## Description Initialize the OVPhysX benchmark articulation mock with `_sim_cfg = None`, matching the PhysX and Newton benchmark factories and the real articulation constructor. This prevents actuator collection setup from raising `AttributeError` in the kit-less benchmark test. This failure was exposed by CI on isaac-sim#7168 but is unrelated to that PR's wheel extras changes. ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Validation - `uv run --extra test python -m pytest source/isaaclab/test/benchmark/test_asset_suite_runtime_semantics.py -k ovphysx_data_targets --maxfail=1 -q` (skipped locally because CUDA is unavailable; the failing CI job exercises this path) - `uv run python tools/changelog/cli.py check develop` - `uv run isaaclab -f` ## Checklist - [x] I have read and understood the contribution guidelines - [x] I have run the pre-commit checks - [x] My changes generate no new warnings - [x] The existing benchmark test covers the regression - [x] I have added a changelog fragment for every touched package - [x] My name is present in the repository revision history (cherry picked from commit 419714f)
Greptile SummaryThis backport combines CI image dependency changes with benchmark video/metadata improvements, stricter camera validation, renderer-independent USD material authoring, and several OvPhysX fixes and task presets. One newly added Franka soft OvPhysX preset incorrectly disables a gravity curriculum that this same PR makes available.
Confidence Score: 4/5The PR should not merge until the Franka soft OvPhysX preset retains its now-supported gravity event and curriculum. Selecting OvPhysX for the newly supported Franka deformable tasks resolves configuration branches that explicitly delete the task's gravity event and curriculum, so those runs no longer follow the intended training dynamics. Files Needing Attention: source/isaaclab_tasks/isaaclab_tasks/core/lift/config/franka_soft/franka_soft_env_cfg.py Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[Select Franka soft ovphysx preset] --> B[Resolve events preset]
B --> C[variable_gravity becomes None]
A --> D[Resolve curriculum preset]
D --> E[gravity curriculum becomes None]
C --> F[No OvPhysX gravity updates]
E --> F
F --> G[Training runs at fixed default gravity]
Reviews (1): Last reviewed commit: "[CI] Fix OVPhysX benchmark articulation ..." | Re-trigger Greptile |
| # OVPhysX does not expose a runtime gravity setter. | ||
| default_events = self.events | ||
| self.events = preset( | ||
| default=default_events, | ||
| physx=default_events, | ||
| isaacsim_physx=default_events, | ||
| newton_mjwarp_vbd_proxy=default_events, | ||
| ovphysx=default_events.replace(variable_gravity=None), | ||
| ) | ||
| if self.curriculum is not None: | ||
| default_curriculum = self.curriculum | ||
| self.curriculum = preset( | ||
| default=default_curriculum, | ||
| physx=default_curriculum, | ||
| isaacsim_physx=default_curriculum, | ||
| newton_mjwarp_vbd_proxy=default_curriculum, | ||
| ovphysx=default_curriculum.replace(gravity=None), |
There was a problem hiding this comment.
OvPhysX gravity curriculum is disabled
When a Franka soft or cloth task selects the new ovphysx preset, these branches remove both events.variable_gravity and curriculum.gravity, even though this PR adds OvPhysX runtime gravity updates. As a result, OvPhysX training silently runs without the intended gravity ramp from approximately zero to -9.81, changing its learning dynamics from the other supported backends.
Knowledge Base Used:
There was a problem hiding this comment.
Isaac Lab Review Bot
The backport is broadly coherent, but the OVPhysX gravity implementation leaves its public getter stale, the Franka soft/cloth presets still disable gravity randomization despite the new runtime setter, and removal of the cabinet Kamino preset lacks the required migration note.
- Design and architecture: The sealed OvStage gravity update is appropriately routed through the existing physics-manager and event boundaries. However, the Franka soft/cloth OVPhysX preset overrides still remove gravity event and curriculum terms based on the now-obsolete assumption that OVPhysX has no runtime gravity setter; those overrides should be removed.
- API: The camera renderer-output failure contract and play video arguments are documented. The cabinet task's
newton_kaminopreset selector was removed without a changelog entry identifying the replacement or migration path, contrary to the repository requirements for removed behavior. - Implementation:
OvPhysxManager.set_gravity()updates the running simulation but not the value returned byget_gravity(), which still reads the initial simulation configuration. Store and return the applied gravity so backend-agnostic consumers observe the active value.
Minor fixes needed. Posted 3 actionable findings inline.
Automated review; human maintainers own approval decisions.
| query, "physics:gravityMagnitude", ordinal, np.array([magnitude], dtype=np.float32), is_array=False | ||
| ).wait() | ||
| cls._ovstage.advance_write_floor(ordinal=ordinal).wait() | ||
| cls._physx.update_from_ovstage(ordinal, ordinal) |
There was a problem hiding this comment.
🟡 Warning · Implementation — set_gravity leaves get_gravity reporting stale value
get_gravity() (line 664) returns cls._sim.cfg.gravity, which set_gravity never updates. It is documented as the backend-agnostic mirror of PhysX's SimulationView.get_gravity(), so after randomize_physics_scene_gravity runs on OVPhysX every consumer reads the startup vector while the simulation uses the new one. Cache the applied vector in the manager and return it from get_gravity().
| self.sim.render_interval = self.decimation | ||
| self.sim.physics = PhysicsCfg() | ||
|
|
||
| # OVPhysX does not expose a runtime gravity setter. |
There was a problem hiding this comment.
🟡 Warning · Design Architecture — Stale OVPhysX gravity workaround contradicts new setter
The comment "OVPhysX does not expose a runtime gravity setter" is no longer accurate: this change adds OvPhysxManager.set_gravity, an ovphysx branch in randomize_physics_scene_gravity, and deletes the identical workaround from kuka_allegro_env_cfg.py (its test now asserts variable_gravity is not None). The new Franka soft/cloth OVPhysX presets therefore silently train without gravity randomization. Remove these preset overrides.
| from dataclasses import MISSING | ||
|
|
||
| from isaaclab_newton.physics import KaminoPADMMSolverCfg, MJWarpSolverCfg, NewtonCfg | ||
| from isaaclab_newton.physics import MJWarpSolverCfg, NewtonCfg |
There was a problem hiding this comment.
🔵 Suggestion · Api — Cabinet newton_kamino preset removed without note
Dropping the KaminoPADMMSolverCfg import also removes CabinetSimCfg.newton_kamino and CabinetDecimationCfg.newton_kamino, so presets=newton_kamino no longer resolves for the cabinet tasks. None of the added isaaclab_tasks changelog fragments mention this user-visible removal or the replacement preset, which the changelog rules require for removed behavior.
Summary
Cherry-picks the following merged PRs from
developontorelease/3.0.0, preserving each as an individual commit with-xprovenance:All cherry-picks and the final rebase onto the latest
release/3.0.0tip completed without conflicts.Validation
cherry picked fromfooters.git diff --check upstream/release/3.0.0..HEADrelease/3.0.0./tmppath and fails on Windows path normalization.uv run isaaclab -fpassed all hooks except the changelog hook's known release-branch baseline finding forsource/isaaclab/changelog.d/core-test-config-fixtures.skip; the targeted release-base changelog check passed.