Repository navigation
Conversation
…:test_camera_renders_not_empty
Greptile SummaryThis PR removes the
Confidence Score: 5/5Safe to merge — the removed test is fully covered by the existing golden-image rendering suite. The deleted test_camera_renders_not_empty checked that at least one non-zero pixel was produced after a simulation step. validate_camera_outputs in rendering_test_utils.py, called by the already-merged test_rendering_shadow_hand.py, performs the same assertion plus stricter SSIM and pixel-diff comparisons against golden images. Coverage is maintained and broadened, so the removal introduces no regression risk. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["test_shadow_hand_vision_presets.py"] -->|"contains"| B["test_camera_renders_not_empty (removed)"]
A -->|"contains"| C["Preset validation tests (retained)"]
B -->|"checked"| D["Camera output has non-zero pixels"]
E["test_rendering_shadow_hand.py (existing)"] -->|"calls"| F["rendering_test_shadow_hand()"]
F -->|"calls"| G["validate_camera_outputs()"]
G -->|"checks"| H["max_val > 0 (non-zero pixel check)"]
G -->|"also checks"| I["SSIM + PixelDiff + Golden image comparison"]
D -.->|"superseded by"| H
style B fill:#ffcccc,stroke:#cc0000
style H fill:#ccffcc,stroke:#006600
style I fill:#ccffcc,stroke:#006600
Reviews (1): Last reviewed commit: "add changelog fragment" | Re-trigger Greptile |
source/isaaclab_tasks/test/test_shadow_hand_vision_presets.py::test_camera_renders_not_emptyThere was a problem hiding this comment.
🤖 Isaac Lab Review Bot — Multi-Perspective Analysis
Summary
This PR removes the test_camera_renders_not_empty test (and its associated _RENDER_CORRECTNESS_CASES fixture) from test_shadow_hand_vision_presets.py. The test verified that camera output tensors contained non-zero pixel values across various renderer/camera/physics combinations.
🏗️ Isaac Lab Expert
Verdict: Duplicate confirmed — removal is correct.
The removed test_camera_renders_not_empty performs a basic non-zero pixel check (finite.max() > 0.2) on camera outputs. However, test_rendering_shadow_hand.py (via rendering_test_utils.validate_camera_outputs()) already performs:
- The same non-zero pixel check (line 644-646 in
rendering_test_utils.py) - Plus SSIM golden-image comparison for rendering correctness
- Covers a superset of renderer/physics/data-type combinations (including
semantic_segmentation)
The removed test was strictly weaker — it checked pixels > 0.2 but didn't validate rendering quality. The dedicated rendering-correctness CI job exercises this more thoroughly.
Additionally, the cleanup correctly removes now-unused imports (copy, torch, ShadowHandVisionEnv, ShadowHandVisionBenchmarkEnvCfg, resolve_presets) keeping the file tidy.
🔇 Silent Failure Hunter
Risk: Low.
The rendering-correctness and rendering-correctness-kitless CI jobs (visible in the PR checks) exercise the same renderer+camera+physics matrix through test_rendering_shadow_hand.py and its kitless variant. These use stricter assertions (SSIM-based image comparison) that would catch any regression the removed test would have caught — and more.
One minor note: the removed test included xfail-marked Newton+Warp cases (PhysX tendon incompatibility) and a skip-marked OVRTX case. These edge cases are tracked as known limitations and their removal from this file doesn't reduce visibility — similar markers exist in the centralized PHYSICS_RENDERER_AOV_COMBINATIONS definition.
📊 Test Coverage Analyzer
Coverage is maintained.
| Aspect | Removed test | Remaining coverage (test_rendering_shadow_hand.py) |
|---|---|---|
| Non-zero pixel check | ✓ (basic) | ✓ (stricter, part of validate_camera_outputs) |
| SSIM golden-image comparison | ✗ | ✓ |
| PhysX + IsaacRTX combos | ✓ | ✓ |
| Newton + Warp combos | ✓ (xfail) | ✓ |
| Newton + IsaacRTX combos | ✓ | ✓ |
| OVRTX | skipped | handled separately |
The remaining tests in test_shadow_hand_vision_presets.py (preset validation, config wiring, cross-product correctness) are unaffected — only the integration rendering test is removed.
✅ Overall Assessment
Clean removal of a strictly-weaker duplicate test. The PR correctly:
- Removes the redundant test and its fixture
- Cleans up unused imports
- Adds a changelog fragment (
.skip— appropriate for test-only changes) - Does not reduce test coverage
No concerns. CI checks are still pending but this change is structurally sound.
🤖 Generated by Isaac Lab Review Bot | Multi-perspective ensemble review
Description
Cherry-picked #5767
Type of change
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there