Skip to content

Remove duplicate test (#5767) - #5768

Merged
huidongc merged 2 commits into
isaac-sim:release/3.0.0-beta2from
huidongc:backport-remove-duplicate-test
May 25, 2026
Merged

huidongc merged 2 commits into
isaac-sim:release/3.0.0-beta2from
huidongc:backport-remove-duplicate-test

Conversation

@huidongc

@huidongc huidongc commented May 25, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Cherry-picked #5767

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

@github-actions github-actions Bot added the isaac-lab Related to Isaac Lab team label May 25, 2026
@greptile-apps

greptile-apps Bot commented May 25, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR removes the test_camera_renders_not_empty integration test from test_shadow_hand_vision_presets.py, along with its supporting fixture and unused imports, replacing it with the already-existing dedicated test_rendering_shadow_hand.py test suite.

  • The removed test checked that camera output tensors contain at least one non-zero pixel after stepping the simulation. The same assertion is performed inside validate_camera_outputs in rendering_test_utils.py, which is called by test_rendering_shadow_hand.py and also performs SSIM + pixel-diff golden image comparison — a strict superset of the removed check.
  • A .skip changelog stub is added to satisfy the project's towncrier workflow for test-only changes.

Confidence Score: 5/5

Safe 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

Filename Overview
source/isaaclab_tasks/test/test_shadow_hand_vision_presets.py Removes test_camera_renders_not_empty, its render_correctness_env fixture, _RENDER_CORRECTNESS_CASES, and the imports they required. All remaining tests are preset-validation and config-resolution checks that are unaffected.
source/isaaclab_tasks/changelog.d/huidongc-remove-duplicate-test.skip Empty towncrier skip-file; correct approach for test-only changes that require no user-visible changelog entry.

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
Loading

Reviews (1): Last reviewed commit: "add changelog fragment" | Re-trigger Greptile

@huidongc huidongc changed the title Remove duplicate test source/isaaclab_tasks/test/test_shadow_hand_vision_presets.py::test_camera_renders_not_empty Remove duplicate test (#5767) May 25, 2026

@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

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:

  1. The same non-zero pixel check (line 644-646 in rendering_test_utils.py)
  2. Plus SSIM golden-image comparison for rendering correctness
  3. 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

@huidongc
huidongc requested review from kellyguo11 and pbarejko May 25, 2026 03:33
@huidongc
huidongc merged commit 53d0fe4 into isaac-sim:release/3.0.0-beta2 May 25, 2026
39 checks passed
@huidongc
huidongc deleted the backport-remove-duplicate-test branch May 25, 2026 05:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants