Skip to content

[Tests] Prune extension package tests with the test-audit skill - #8019

Merged
ooctipus merged 11 commits into
isaac-sim:developfrom
StafaH:test/prune-extension-tests
Sep 25, 2026
Merged

ooctipus merged 11 commits into
isaac-sim:developfrom
StafaH:test/prune-extension-tests

Conversation

@StafaH

@StafaH StafaH commented Sep 25, 2026

Copy link
Copy Markdown
Collaborator

Extension package test jobs: 27:03 → 20:58 (−22%)

Each package job runs through pytest tools on the same machine with a warm Warp cache, once on develop and once on this PR. The same files fail on both sides, only from optional dependencies missing in the timing environment (pytetwild, viser/rerun, OpenXR). Those files pass with the extras installed.

Package job develop this PR Test functions
isaaclab_rl 7:28 6:46 168 → 146
isaaclab_mimic 8:19 4:08 20 → 15
isaaclab_visualizers 5:23 4:58 93 → 75
isaaclab_assets 1:47 1:27 2 → 2
isaaclab_contrib 1:44 1:31 143 → 102
isaaclab_teleop 1:40 1:29 250 → 186
isaaclab_experimental 0:42 0:39 182 → 109
isaaclab_ppisp (not in CI) – – 24 → 20
Total 27:03 20:58 882 → 655

Test lines: 27,724 → 24,181. The only change outside test files: the tiled Newton visualizer file was merged into test_visualizer_integration_newton.py, so its retry entry in tools/conftest.py was dropped and a flaky mark was carried into the merged file.

What changed

Pruned with the isaaclab-auditing-tests skill (#8007), campaign mode, one commit per package.

Method. Every test was marked keep, fix, merge or delete. Whenever a deletion's keeper does not carry the assertions verbatim, a deliberate production mutation proves the keeper fails. An independent review then compared deleted coverage against the keepers, and every gap it found was restored and mutation-proven:

  • the RSL-RL recurrent-config fields (stochastic, init_noise_std, state_dependent_std);

  • Warp graph-cache replay identity;

  • the tiled Newton visualizer retry.

  • Merged: repeated scene or env builds that checked overlapping properties, and parametrize axes that reach no distinct code path.

  • Deleted: mock self-tests, restated config values, import and inventory checks, and duplicate per-backend replays of backend-independent helpers.

  • Fixed: assertions that could not fail.

Follow-ups

  • isaaclab_ppisp has no CI job in build.yaml.
  • The three byte-identical mimic dataset-generation files could become one parametrized file.

Release backport

  • Backport this pull request to the active release branch after it merges into develop

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with ./isaaclab.sh --format
  • My changes generate no new warnings
  • I have added a changelog fragment under source/<pkg>/changelog.d/ for every touched package
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

@StafaH

StafaH commented Sep 25, 2026

Copy link
Copy Markdown
Collaborator Author

run-ci

@github-actions github-actions Bot added asset New asset feature or request isaac-mimic Related to Isaac Mimic team infrastructure labels Sep 25, 2026
@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Sep 25, 2026
@greptile-apps

greptile-apps Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 4/5

[Low risk] Test suite pruning and refactoring across extension packages.

The PR should not merge until the GelSight test handles an unavailable asset server without failing the package job.

Findings

  1. P1 Asset test requires network access ▶
  2. P2 Cloth image checks removed ▶

Summary

The PR consolidates and prunes extension-package tests across simulation, learning, teleoperation, rendering, and experimental Warp coverage.

  • Several retained tests gain stronger assertions or capture-and-replay checks.
  • The new GelSight asset check makes its package test job depend on server availability.
  • The visualizer pruning removes Franka-cloth image regression coverage.

Reviews (1) · Last reviewed commit: "Restore graph-cache replay identity and ..."

"""The GelSight Mini render data resolves to files on the asset server, as the renderer loads them."""
remote_path = os.path.join(GELSIGHT_MINI_CFG.base_data_path, GELSIGHT_MINI_CFG.sensor_data_dir_name, file_name)

assert os.path.isfile(retrieve_file_path(remote_path, download_dir=str(tmp_path)))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Asset test requires network access

If the asset server is unreachable, retrieve_file_path raises and fails the isaaclab_assets test job. The previous test did not require network access, and downloading into a per-test temporary directory cannot reuse the renderer’s cached copy. Please make server availability an explicit prerequisite or skip this check when the server is unavailable.

@@ -0,0 +1 @@
Pruned redundant visualizer tests and removed the unused franka-cloth golden-image helpers.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Cloth image checks removed

This pruning removes the Franka-cloth golden-image runner and all three reference images without a replacement. The retained Cartpole integration tests do not check deformable scene rendering, so a change to cloth appearance or placement could now go unnoticed. This is a non-blocking coverage gap; consider retaining a focused cloth image check.

Knowledge Base Used: Rendering and visualization extensions

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!

@isaaclab-review-bot isaaclab-review-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isaac Lab Review Bot

The test-audit consolidation was reviewed across the affected extension packages, including merged parity/capture checks, reduced parameter matrices, removed golden-image and benchmark assets, and the tiled Newton visualizer test merge. The candidate concern about importing IsaacTeleopDevice at module scope is not directly supported by evidence that the import itself requires an initialized Isaac Sim runtime or fails during collection.

  • Design and architecture: The shared capture-mutate-replay helpers preserve the Warp/stable parity structure while removing duplicated test scaffolding, and the CAPTURE_UNAUDITED declaration checks remain enforced. Consolidated integration tests continue to exercise the relevant real implementation paths rather than duplicating production logic in test helpers.
  • API: No production API, public signature, default, or export is changed. The reviewed compatibility surfaces are test discovery, optional runtime imports, package test registration, changelog fragments, and visualizer retry handling; the surviving Newton visualizer file retains both the retry registration and flaky marker.
  • Implementation: The removed tests were traced to their retained keepers, including deformable write and mask behavior, multirotor actuator integration, RSL-RL recurrent migration fields, Warp graph replay identity, teleop lifecycle behavior, and visualizer material and tiled integration coverage. The module-scope teleop import does not establish a concrete collection failure from the supplied context, so it does not warrant a 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.

@StafaH
StafaH force-pushed the test/prune-extension-tests branch from 66c858a to 4d27b94 Compare September 25, 2026 07:40
@StafaH

StafaH commented Sep 25, 2026

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Sep 25, 2026
@ooctipus

Copy link
Copy Markdown
Collaborator

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Sep 25, 2026
@ooctipus
ooctipus merged commit a2cca93 into isaac-sim:develop Sep 25, 2026
54 checks passed
@isaaclab-bot

isaaclab-bot Bot commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Backported to release/3.0.0 as 6a15bf0.

isaaclab-bot Bot pushed a commit that referenced this pull request Sep 25, 2026
# Extension package test jobs: 27:03 → 20:58 (−22%)

Each package job runs through `pytest tools` on the same machine with a
warm Warp cache, once on `develop` and once on this PR. The same files
fail on both sides, only from optional dependencies missing in the
timing environment (`pytetwild`, viser/rerun, OpenXR). Those files pass
with the extras installed.

| Package job | `develop` | this PR | Test functions |
|---|---:|---:|---:|
| `isaaclab_rl` | 7:28 | 6:46 | 168 → 146 |
| `isaaclab_mimic` | 8:19 | **4:08** | 20 → 15 |
| `isaaclab_visualizers` | 5:23 | 4:58 | 93 → 75 |
| `isaaclab_assets` | 1:47 | 1:27 | 2 → 2 |
| `isaaclab_contrib` | 1:44 | 1:31 | 143 → 102 |
| `isaaclab_teleop` | 1:40 | 1:29 | 250 → 186 |
| `isaaclab_experimental` | 0:42 | 0:39 | 182 → 109 |
| `isaaclab_ppisp` (not in CI) | – | – | 24 → 20 |
| **Total** | **27:03** | **20:58** | **882 → 655** |

Test lines: 27,724 → 24,181. The only change outside test files: the
tiled Newton visualizer file was merged into
`test_visualizer_integration_newton.py`, so its retry entry in
`tools/conftest.py` was dropped and a flaky mark was carried into the
merged file.

## What changed
Pruned with the `isaaclab-auditing-tests` skill (#8007), campaign mode,
one commit per package.

**Method.** Every test was marked keep, fix, merge or delete. Whenever a
deletion's keeper does not carry the assertions verbatim, a deliberate
production mutation proves the keeper fails. An independent review then
compared deleted coverage against the keepers, and every gap it found
was restored and mutation-proven:
- the RSL-RL recurrent-config fields (`stochastic`, `init_noise_std`,
`state_dependent_std`);
- Warp graph-cache replay identity;
- the tiled Newton visualizer retry.

- **Merged:** repeated scene or env builds that checked overlapping
properties, and parametrize axes that reach no distinct code path.
- **Deleted:** mock self-tests, restated config values, import and
inventory checks, and duplicate per-backend replays of
backend-independent helpers.
- **Fixed:** assertions that could not fail.

## Follow-ups
- `isaaclab_ppisp` has no CI job in `build.yaml`.
- The three byte-identical mimic dataset-generation files could become
one parametrized file.

## 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`
- [x] My changes generate no new warnings
- [x] I have added a changelog fragment under
`source/<pkg>/changelog.d/` for every touched package
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there

---------

Co-authored-by: Octi Zhang <[email protected]>

(cherry picked from commit a2cca93)
@ooctipus
ooctipus deleted the test/prune-extension-tests branch September 25, 2026 08:39
@ooctipus ooctipus self-assigned this Sep 25, 2026
@ooctipus ooctipus added this to the Isaac Lab 3.0 GA milestone Sep 25, 2026
@ooctipus ooctipus moved this to Done in Isaac Lab Sep 25, 2026
StafaH added a commit that referenced this pull request Sep 25, 2026
…8031)

Backports the two test-prune PRs whose automatic backports failed to
`release/3.0.0`:

- #8022 — prune core `isaaclab` tests with the test-audit skill (core
job 32:18 → ~22:40 locally). The bot could not replay it because the PR
contained a merge commit.
- #8008 — prune Newton tests with the test-audit skill. The bot's
cherry-pick applied, but its validation rejected the result.

Each is a `git cherry-pick -x` of the squash commit on `develop`:
- **#8008** applies identically.
- **#8022** applies identically except for three asset-interface test
fixtures, which `release/3.0.0` already has in #8022's final form.

Test-only changes plus `.skip` changelog fragments. Tests are validated
by this PR's CI.

The rest of this test-audit series is already on `release/3.0.0`:
- #8003 via #8002
- #8009 and #8010 via #8018
- #8006, #8007, #8019 and #8020 by the backport bot

---------

Signed-off-by: Octi Zhang <[email protected]>
Co-authored-by: Octi Zhang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

asset New asset feature or request infrastructure isaac-mimic Related to Isaac Mimic team

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants