Repository navigation
Revert "[Workflow] Use Newton 1.5 release branch" - #7725
Conversation
This reverts commit f274fc1.
There was a problem hiding this comment.
Isaac Lab Review Bot
The PR consistently reverts uv-managed Newton resolution from the release-1.5 Git branch to the newton[sim]==1.5.1 PyPI release across project configuration, lock data, override files, and install checks.
- Design and architecture: The dependency source changes without altering runtime architecture. The obsolete Newton branch value is removed from the shared versions table, while uv configuration and mirrored override files consistently select the PyPI release.
- API: No public Python API changes. The affected compatibility surface is dependency resolution: uv-managed environments pin Newton 1.5.1, while published wheel metadata retains the broader
newton[sim]>=1.2.0requirement. - Implementation: The uv override, lock manifest, resolved wheel hash, mirrored override files, documentation, and version assertion agree on Newton 1.5.1. The plain wheel-install smoke path no longer applies its overrides, so its exact 1.5.1 assertion depends on repository availability and resolver selection despite the wheel metadata declaring only a lower bound; this is a residual test-stability concern rather than an accepted finding.
No blocking issues. No inline issue met the actionable-evidence threshold; the assessment above records the review feedback.
Automated review; human maintainers own approval decisions.
|
| result = self.run_in_uv_env( | ||
| ["uv", "--no-config", "pip", "install", f"{wheel}[all]", "--overrides", str(uv_overrides)], | ||
| cwd=isaaclab_root, | ||
| timeout=1800, | ||
| ["uv", "--no-config", "pip", "install", f"{wheel}[all]"], cwd=isaaclab_root, timeout=1800 | ||
| ) | ||
| assert result.returncode == 0, f"uv pip install {wheel}[all] failed:\n{result.stdout}\n{result.stderr}" | ||
|
|
||
| result = self.run_in_uv_env( | ||
| ["python", "-c", "import importlib.metadata as m; assert m.version('newton') == '1.5.2'"], | ||
| ["python", "-c", "import importlib.metadata as m; assert m.version('newton') == '1.5.1'"], |
There was a problem hiding this comment.
Exact Version Is Unconstrained
The smoke test installs the wheel without the override file, while the wheel metadata only requires newton[sim]>=1.2.0. If a newer compatible release becomes available, the resolver can select it and this exact 1.5.1 assertion will fail even though the installation satisfies the published metadata. Pass the override when testing the exact pin, or verify the compatible range instead.
| # The Newton uv override is its single pin and may select a release or Git revision. | ||
| newton_spec = next(requirement for requirement in overrides if requirement.startswith("newton[sim]")) | ||
| assert newton_spec.endswith(f"newton.git@{versions['newton']}") | ||
| assert "==" in newton_spec or " @ git+" in newton_spec |
There was a problem hiding this comment.
This assertion accepts any exact Newton version or Git dependency, so it no longer detects drift even though the test promises to compare literal overrides with one authoritative source. Because Newton is also absent from [tool.isaaclab.versions], the root and wheel-install override files can now diverge silently. Restore an authoritative Newton value and compare each literal override against it.
| "mujoco~=3.11.0", | ||
| "mujoco-warp~=3.11.0", | ||
| "newton[sim] @ git+https://github.com/newton-physics/newton.git@release-1.5", | ||
| "newton[sim]==1.5.1", |
There was a problem hiding this comment.
The override now selects the 1.5.1 PyPI release, but the existing release changelog still says that ./isaaclab.sh -i installs a pinned Newton Git build. Update that documentation so users and maintainers do not expect or diagnose a Git-sourced installation.
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!
Reverts #7709