Skip to content

Remove duplicate test source/isaaclab_tasks/test/test_shadow_hand_vision_presets.py::test_camera_renders_not_empty - #5767

Merged
huidongc merged 2 commits into
isaac-sim:developfrom
huidongc:remove-duplicate-test
May 25, 2026
Merged

huidongc merged 2 commits into
isaac-sim:developfrom
huidongc:remove-duplicate-test

Conversation

@huidongc

@huidongc huidongc commented May 25, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Remove duplicate test source/isaaclab_tasks/test/test_shadow_hand_vision_presets.py::test_camera_renders_not_empty

Type of change

  • Test-only change

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the changelog and the corresponding version in the extension's config/extension.toml file
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

@huidongc
huidongc changed the base branch from main to develop May 25, 2026 03:20
@github-actions github-actions Bot added documentation Improvements or additions to documentation isaac-sim Related to Isaac Sim team isaac-mimic Related to Isaac Mimic team infrastructure isaac-lab Related to Isaac Lab team labels May 25, 2026
@huidongc
huidongc requested review from pbarejko and removed request for matthewtrepte, ooctipus and xyao-nv May 25, 2026 03:21

@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 — Multi-Perspective Analysis

PR #5767: Remove duplicate test test_camera_renders_not_empty


Summary

This PR removes the test_camera_renders_not_empty integration test and its associated render_correctness_env fixture (~125 lines) from test_shadow_hand_vision_presets.py. It also cleans up 4 imports that were only used by the removed code (copy, torch, ShadowHandVisionBenchmarkEnvCfg, ShadowHandVisionEnv, resolve_presets).


🏗️ Architecture & Design

✅ Correct removal. The removed test is functionally superseded by test_rendering_shadow_hand.py, which uses the shared rendering_test_utils.py::validate_camera_outputs() framework. That framework provides:

  • The same renderer × camera × physics-backend matrix coverage
  • Stricter validation (golden image comparison, not just non-zero pixel checks)
  • Better infrastructure (HTML reports, determinism fixtures, comparison scores)

The remaining tests in test_shadow_hand_vision_presets.py are distinct unit tests for preset validation logic (config validation, preset resolution, data type assertions) — they don't overlap with the removed integration test.


🔇 Silent Failure Analysis

Low risk. The test_rendering_shadow_hand.py suite covers all the same renderer+physics+data_type combinations via PHYSICS_RENDERER_AOV_COMBINATIONS. One minor nuance:

Aspect Removed test test_rendering_shadow_hand.py
Validation finite.max() > 0.2 validate_camera_outputs() with golden image comparison
Physics combos PhysX + Newton PhysX + Newton
Renderers IsaacRTX + Warp (+ OVRTX skipped) All via PHYSICS_RENDERER_AOV_COMBINATIONS
Environment ShadowHandVisionBenchmarkEnvCfg Same Shadow Hand environment

No unique test scenario is lost.


📊 Test Coverage Assessment

Coverage is maintained. After this removal:

  • test_shadow_hand_vision_presets.py retains 10 unit tests for config/preset validation
  • test_rendering_shadow_hand.py provides the integration-level rendering correctness coverage
  • The separation is cleaner: presets file → unit tests, rendering file → integration tests

🧹 Code Quality

  1. Clean import removal — All 4 removed imports (copy, torch, ShadowHandVisionBenchmarkEnvCfg, resolve_presets) were exclusively used by the deleted code. No dangling references.

  2. Minor observation: The ShadowHandVisionEnv import is also removed, which is correct since it was only used in the render_correctness_env fixture.


Verdict

LGTM — This is a straightforward cleanup that removes a legitimately duplicated integration test in favor of the more comprehensive test_rendering_shadow_hand.py suite. No coverage gaps introduced.

@huidongc huidongc mentioned this pull request May 25, 2026
7 tasks done
@huidongc
huidongc merged commit 966fb87 into isaac-sim:develop May 25, 2026
59 of 61 checks passed
@huidongc
huidongc deleted the remove-duplicate-test branch May 25, 2026 05:06
huidongc added a commit that referenced this pull request May 25, 2026
# Description

Cherry-picked #5767 

## Type of change

- Test-only change

## 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] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation infrastructure isaac-lab Related to Isaac Lab team isaac-mimic Related to Isaac Mimic team isaac-sim Related to Isaac Sim team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants