Repository navigation
[Workflow] Use Newton 1.5 release branch - #7709
kellyguo11 merged 2 commits into
Conversation
There was a problem hiding this comment.
Isaac Lab Review Bot
The default native-actuator transition is documented and remains reversible, but two release-readiness issues remain: non-lock installation paths resolve Newton from a mutable branch, and the changelog does not clearly mark the default change as breaking for unsupported or custom explicit actuator configurations.
- Design and architecture: The actuator change preserves the existing opt-out and shared host-adapter architecture. However, the wheel-builder and install-CI overrides use the mutable
release-1.5branch whileuv.lockrecords commitcf5378db, allowing wheel contents to drift independently of the reviewed lockfile. These overrides should use the resolved commit. - API:
SimulationCfg.use_newton_actuatorsremains available with updated documentation and aFalsemigration path. Because changing its default makes unsupported explicit actuator configurations fail during native authoring and changes actuator-object behavior for supported configurations, the changelog should explicitly mark the change as breaking and describe that failure mode. - Implementation: The dependency metadata and tests consistently reference the release branch, but that consistency does not provide reproducibility outside the lock-backed environment. A later branch update can silently alter wheel builds and invalidate the hard-coded
newton == 1.5.2install assertion; commit-pinning the non-lock overrides would align them withuv.lockand make the existing comment accurate.
Minor fixes needed. Posted 2 actionable findings inline.
Automated review; human maintainers own approval decisions.
| @@ -1,7 +1,7 @@ | |||
| numpy>=2 | |||
| mujoco~=3.11.0 | |||
| mujoco-warp~=3.11.0 | |||
| newton[sim]==1.5.1 | |||
| newton[sim] @ git+https://github.com/newton-physics/[email protected] | |||
There was a problem hiding this comment.
🟡 Warning · Implementation — Wheel and install CI track mutable Newton branch
uv.lock records commit cf5378db, but this override file and the identical install_ci/uv_pip/uv-overrides.txt are not lock-backed, so each wheel build re-resolves the release-1.5 head. The install smoke test now asserts m.version('newton') == '1.5.2', which breaks on the next upstream push and silently changes the shipped Newton build. Pin these overrides to the resolved commit; the pyproject.toml comment claiming an "exact git commit" is also inaccurate for a branch ref.
|
|
||
| * Changed the Newton dependency from the ``newton[sim]==1.5.1`` PyPI release to the | ||
| ``release-1.5`` Git branch to include the latest actuator fixes. | ||
| * Changed :attr:`~isaaclab.sim.SimulationCfg.use_newton_actuators` to ``True`` by default so |
There was a problem hiding this comment.
🔵 Suggestion · Api — Changelog omits breaking effect on unsupported configs
Per the updated actuator docs, with use_newton_actuators=True every explicit actuator config must be supported and an unsupported one raises before native authoring. Flipping the default therefore makes existing scenes with unsupported or custom explicit actuator configs fail at startup, and robot.actuators[name] now returns Newton objects. Mark this entry as breaking and state that failure mode alongside the existing use_newton_actuators=False migration note.
|
| @@ -84,8 +84,8 @@ class SimulationCfg: | |||
| with the GUI enabled. This is to allow certain GUI features to work properly. | |||
| """ | |||
|
|
|||
| use_newton_actuators: bool = False | |||
| """Use native actuators for supported explicit actuator configurations. | |||
| use_newton_actuators: bool = True | |||
There was a problem hiding this comment.
Default breaks multirotor environments
Changing use_newton_actuators to default to True makes the shipped ARL multirotor environments fail during asset spawning. These environments inherit the default and configure a ThrusterCfg, but Newton-native authoring does not support that custom explicit actuator. Validation therefore raises ValueError before the environment initializes. Please migrate this actuator configuration or explicitly keep the legacy path for the affected environments before enabling this default globally.
Knowledge Base Used: Newton backend
| @@ -401,7 +402,7 @@ override-dependencies = [ | |||
| "numpy>=2", | |||
| "mujoco~=3.11.0", | |||
| "mujoco-warp~=3.11.0", | |||
| "newton[sim]==1.5.1", | |||
| "newton[sim] @ git+https://github.com/newton-physics/[email protected]", | |||
There was a problem hiding this comment.
The Newton override targets the mutable release-1.5 branch, including in the standalone override files used by wheel validation and install CI. These fresh resolutions do not consume uv.lock, so after the branch advances they can install code other than the reviewed cf5378db commit. This makes builds and validation depend on when they run. Pin these override paths to the resolved commit, or generate a commit-pinned override alongside the lock.
a0bc1c7 to
2a2d59e
Compare
|
run-ci |
## Description This changes `SimulationCfg.use_newton_actuators` to `True` by default on `develop`. Supported explicit actuator models now use the native Newton actuator path by default: Newton executes them in the solver, while PhysX and OVPhysX use the shared host adapter. Users can set `use_newton_actuators=False` to restore the deprecated Isaac Lab actuator execution path. The configuration documentation, actuator guide, focused default test, and changelog fragment are updated together. This is the actuator-side change split from #7709. That release PR now contains only the Newton `release-1.5` dependency update. ## Type of change - Behavior change (native actuator execution is now the default) - Documentation update ## Release backport - [ ] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## Screenshots Not applicable. ## Validation - `uv run --extra test python -m pytest source/isaaclab/test/actuators/test_newton_adapter.py` (10 passed) - `uv sync --extra dev && PATH="$PWD/.venv/bin:$PATH" make -C docs current-docs` (warning-free) - `uv run isaaclab -f` ## 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 a test that proves the new default and explicit opt-out - [x] I have added a changelog fragment under `source/isaaclab/changelog.d/` - [x] My name already exists in `CONTRIBUTORS.md` --------- Co-authored-by: Antoine Richard <[email protected]>
Description
This updates
release/3.0.0to consume Newton from itsrelease-1.5Git branch instead of thenewton[sim]==1.5.1PyPI wheel. The regenerated lock resolves Newton 1.5.2 atcf5378db, which includes the latest actuator fixes, including newton-physics/newton#4101.The wheel-builder and install-CI overrides, install smoke expectations, pin-consistency coverage, and changelog fragment are updated in sync. The Isaac Lab actuator-path default is intentionally unchanged in this release PR and is handled separately on
develop.Type of change
Release backport
release/3.0.0directly.Screenshots
Not applicable.
Validation
uv lock --checknewton==1.5.1; with overrides resolvesnewton==1.5.2atcf5378dbuv run --extra test python -m pytest source/isaaclab/test/cli/test_install.py source/isaaclab/test/cli/test_uv_run_pyproject.py source/isaaclab/test/cli/test_wheel_builder_metadata.py -k 'EnsureNewton or version_single_source or wheel_builder_uv_overrides'(6 passed)TestActuatorStateAssignandTestControllerStateGraphCaptureagainst the locked build (10 passed)uv run isaaclab -fwithISAACLAB_CHANGELOG_BASE_REF=release/3.0.0Checklist
uv run isaaclab -fsource/isaaclab/changelog.d/CONTRIBUTORS.md