Repository navigation
Remove duplicate test source/isaaclab_tasks/test/test_shadow_hand_vision_presets.py::test_camera_renders_not_empty - #5767
Conversation
…:test_camera_renders_not_empty
There was a problem hiding this comment.
🤖 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.pyretains 10 unit tests for config/preset validationtest_rendering_shadow_hand.pyprovides the integration-level rendering correctness coverage- The separation is cleaner: presets file → unit tests, rendering file → integration tests
🧹 Code Quality
-
Clean import removal — All 4 removed imports (
copy,torch,ShadowHandVisionBenchmarkEnvCfg,resolve_presets) were exclusively used by the deleted code. No dangling references. -
Minor observation: The
ShadowHandVisionEnvimport is also removed, which is correct since it was only used in therender_correctness_envfixture.
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.
# 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
Description
Remove duplicate test
source/isaaclab_tasks/test/test_shadow_hand_vision_presets.py::test_camera_renders_not_emptyType of change
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there