Skip to content

Restore rendering correctness tests in IsaacSim CI (#5764) - #5766

Merged
huidongc merged 2 commits into
isaac-sim:release/3.0.0-beta2from
huidongc:backport-restore-rendering-correctness-tests-in-isaacsim-ci
May 25, 2026
Merged

huidongc merged 2 commits into
isaac-sim:release/3.0.0-beta2from
huidongc:backport-restore-rendering-correctness-tests-in-isaacsim-ci

Conversation

@huidongc

Copy link
Copy Markdown
Collaborator

Description

The skip list is a global list that will impact all CI jobs. We only want to skip render correctness tests in the isaaclab_tasks (1/2/3) test jobs. We still want to include rendering correctness tests for IsaacSim nightly integration CI jobs:

./isaaclab.sh -p -m pytest tools -m isaacsim_ci

Type of change

  • Testing-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

# Description

The skip list is a global list that will impact all CI jobs. We only
want to skip render correctness tests in the isaaclab_tasks (1/2/3) test
jobs. We still want to include rendering correctness tests for IsaacSim
nightly integration CI jobs:

```sh
./isaaclab.sh -p -m pytest tools -m isaacsim_ci
```


## Type of change

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

<!--
As you go through the checklist above, you can mark something as done by
putting an x character in it

For example,
- [x] I have done this task
- [ ] I have not done this task
-->

@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.

🔍 Code Review Summary\n\nOverall: Clean, well-motivated refactoring that moves rendering test exclusion from a global Python skip-list to a per-job CI filter. The approach is sound — it decouples the isaaclab_tasks sharded jobs from the isaacsim_ci integration jobs so rendering correctness tests can run where they should.\n\n### Findings\n\n#### 1. 🟡 Broad substring match may over-exclude future tests\nFile: .github/workflows/build.yaml\n\nThe exclude-pattern: \"test_rendering_\" is a substring match. Any future test file containing test_rendering_ in its path (even if unrelated to correctness tests, e.g. test_rendering_utils.py or test_rendering_performance.py) would be silently excluded from the isaaclab_tasks jobs. Consider whether a more specific pattern like test_rendering_correctness or a comment documenting this coupling would be worthwhile.\n\n#### 2. 🟢 Variable rename in "not " pattern handling is correct\nFile: .github/actions/run-tests/action.yml (line ~182)\n\nThe rename from exclude_pattern → filter_exclude_pattern correctly avoids shadowing the new exclude_pattern function parameter. The merge logic (${exclude_pattern},${filter_exclude_pattern}) handles the case where both an explicit exclude-pattern input and a legacy "not X" filter-pattern are provided simultaneously. Nice.\n\n#### 3. 🟡 run-package-tests exposes exclude-pattern but run-tests consumers may not expect it\nFile: .github/actions/run-package-tests/action.yml\n\nThe new exclude-pattern input is exposed at the run-package-tests level and properly forwarded to run-tests. However, neither action documents what happens if exclude-pattern contains characters that have special meaning in shell expansions (commas are fine, but spaces or glob chars in a future pattern could break the -e TEST_EXCLUDE_PATTERN=... env injection). A minor robustness suggestion: consider quoting $exclude_pattern where it's interpolated into docker_env_vars.\n\n#### 4. 🟢 Removal of RENDERING_CORRECTNESS_TESTS / RENDERING_CORRECTNESS_KITLESS_TESTS is safe\nFile: tools/test_settings.py\n\nThe removed lists were only consumed via *RENDERING_CORRECTNESS_TESTS and *RENDERING_CORRECTNESS_KITLESS_TESTS in TESTS_TO_SKIP. No other file references these symbols (verified from the diff context), so the removal is clean with no dangling references.\n\n### Verdict\n\nThe PR achieves its goal correctly. The exclude-pattern mechanism is a more targeted approach than the global skip list, and it properly ensures rendering correctness tests are only excluded from the isaaclab_tasks shards while remaining active in the IsaacSim CI integration jobs. The minor notes above are non-blocking suggestions for future-proofing.\n\n---\n\nUpdate (89789c9): New commit removes the duplicate rendering correctness tests (_RENDER_CORRECTNESS_CASES, render_correctness_env fixture, test_camera_renders_not_empty) from test_shadow_hand_vision_presets.py along with their now-unused imports (copy, torch, ShadowHandVisionEnv, ShadowHandVisionBenchmarkEnvCfg, resolve_presets). This is the correct cleanup — these tests now live exclusively in the IsaacSim CI pipeline. No new issues introduced. ✅

@greptile-apps

greptile-apps Bot commented May 25, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR scopes the rendering-correctness test exclusion to only the three isaaclab_tasks PR CI jobs rather than applying it globally via TESTS_TO_SKIP, which was also suppressing the tests in the IsaacSim nightly integration CI. It achieves this by introducing a new exclude-pattern input to both composite actions and setting exclude-pattern: "test_rendering_" on each isaaclab_tasks [N/3] job in build.yaml.

  • Removes RENDERING_CORRECTNESS_TESTS / RENDERING_CORRECTNESS_KITLESS_TESTS from the global TESTS_TO_SKIP list in test_settings.py; the test_rendering_* filename prefix in exclude-pattern covers both regular and kitless variants uniformly.
  • Adds exclude-pattern as a new optional input to run-tests/action.yml and run-package-tests/action.yml; the "not " legacy path and the new explicit exclude-pattern are merged correctly before TEST_EXCLUDE_PATTERN is set.

Confidence Score: 5/5

Safe to merge; the scoping change is narrow and all existing CI jobs continue to exclude rendering tests through their existing filter-pattern or exclude-pattern mechanisms.

The positional argument renumbering in the shell function is correct, the comma-separated exclude-pattern merging logic matches what conftest.py expects, and every other CI job either uses a path-specific filter-pattern that already excludes isaaclab_tasks tests or the legacy "not isaaclab_" pattern that continues to function unchanged. The only finding is a minor logging order issue.

No files require special attention.

Important Files Changed

Filename Overview
tools/test_settings.py Removes RENDERING_CORRECTNESS_TESTS and RENDERING_CORRECTNESS_KITLESS_TESTS from TESTS_TO_SKIP, allowing rendering tests to be discovered in IsaacSim nightly CI
.github/actions/run-tests/action.yml Adds exclude-pattern input parameter at position 8, correctly shifting all downstream positional args; merges "not " and explicit exclude-pattern values before setting TEST_EXCLUDE_PATTERN
.github/actions/run-package-tests/action.yml Adds exclude-pattern input declaration and threads it through to the inner run-tests action
.github/workflows/build.yaml Adds exclude-pattern: "test_rendering_" to all three isaaclab_tasks sharded jobs so rendering tests are skipped only in those PR CI jobs

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[CI Job starts] --> B{filter-pattern set?}
    B -- "yes, starts with 'not '" --> C["filter_exclude_pattern = strip 'not '"]
    B -- "yes, positive pattern" --> D[SET TEST_FILTER_PATTERN]
    B -- no --> E[No filter pattern]

    C --> F{exclude-pattern also set?}
    F -- yes --> G["exclude_pattern = exclude_pattern + ',' + filter_exclude_pattern"]
    F -- no --> H["exclude_pattern = filter_exclude_pattern"]

    G --> I[SET TEST_EXCLUDE_PATTERN]
    H --> I
    D --> J{exclude-pattern set?}
    J -- yes --> I
    J -- no --> K[No exclude pattern]

    I --> L[Docker container runs conftest.py]
    K --> L
    E --> J

    L --> M["_collect_test_files()"]
    M --> N{file in TESTS_TO_SKIP?}
    N -- yes --> O[Skip file]
    N -- no --> P{filter_pattern matches path?}
    P -- no --> O
    P -- yes --> Q{any exclude_pattern substring in path?}
    Q -- yes --> O
    Q -- no --> R[Include file in test run]

    style O fill:#f88,color:#000
    style R fill:#8f8,color:#000
Loading

Reviews (1): Last reviewed commit: "Restore rendering correctness tests in I..." | Re-trigger Greptile

Comment thread .github/actions/run-tests/action.yml Resolved
@huidongc
huidongc merged commit 9fe080c into isaac-sim:release/3.0.0-beta2 May 25, 2026
39 checks passed
@huidongc
huidongc deleted the backport-restore-rendering-correctness-tests-in-isaacsim-ci branch May 25, 2026 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants