Repository navigation
[Backport release/3.0.0] Consolidate installation and Newton CI tests (#7610, #7603) - #7907
Conversation
# Description Streamlines the installation CI suite (`source/isaaclab/test/install_ci`) so that each expensive environment build carries every assertion for its install path, instead of rebuilding the same environment once per check. The x86 job currently spends 23 of its 25 minutes inside pytest, and six environment builds account for 80% of that. **Changes** - **System-Python smoke** (`cli/test_cli_install_core_in_globalenv_smoke.py`, renamed from `..._install_in_globalenv_smoke.py` per the directory naming rule): installs `-i core` instead of the bare `-i`, which resolves to `-i all` and pulled the full Isaac Sim stack into the system Python only to assert `import isaaclab`. The unique thing this test covers is the no-venv, PEP 668 install path; the optional features and Isaac Sim are already covered by the uv and wheel tests. This test was 469 s of the 1380 s pytest run. - **uv `-i core`**: two files ran the identical `./isaaclab.sh -i core` install back to back (41 s each). `test_cli_install_in_uvenv_smoke.py::test_install_core_makes_assets_importable` now carries the union of both assertion sets (five core imports plus the unknown-install-token check); the copy in `test_cli_install_all_in_uvenv_training.py` is removed. - **conda**: the conda `-i core` install (63 s) was a strict subset of the `-i newton,rl[rsl-rl]` install that followed it. The core import checks now run in the training env. - **Cartpole probes**: the camera render and 2-iteration camera training probes ran twice on the same runner, after `-i all` and after `uv pip install <wheel>[all]`. They are about the runtime, not the installer, so they now run once on the wheel path; the `-i all` uv test keeps the shared state-training command (`_STATE_TRAIN_CMD` + `_assert_training_passed`, per the directory's AGENTS.md). - **Wheel RL extras**: `uv_pip/test_uv_pip_install_isaaclab_rl_tasks_imports_rl_tasks.py` installed `<wheel>[sb3,skrl,rsl-rl]` into a second env to check three things the wheel-builder smoke (same extras) did not. Those three checks now live in `misc/test_wheel_builder_smoke.py` and the extra environment is gone. Collected inventory goes from 62 to 60 tests; no assertion is dropped. Docstring `Setup:`/`Tests:` sections are updated to list exactly what runs. ## Validation Ran the changed tests through the CI harness from a clean clone on an RTX PRO 6000 workstation (fresh pip and uv cache volumes, so absolute times are cold-cache): ``` tools/run_install_ci.py docker --gpu --build-wheel -- -sv \ -k "Wheel_Builder or test_install_core_makes_assets_importable or test_install_all_trains_cartpole or Globalenv or Condaenv" 19 passed, 41 deselected in 734.97s ``` | Test | Time (cold cache) | |---|---:| | system-Python `-i core` + import | 358.9 s | | conda `-i newton,rl[rsl-rl]` + core imports + train | 141.4 s | | uv `-i all` + state train | 135.0 s | | wheel-builder smoke (build, install, 15 checks) | 47.6 s class fixture | | uv `-i core` (merged assertions) | 37.3 s | `--collect-only` in docker mode collects 60 tests with the expected names. Full-suite before/after can only be measured on the CI runners (warm cache volumes), so the job total is the number to watch on this PR's Installation Tests run. **Expected effect on the x86 job.** The conda and uv `-i core` removals and the dropped wheel env are direct savings (about 2 min). The camera probe removal saves the shader compile plus two camera iterations on one path. The system-Python change is a strict reduction in work but a smaller win than the payload size suggests: that path is slow because `./isaaclab.sh -i` drives plain `pip` through 12 sequential editable installs (the same `-i core` takes 30 s in a uv env), so most of its cost is per-package resolution rather than the Isaac Sim wheels. A follow-up could look at parallelizing the suite (the environments are already isolated) and at the 20 tests that currently skip because their guard imports `isaacsim` from the test runner's Python, which never has it inside the image. ## Type of change - Test and CI performance improvement (non-breaking) ## 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 - [x] My changes generate no new warnings - [ ] 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 (do **not** edit `CHANGELOG.rst` or bump `extension.toml` — CI handles that) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there (cherry picked from commit f0a7a94)
|
There was a problem hiding this comment.
Isaac Lab Review Bot
Reviewed the installation-CI consolidation across system-Python, uv, conda, and wheel paths. The moved assertions retain coverage for core imports, RL extras, omitted dependencies, and training while reducing repeated environment builds.
- Design and architecture: The revised ownership is coherent: system Python covers
-i core, the conda training environment carries core-import checks, the existing uv core environment owns uv core checks, and the wheel-builder environment owns RL-extras and Isaac Sim absence probes. The runner-supplied wheel path now has narrower direct coverage, but the patch provides no concrete broken consumer or behavior. - API: No production APIs, CLI options, exports, or configuration defaults change. The renamed test module and class are internal test constructs, and the
.skipchangelog fragment appropriately records a non-user-visible CI change. - Implementation: The relocated checks were traced to their new environments, including core-package imports, the unknown-token assertion, pytetwild and Isaac Sim absence probes, and state-training validation through the shared smoke helpers. A residual CI timing risk remains because the conda test’s 1800-second outer timeout includes installation, four import subprocesses, and training, but this does not establish a concrete defect in the patch.
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.
# Description Second pass over the `isaaclab_newton` test suite after isaac-sim#7306. The goal is the same: cut CI runtime by removing tests that produce no verdict and by collapsing groups of tests that rebuild the same simulation to check one accessor each, while keeping every distinct behavioral check. **Removed (no verdict produced)** - `test_articulation.py`: `test_initialization_hand_with_tendons` and `test_spatial_tendons` always skipped (shadow hand / spatial tendons are unsupported on Newton); the `shadow_hand` fixture branch and its sim config go with them. `test_setting_gains_from_cfg_dict` was byte-for-byte the same check as `test_setting_gains_from_cfg`. - `test_rigid_object.py`: four permanently skipped tests (kinematic bodies, no-friction, static friction, restitution) and the material helper only they used. `test_rigid_object_collection.py`: the permanently skipped kinematic test. - `test_contact_sensor.py`: the `newton_contacts` cases of the force-matrix, contact-point and finger-isolation tests were non-strict `xfail`s. They ran the full 240-step settle (and the Allegro drop with `flaky` reruns) and could neither fail nor pass the build. They are now `skip` with the same reason, so the known gap stays visible in the report. **Consolidated (same assertions, fewer simulations)** - Dynamics accessor shape contracts: six tests (`J`/`M`/`g` × fixed/floating base) each spun up their own sim per batch size. One `test_dynamics_accessor_shapes` reads all three accessors per (asset, batch) and keeps the positive-diagonal mass-matrix check. 12 sims → 4. - FK-refresh after a manual joint write: three tests → one `test_dynamics_accessors_refresh_after_manual_joint_write` that checks `J`, `M` and `g` on both assets. Gravity stays on so the `g(q)` assertion is not vacuous. - Config-validation failures (out-of-range default joint pos/vel, valid/invalid explicit articulation root) are device independent; each pair is now one parametrized CPU test. - External-force tests reran an identical reset+force cycle five times; two cycles still cover the alternating local/global variants and the re-application after reset. - PVA/IMU: initialization + shape checks merged; the at-rest gravity and velocity checks shared the same 200/500-step settle and are now read from one scene. Free-fall acceleration and growing-speed checks share one scene. - Joint wrench: partial and full reset checks run on the same 4-env scene. - Frame view (`test_views_xform_prim_newton.py`): body/shape-path rejection, world-attached read/write, and clone-plan vs post-reset resolution each collapsed into one scene. - Newton schemas: each authored/unset pair now authors both prims in one stage instead of two `SimulationContext`s. - Ray-cast sensor: the two FK-refresh-after-carrier-write checks run on one scene. - Frame transformer: 100 steps with a reset every 25 → 50 steps (two reset cycles); the per-step assertions are unchanged. - `test_site_injection.py`: two tests made the identical call and split the assertions. ## Before and after measurement Per-file wall time from the CI-style per-file runner on the same workstation (RTX PRO 6000), warm Warp cache, changed files only: | File | Cases before | Cases after | Before | After | |---|---:|---:|---:|---:| | `assets/test_articulation.py` | 194 + 4 skipped | 177 | 298.6 s | 232.8 s | | `sensors/test_contact_sensor.py` | 67 + 8 xpassed | 67 + 8 skipped | 87.8 s | 64.9 s | | `assets/test_rigid_object_collection.py` | 54 + 8 skipped | 53 | 52.4 s | 48.8 s | | `assets/test_rigid_object.py` | 58 + 16 skipped | 52 | 48.8 s | 47.1 s | | `sim/test_views_xform_prim_newton.py` | 60 | 54 | 44.6 s | 42.2 s | | `sensors/test_frame_transformer.py` | 9 | 9 | 23.5 s | 21.3 s | | `sensors/test_newton_raycast_sensor.py` | 18 | 16 | 20.6 s | 18.9 s | | `sensors/test_joint_wrench_sensor.py` | 10 | 9 | 19.1 s | 16.9 s | | `sensors/test_pva.py` | 10 | 6 | 17.0 s | 14.1 s | | `sensors/test_imu.py` | 7 | 5 | 14.7 s | 13.1 s | | `sim/test_newton_schemas.py` | 20 | 14 | 7.7 s | 6.7 s | | `sensors/test_site_injection.py` | 27 | 26 | 5.3 s | 5.4 s | | **Total (changed files)** | | | **640 s** | **532 s** | The whole `isaaclab_newton` suite measured 16 min 20 s before the change on this machine; the changed files account for the full 108 s saved (about 11%). The largest single win is `test_articulation.py`, which is 30% of the suite. ## Type of change - Test and CI performance improvement (non-breaking) ## 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 - [x] My changes generate no new warnings - [ ] 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 (do **not** edit `CHANGELOG.rst` or bump `extension.toml` — CI handles that) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there (cherry picked from commit d0864da)
|
run-ci |
Description
Backports #7610 and #7603 to
release/3.0.0to reduce repeated installation and Newton simulation setup in CI while retaining the distinct behavioral checks.f0a7a94d276c8eb8eb74c8bdbb51a03696f76480)corefor the system-Python smoke; run camera probes once on the wheel path.d0864daafb15cf18d663e63cdd99185e9a156e89)Both source patches applied onto release commit
ff22c52891without conflicts or changes. Includes the original changelog fragments and author attribution.Validation
uv run --no-sync isaaclab -f: all checks passed with changelog validation against the release base.git diff --check: passed.Local Newton validation used RTX 5090, PyTorch 2.12, Newton 1.6.0rc1, MuJoCo Warp 3.12, and Isaac Sim 6.0.1. Release CI uses the pinned Newton 1.6.0 and Isaac Sim 6.1 versions.
The full fresh-environment installation matrix was not rerun locally. The source installation PR passed both ARM and x86 installation CI.
Release backport
Targets
release/3.0.0directly; no further backport requested.