Skip to content

[Tests] Prune isaaclab_tasks tests with the test-audit skill - #8020

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

ooctipus merged 2 commits into
isaac-sim:developfrom
StafaH:test/prune-tasks-tests

Conversation

@StafaH

@StafaH StafaH commented Sep 25, 2026

Copy link
Copy Markdown
Collaborator

isaaclab_tasks changed test files: 12:27 → 8:45 (−30%)

This times the 42 isaaclab_tasks test files this PR touches, rendering files included. Each run goes through pytest tools on the same machine with a warm Warp cache, once on develop and once on this PR. Four kitless and cable rendering files fail on both sides, only from local golden-image and renderer environment differences.

develop this PR
Wall time (changed files) 12:27 8:45
Rendering nodes, Kit jobs 83 36
Rendering nodes, kitless jobs 166 68
Test functions 379 309
Test lines 12,664 11,656
Golden images – 137 removed

The only change outside test files: .github/workflows/build.yaml no longer lists the deleted test_rendering_franka_soft.py.

What changed

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

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 restored every gap it found: the Pink daqp dependency row and the dict-form distributed=False no-op.

  • Rendering:
    • The minimal-mode (simple-shading) golden layer went down to the Shadow Hand rows. Cartpole's flat materials render the same at shading modes 3 and 2, so its golden images could not catch a mode regression.
    • Newton-default and always-skipped OVPhysX rows were dropped.
    • test_rendering_franka_soft.py was deleted; every one of its nodes always skipped.
    • The yellow-background kitless file is covered by test_ovrtx_usd.py.
  • Deleted: tests covered elsewhere:
    • hydra (13), preset_cli (6), distributed device resolution (10), runtime compatibility (4)
    • quaternion helper replays (covered by test_math.py)
    • three rl_device GPU-to-GPU rows
    • two determinism rows (385 s → 94 s)
  • Merged: camera preset tables (19 → 4 and 6 → 2 rows), kit-decision selectors, lazy-stub import kinds, and the Kuka OVPhysX presets.
  • Fixed tests that could not fail:
    • the hydra unknown-preset test
    • the parse_env_cfg override test
    • the kitless distributed test, which now uses the real resolver
    • the fake hand's preserve_order
    • the sampler negative weight
    • the XR feed link
    • SO-101 output order, which used to skip where it should fail

Follow-ups

  • The OVPhysX smoke, MPM, Kuka visual-material, yellow-background and partition-bounds rendering files are not wired into CI.
  • CameraCfg.validate_config needs a core test.

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

Apply the tasks-lane test-audit ledger: drop duplicated and self-computed
tests, repair assertions that could not fail, and trim parametrize axes
that select no distinct code path.

- Render RTX Minimal (simple_shading) goldens only in the Cartpole and
  Shadow Hand scenes, one physics backend per RTX renderer; Shadow Hand
  stays because Cartpole cannot tell the MDL shading levels apart.
- Filter physics backends the Franka deformable and heterogeneous Kuka
  configs do not declare out of the rendering matrices instead of
  skipping them at runtime, and delete the always-skipped kit Franka
  soft file, the duplicated OVRTX yellow-background file, and their
  dead golden images.
- Consolidate Hydra preset, preset CLI, runtime compatibility,
  distributed device, and camera preset tests into their keepers, and
  drop Newton-default rows that resolve to the default configuration.
- Repair tests whose assertions passed with the contract broken
  (unknown preset validation, parse_env_cfg overrides, kitless
  distributed device, tendon ordering, negative sampler weights,
  XR camera feed wiring, SO-101 output order, curriculum clamping).
@StafaH
StafaH requested a review from a team September 25, 2026 06:29
@StafaH

StafaH commented Sep 25, 2026

Copy link
Copy Markdown
Collaborator Author

run-ci

@github-actions github-actions Bot added isaac-lab Related to Isaac Lab 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 parametrization reduction.

The PR appears safe to merge, though restoring the two focused regression checks would protect behavior that the broader surviving tests do not verify.

Summary

The PR reduces task-test runtime by pruning parameter combinations, merging assertions, and removing rendering baselines and tests. It also strengthens several existing checks. Two deletions leave specific visual and camera-calibration contracts without direct regression coverage.

Reviews (1) · Last reviewed commit: "Restore Pink dependency and dict no-op c..."

@greptile-apps

greptile-apps Bot commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Comments Outside Diff

These findings sit on lines the diff does not cover, so they could not be posted inline. Each one leaves this list once its file changes.

  • P2 OVRTX background coverage removed source/isaaclab_tasks/test/core/test_rendering_shadow_hand_yellow_bg_kitless.py:24 ▶

    Deleting this test removes the only OVRTX golden-image check for a non-default camera background. The remaining yellow-background tests use other renderers, and the OVRTX USD test checks only that a color attribute is authored. An OVRTX change that renders the wrong background color could now pass the tests.

    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!

  • P2 G1 calibration checks removed source/isaaclab_tasks/test/core/test_xr_camera_feed_presets.py:41 ▶

    This replacement checks that the recorded camera exists, but no remaining test checks its optical settings, resolution, pose, or attachment path. Those calibrated values could change and alter recorded observations while this test still passes. Please retain a focused check of the calibration.

@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

Reviewed the test-audit pruning across isaaclab_tasks, including rendering matrix consolidation, backend filtering, deleted golden images, merged preset and distributed-device cases, and removal of the always-skipped Franka soft rendering file from both the suite and CI list. No candidate findings were supplied or supported for posting.

  • Design and architecture: The rendering test matrix now separates simple-shading coverage into dedicated MINIMAL_* collections and excludes unsupported backend combinations during parametrization rather than at runtime. This is confined to test infrastructure; the main tradeoff is intentionally narrower scenario coverage in exchange for reduced runtime.
  • API: No production APIs, configuration fields, CLI contracts, or package exports are changed. The deleted rendering test is also removed from the workflow, and the test-only package change includes a .skip changelog fragment.
  • Implementation: Checked the parameter tuple indexing used by the new backend filters, the consumers of the minimal and non-minimal rendering groups, corresponding golden-image removals, merged Hydra and distributed-device tests, and registry cleanup in the new unknown-preset test. The changed paths remain internally consistent, with residual risk primarily from the deliberately reduced test matrix rather than a demonstrated implementation defect.

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.

@ooctipus
ooctipus merged commit 0de4bf7 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 2535908.

isaaclab-bot Bot pushed a commit that referenced this pull request Sep 25, 2026
# `isaaclab_tasks` changed test files: 12:27 → 8:45 (−30%)

This times the 42 `isaaclab_tasks` test files this PR touches, rendering
files included. Each run goes through `pytest tools` on the same machine
with a warm Warp cache, once on `develop` and once on this PR. Four
kitless and cable rendering files fail on both sides, only from local
golden-image and renderer environment differences.

| | `develop` | this PR |
|---|---:|---:|
| Wall time (changed files) | 12:27 | **8:45** |
| Rendering nodes, Kit jobs | 83 | 36 |
| Rendering nodes, kitless jobs | 166 | 68 |
| Test functions | 379 | 309 |
| Test lines | 12,664 | 11,656 |
| Golden images | – | 137 removed |

The only change outside test files: `.github/workflows/build.yaml` no
longer lists the deleted `test_rendering_franka_soft.py`.

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

**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
restored every gap it found: the Pink `daqp` dependency row and the
dict-form `distributed=False` no-op.

- **Rendering:**
- The minimal-mode (simple-shading) golden layer went down to the Shadow
Hand rows. Cartpole's flat materials render the same at shading modes 3
and 2, so its golden images could not catch a mode regression.
  - Newton-default and always-skipped OVPhysX rows were dropped.
- `test_rendering_franka_soft.py` was deleted; every one of its nodes
always skipped.
- The yellow-background kitless file is covered by `test_ovrtx_usd.py`.
- **Deleted:** tests covered elsewhere:
- hydra (13), `preset_cli` (6), distributed device resolution (10),
runtime compatibility (4)
  - quaternion helper replays (covered by `test_math.py`)
  - three `rl_device` GPU-to-GPU rows
  - two determinism rows (385 s → 94 s)
- **Merged:** camera preset tables (19 → 4 and 6 → 2 rows), kit-decision
selectors, lazy-stub import kinds, and the Kuka OVPhysX presets.
- **Fixed tests that could not fail:**
  - the hydra unknown-preset test
  - the `parse_env_cfg` override test
  - the kitless distributed test, which now uses the real resolver
  - the fake hand's `preserve_order`
  - the sampler negative weight
  - the XR feed link
  - SO-101 output order, which used to skip where it should fail

## Follow-ups
- The OVPhysX smoke, MPM, Kuka visual-material, yellow-background and
partition-bounds rendering files are not wired into CI.
- `CameraCfg.validate_config` needs a core test.

## 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

(cherry picked from commit 0de4bf7)
@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]>
@StafaH
StafaH deleted the test/prune-tasks-tests branch October 10, 2026 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure isaac-lab Related to Isaac Lab team

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants