Repository navigation
[Tests] Trim redundant isaaclab_rl export and wrapper tests - #7604
Conversation
Drop the LEAPP export tasks that repeat an already covered export pattern, the checkpoint-fixture-only test, and a recurrent-state unit test that is duplicated in test_leapp_recurrent_state.py. Limit the finite-horizon wrapper check to two environments since the contract is task independent.
Greptile SummaryThis PR shortens the
Confidence Score: 4/5The PR appears safe to merge, with a non-blocking recommendation to preserve focused coverage of silent subprocess failure detection. The task-matrix and wrapper reductions retain representative coverage, but deleting the only failure-path test for Files Needing Attention: source/isaaclab_rl/test/export/test_rsl_rl_export_flow.py Important Files Changed
Reviews (1): Last reviewed commit: "Trim redundant isaaclab_rl export and wr..." | Re-trigger Greptile |
| @@ -287,39 +253,6 @@ def _run_export_batch_entrypoint() -> None: | |||
| _run_export_batch(tasks) | |||
There was a problem hiding this comment.
Traceback Detection Loses Coverage
Removing the only test of _fail_on_process_error leaves its traceback-detection branch untested, even though the export flow relies on this helper to reject simulator failures that exit successfully. A later change to the patterns or failure logic could make CI accept a subprocess containing a traceback. Please retain a small focused test for the zero-exit-code failure path.
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
This test-only change reduces LEAPP/RSL-RL export matrices, removes test-local redundant checks, limits the finite-horizon wrapper test to two registered environments, and adds the required .skip changelog fragment. No candidate findings identified a concrete issue requiring action before merge.
- Design and architecture: The patch consistently adopts representative export-path coverage instead of robot-variant breadth. Retained tasks span the documented classic, navigation, locomotion, manipulation, and dexterous patterns, while production architecture and export paths remain unchanged.
- API: No production API, public symbol, task registration, or export script is modified. Removed classes and test functions are local to test modules, so the patch does not introduce a public compatibility or migration concern.
- Implementation: The reduced RSL-RL task list still forms two valid batches under the existing batch size, and slicing
registered_tasks[:2]preserves the wrapper test mechanics while reducing task breadth. The principal non-blocking tradeoff is reduced variant-specific regression coverage, with the patch explicitly relying on representative shared-pattern and per-backend tests instead.
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 |
…aaclab-rl-tests # Conflicts: # source/isaaclab_rl/test/export/test_leapp_export_flow.py # source/isaaclab_rl/test/export/test_leapp_recurrent_state.py # source/isaaclab_rl/test/export/test_pretrained_checkpoint_lookup.py # source/isaaclab_rl/test/export/test_rsl_rl_direct_export_flow.py # source/isaaclab_rl/test/export/test_rsl_rl_export_flow.py # source/isaaclab_rl/test/export/test_sb3_leapp_export.py # source/isaaclab_rl/test/test_rsl_rl_cfg_deprecation.py # source/isaaclab_rl/test/test_rsl_rl_wrapper_observations.py # source/isaaclab_rl/test/test_template_generator.py
|
run-ci |
|
Backported to |
# Description Trims the `isaaclab_rl` test suite where it repeats an export path or a check that already exists elsewhere. On this workstation the suite took ~15 min, of which `test_leapp_export_flow.py` alone was 7 to 9 min and `test_rsl_rl_export_flow.py` another 2.5 min; every other file finishes in under 35 s. **`export/test_leapp_export_flow.py`** - Dropped `Isaac-Humanoid` from the RSL-RL task list. `test_rsl_rl_humanoid_export_across_physics_backends[newton_mjwarp]` already creates the same initialized checkpoint with the same preset and exports it, so the matrix entry was an exact duplicate (one ~20 s checkpoint subprocess and one ~14 s export subprocess). - Dropped `Isaac-Reach-UR10`. The list is documented as "one example of each distinct observation / command / action pattern"; UR10 is the same pose-command + joint-position-arm pattern as `Isaac-Reach-Franka`, which stays. - Removed `test_initialized_checkpoints`. It only re-asserted that the module fixture wrote its path files; the fixture already fails the run on a non-zero subprocess and every export test asserts its own checkpoint path. **`export/test_rsl_rl_export_flow.py`** - Reduced the pretrained-checkpoint export matrix from 28 tasks (4 Kit batches) to 12 tasks (2 batches) using the same "diversity over breadth" rule: classic, navigation, quadruped flat, quadruped rough (height scan), humanoid rough, a contrib task with its own MDP terms, reach, lift, cabinet, and both dexterous tasks. The 16 dropped entries are robot variants of the quadruped/humanoid velocity pattern plus `Reach-UR10`. Note that the batches containing those variants finished in ~12 s for 8 tasks in both baseline runs, i.e. the exports short-circuit (checkpoint unavailable or `actor_state_dict` mismatch are silently skipped), so their nominal coverage was mostly not exercised. - Removed `test_recurrent_state_helpers_support_modular_rnn_model_lstm`, which is line-for-line `TestRslRlRecurrentState.test_modular_rnn_model_lstm_round_trip` in `test_leapp_recurrent_state.py`, and `test_export_flow_fails_on_sim_traceback`, which tested a helper of the test file itself. **`test_rsl_rl_wrapper.py`** - `test_no_time_outs` now builds two environments instead of five. The finite-horizon contract it checks belongs to the wrapper, not the task; `test_random_actions` still runs all five. ## Before and after measurement Per-file wall time from the CI-style per-file runner on the same workstation (RTX PRO 6000). Baseline numbers are from a second, warm-cache run of the unchanged files; the first cold run was 548 s / 160 s for the two export files. | File | Cases before | Cases after | Before | After | |---|---:|---:|---:|---:| | `export/test_leapp_export_flow.py` | 18 | 15 | 411.9 s | 348.1 s | | `export/test_rsl_rl_export_flow.py` | 6 | 2 | 150.8 s | 70.3 s | | `test_rsl_rl_wrapper.py` | 2 | 2 | 31.8 s | 31.3 s | | **Total (changed files)** | | | **594 s** | **450 s** | That is about 2.4 min (16%) off a ~15 min suite. `test_leapp_recurrent_state.py` still passes (7 cases) and carries the recurrent-state check removed from the export flow file. ## Type of change - Test and CI performance improvement (non-breaking) ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` ## 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 93a9279)
…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
Trims the
isaaclab_rltest suite where it repeats an export path or a check that already exists elsewhere. On this workstation the suite took ~15 min, of whichtest_leapp_export_flow.pyalone was 7 to 9 min andtest_rsl_rl_export_flow.pyanother 2.5 min; every other file finishes in under 35 s.export/test_leapp_export_flow.pyIsaac-Humanoidfrom the RSL-RL task list.test_rsl_rl_humanoid_export_across_physics_backends[newton_mjwarp]already creates the same initialized checkpoint with the same preset and exports it, so the matrix entry was an exact duplicate (one ~20 s checkpoint subprocess and one ~14 s export subprocess).Isaac-Reach-UR10. The list is documented as "one example of each distinct observation / command / action pattern"; UR10 is the same pose-command + joint-position-arm pattern asIsaac-Reach-Franka, which stays.test_initialized_checkpoints. It only re-asserted that the module fixture wrote its path files; the fixture already fails the run on a non-zero subprocess and every export test asserts its own checkpoint path.export/test_rsl_rl_export_flow.pyReach-UR10. Note that the batches containing those variants finished in ~12 s for 8 tasks in both baseline runs, i.e. the exports short-circuit (checkpoint unavailable oractor_state_dictmismatch are silently skipped), so their nominal coverage was mostly not exercised.test_recurrent_state_helpers_support_modular_rnn_model_lstm, which is line-for-lineTestRslRlRecurrentState.test_modular_rnn_model_lstm_round_tripintest_leapp_recurrent_state.py, andtest_export_flow_fails_on_sim_traceback, which tested a helper of the test file itself.test_rsl_rl_wrapper.pytest_no_time_outsnow builds two environments instead of five. The finite-horizon contract it checks belongs to the wrapper, not the task;test_random_actionsstill runs all five.Before and after measurement
Per-file wall time from the CI-style per-file runner on the same workstation (RTX PRO 6000). Baseline numbers are from a second, warm-cache run of the unchanged files; the first cold run was 548 s / 160 s for the two export files.
export/test_leapp_export_flow.pyexport/test_rsl_rl_export_flow.pytest_rsl_rl_wrapper.pyThat is about 2.4 min (16%) off a ~15 min suite.
test_leapp_recurrent_state.pystill passes (7 cases) and carries the recurrent-state check removed from the export flow file.Type of change
Release backport
developChecklist
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