Repository navigation
[Tests] Consolidate installation CI environments - #7610
Conversation
Each install_ci environment build now carries every assertion for its install path instead of rebuilding the same environment per check: the system-Python smoke installs the core set only, the conda core import checks ride on the conda training env, one uv -i core env covers the core import checks, the camera probes run once on the wheel install path, and the RL-extras wheel checks join the wheel-builder smoke.
Greptile SummaryThis PR reduces installation-CI runtime by consolidating assertions into shared environments and removing redundant environment builds.
Confidence Score: 4/5The PR appears safe to merge, with a non-blocking test-coverage gap for the documented bare The consolidated environments preserve the substantive installation and runtime assertions, but replacing the sole bare Files Needing Attention: source/isaaclab/test/install_ci/cli/test_cli_install_core_in_globalenv_smoke.py Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart LR
G[System Python] --> GC["CLI -i core<br/>core import"]
U[uv environment] --> UC["CLI -i core<br/>core imports + token check"]
U --> UA["CLI -i all<br/>state training"]
C[conda environment] --> CN["CLI -i newton,rl[rsl-rl]<br/>core imports + training"]
W[Wheel environment] --> WR["Wheel RL extras<br/>imports + isaacsim absence"]
W --> WA["Wheel all extras<br/>state + camera probes"]
Reviews (1): Last reviewed commit: "Consolidate installation CI environments" | Re-trigger Greptile |
| install_env = {"PIP_BREAK_SYSTEM_PACKAGES": "1"} | ||
| result = run_cmd([str(cli_script), "-i"], cwd=isaaclab_root, env=install_env) | ||
| assert result.returncode == 0, f"./isaaclab.sh -i failed:\n{result.stdout}\n{result.stderr}" | ||
| result = run_cmd([str(cli_script), "-i", "core"], cwd=isaaclab_root, env=install_env) |
There was a problem hiding this comment.
Changing this invocation to explicit core removes the suite's only test of the documented bare -i behavior. Bare -i is parsed separately and defaults to all, so the remaining explicit -i all tests cannot catch a regression in the no-value/default argument handling. Please retain a lightweight assertion or invocation that exercises bare -i.
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!
There was a problem hiding this comment.
Isaac Lab Review Bot
The installation CI consolidation preserves the relocated assertions while removing duplicate uv, conda, camera, and wheel environment builds. The changed tests consistently document their revised install paths and assertion sets.
- Design and architecture: The consolidation coherently groups checks by expensive environment build: conda core imports run in the feature-training environment, uv core assertions share one smoke environment, and wheel RL-extra checks join the wheel-builder fixture. A non-blocking tradeoff is that the relocated RL-extra checks now validate the locally built wheel rather than the runner-supplied wheel path and no longer carry the deleted module’s install-path-specific markers.
- API: No production API, public symbol, configuration contract, or CLI implementation changes. The system-Python test intentionally switches from the bare installer default to the explicit core token, reducing coverage of default-token resolution and full Isaac Sim installation on that path while retaining the system-Python and PEP 668 coverage.
- Implementation: The removed assertions have surviving equivalents: conda core imports are checked after the feature install, uv core coverage includes the unknown-token assertion and all five imports, and the wheel-builder smoke contains both RL package imports plus the Isaac Sim distribution-absence probe. The renamed global-environment test remains internally consistent, and the test-only changelog fragment follows repository policy.
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.
|
run-ci |
# Description `test-contrib-environments` failed on #7610 (run [34042243157](https://github.com/isaac-sim/IsaacLab/actions/runs/34042243157/job/101511058208)) in `test_contrib_environments[IsaacContrib-DrLegs-Walk]` with `AssertionError: Invalid data` on the policy observation. The PR itself only touched `source/isaaclab/test/install_ci`, so this is unrelated to that change. **Root cause.** The first row of the failing observation is NaN across projected gravity, base angular velocity and joint positions, i.e. the robot state itself is non-finite, not a single observation term. Reproducing the test scenario locally (2 envs, 20 random-action steps, fresh env per seed) shows the Kamino P-ADMM solver diverging mid-episode: in 1 of 12 seeds the entire state of env 0 (root position, root quaternion, joint positions and velocities) turns NaN at step 6. The heading-driven velocity command then inherits the NaN through `heading_w`, and the `root_height` / `bad_orientation` termination terms cannot fire because every comparison against NaN is false, so the episode is never reset. The sibling `IsaacContrib-DrLegs-HoldPose` task (same robot, same solver preset, same random actions) stayed finite in 9 of 9 local trials and passed in the same CI job, as did the deprecated alias id of the Walk task, which is why the failure is intermittent rather than deterministic. **Change.** Add `DrLegs-Walk` to `_SKIPPED_TASK_SUBSTRINGS` in `test_contrib_environments.py` with the reason documented inline. The substring covers both `IsaacContrib-DrLegs-Walk` and its deprecated alias `Isaac-DrLegs-Walk-v0`, which the test also enumerates. HoldPose keeps running. This is a test-side skip; the solver instability itself needs to be addressed in Kamino/Newton (or by retuning the DR Legs solver preset), and the inline comment says to re-enable once that lands. ## Validation - Reproduction script (launches once, rebuilds the env per seed, mirrors `env_test_utils._run_environments`): Walk 1/12 seeds NaN at step 6 with root pose, joint state and the velocity command all non-finite; HoldPose 0/9. - `pytest source/isaaclab_tasks/test/contrib/test_contrib_environments.py -k DrLegs-Walk -rs`: both ids report `SKIPPED ... Kamino solver intermittently produces NaN robot state under random actions.`; HoldPose ids still collect as runnable. - Ruff and ruff-format pass; `isaaclab_tasks` changelog `.skip` fragment included. ## Type of change - Test fix (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
|
run-ci |
|
run-ci |
…#7610, #7603) (#7907) ## Description Backports #7610 and #7603 to `release/3.0.0` to reduce repeated installation and Newton simulation setup in CI while retaining the distinct behavioral checks. | Source | Change | | --- | --- | | #7610 (`f0a7a94d276c8eb8eb74c8bdbb51a03696f76480`) | Consolidate installer environment builds and import checks; use `core` for the system-Python smoke; run camera probes once on the wheel path. | | #7603 (`d0864daafb15cf18d663e63cdd99185e9a156e89`) | Consolidate Newton accessor, schema, sensor, and reset checks; remove duplicate or permanently unsupported tests; skip the known nondeterministic Newton contact cases. | Both source patches applied onto release commit `ff22c52891` without conflicts or changes. Includes the original changelog fragments and author attribution. ## Validation - Installer and wheel metadata tests: **72 passed**. - Installation-CI runner tests: **3 passed**. - Installation suite collection with Docker selection and the timeout plugin: **60 tests collected**. - All 12 changed Newton test files, run in separate processes: **502 passed, 10 skipped**. Eight skips cover the known Newton contact limitations from #7603; two skip the Newton-actuator path unavailable in the local runtime. - `uv run --no-sync isaaclab -f`: all checks passed with changelog validation against the release base. - File-by-file source audit, release-metadata preservation checks, and `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](https://github.com/isaac-sim/IsaacLab/actions/runs/35478221079/job/105991131510) and [x86](https://github.com/isaac-sim/IsaacLab/actions/runs/35478221079/job/105991131535) installation CI. ## Release backport Targets `release/3.0.0` directly; no further backport requested. --------- Co-authored-by: Mustafa H <[email protected]>
…7530, #7899) (#7926) ## Description Backports the two changes merged into `develop` since September 19 that are still missing from `release/3.0.0`: | Source PR | Change | Source commit | | --- | --- | --- | | #7530 | Validate camera outputs against renderer capabilities before simulator startup | `31d1c53510490c76841e9c35a329574b357d9900` | | #7899 | Share native resources by construction cfg and centralize ownership and teardown | `c90c3a1097a0a669a823b880b1c8d0654d7fd267` | Includes the original regression tests, API documentation, and changelog fragments. #7530 applied without changes. #7899 required two conflict resolutions to retain the release branch's OVRTX mapping API, documentation, and tests. Of its 62 files, 59 match the merged source exactly; the other three retain those existing release additions. Release versions, lockfile entries, compiled changelogs, and documentation routing are preserved. ## Audit Checked all **33 PRs** merged from September 19, 2026 00:00 America/Los_Angeles through `develop` commit `c90c3a1097` (September 20, 21:29 Pacific), against release base `75e9c8ce12`. **31 are already backported; the remaining two are included here.** Git first-parent history and GitHub's merged PR list agree. Automatic changelog/version compilation remains branch-specific. <details> <summary>31 PRs already recorded in release</summary> | Source PRs | Existing release commit | | --- | --- | | #7777, #7608, #7895, #7872, #7831, #7834, #7838, #7840, #7903, #7674 | [`ff22c52891`](ff22c52) | | #7886 | [`41bfaee5f0`](41bfaee) | | #7042 | [`970d21ef48`](970d21e) | | #7905 | [`f0563d1f9e`](f0563d1) | | #7604 | [`dca7cfe984`](dca7cfe) | | #7610, #7603 | [`5dd2220243`](5dd2220) | | #7839 | [`b8b93bb96e`](b8b93bb) | | #6851 | [`baa025ad90`](baa025a) | | #7250 | [`f86b33e6b1`](f86b33e) | | #7910 | [`24f7b4842b`](24f7b48) | | #7810 | [`9738e096c8`](9738e09) | | #7832 | [`be270ed88b`](be270ed) | | #4679 | [`80157aa22d`](80157aa) | | #7914 | [`01b59b5a22`](01b59b5) | | #7502 | [`db7db61f60`](db7db61) | | #7918 | [`bca9dba8bb`](bca9dba) | | #7919 | [`ef1514c97c`](ef1514c) | | #7922 | [`7d6979a19e`](7d6979a) | | #7923 | [`a1dd560b98`](a1dd560) | | #7924 | [`892e51dc1d`](892e51d) | | #7925 | [`75e9c8ce12`](75e9c8c) | </details> ## Validation **745 tests passed** on the combined backport: - Core registry, configclass, replication, camera contracts, and task presets: 158 passed. - Newton manager/model/reset and coupling suites: 299 passed. - OVPhysX/OVRTX lifecycle, scene data, bindings, and material contracts: 141 passed on CPU. - Clone-plan algebra: 83 passed. - All 8 OV CUDA cases skipped in the CPU run: 8 passed on GPU. - OVPhysX ray-caster regression: 1 passed. - Kit simulation-context and PhysX scene-data tests: 54 passed. - Newton solver reset integration: 1 passed. The registry-identity and borrowed-config-field regressions both fail with the pre-backport implementations and pass with this change. Backport file-scope validation, source-file comparison, `git diff --check`, and `uv run isaaclab -f` passed. Local validation used PyTorch 2.12.0/CUDA 13.0, Isaac Sim 6.0.1.0, Newton 1.6.0rc1, and an RTX 5090. Existing deprecation/runtime warnings occurred. Full Docker CI is requested separately against the pinned environment; local checks do not claim a startup or runtime speedup. ## Checklist - [x] Read the contribution guidelines and ran formatting/changelog checks. - [x] Included source tests, documentation, and changelog fragments. - [x] Verified regression behavior and preserved release-specific changes. - [x] Recorded source commit hashes and audited the requested merge window. --------- Co-authored-by: Antoine RICHARD <[email protected]> Co-authored-by: ooctipus <[email protected]>
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
cli/test_cli_install_core_in_globalenv_smoke.py, renamed from..._install_in_globalenv_smoke.pyper the directory naming rule): installs-i coreinstead of the bare-i, which resolves to-i alland pulled the full Isaac Sim stack into the system Python only to assertimport 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.-i core: two files ran the identical./isaaclab.sh -i coreinstall back to back (41 s each).test_cli_install_in_uvenv_smoke.py::test_install_core_makes_assets_importablenow carries the union of both assertion sets (five core imports plus the unknown-install-token check); the copy intest_cli_install_all_in_uvenv_training.pyis removed.-i coreinstall (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.-i alland afteruv pip install <wheel>[all]. They are about the runtime, not the installer, so they now run once on the wheel path; the-i alluv test keeps the shared state-training command (_STATE_TRAIN_CMD+_assert_training_passed, per the directory's AGENTS.md).uv_pip/test_uv_pip_install_isaaclab_rl_tasks_imports_rl_tasks.pyinstalled<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 inmisc/test_wheel_builder_smoke.pyand 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):
-i core+ import-i newton,rl[rsl-rl]+ core imports + train-i all+ state train-i core(merged assertions)--collect-onlyin 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 coreremovals 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 -idrives plainpipthrough 12 sequential editable installs (the same-i coretakes 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 importsisaacsimfrom the test runner's Python, which never has it inside the image.Type of change
Checklist
pre-commitchecks with./isaaclab.sh --formatsource/<pkg>/changelog.d/for every touched package (do not editCHANGELOG.rstor bumpextension.toml— CI handles that)CONTRIBUTORS.mdor my name already exists there