Skip to content

Restore rendering correctness tests in IsaacSim CI - #5764

Merged
huidongc merged 3 commits into
isaac-sim:developfrom
huidongc:restore-rendering-correctness-tests-in-isaacsim-ci
May 25, 2026
Merged

huidongc merged 3 commits into
isaac-sim:developfrom
huidongc:restore-rendering-correctness-tests-in-isaacsim-ci

Conversation

@huidongc

@huidongc huidongc commented May 24, 2026 •

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

@greptile-apps

greptile-apps Bot commented May 24, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR fixes an over-broad rendering-test exclusion by replacing the global TESTS_TO_SKIP entries for rendering correctness tests with a scoped exclude-pattern mechanism applied only to the three isaaclab_tasks CI shard jobs, so the IsaacSim nightly integration job can pick up those tests normally.

  • Removes RENDERING_CORRECTNESS_TESTS / RENDERING_CORRECTNESS_KITLESS_TESTS from test_settings.py and TESTS_TO_SKIP, so they are no longer globally skipped across every CI job.
  • Introduces a new exclude-pattern input to both run-package-tests and run-tests composite actions; run-tests merges it with any legacy "not <pattern>" exclude from filter-pattern before exporting TEST_EXCLUDE_PATTERN to the Docker container.
  • Sets exclude-pattern: "test_rendering_" on each of the three isaaclab_tasks shard jobs in build.yaml, giving conftest.py the information it needs to skip those files only in those jobs.

Confidence Score: 5/5

Safe to merge. The changes are scoped to CI infrastructure and correctly propagate the new exclude-pattern through the full action chain.

The complete action chain from build.yaml → run-package-tests → run-tests is wired correctly: the new input is declared at each layer and forwarded, positional argument numbering in the shell function and its call site match, and conftest.py already supports comma-separated exclude patterns via TEST_EXCLUDE_PATTERN. The global TESTS_TO_SKIP removal is intentional and leaves rendering tests available for nightly CI while the explicit exclude-pattern keeps them out of the three shard jobs.

No files require special attention.

Important Files Changed

Filename Overview
.github/actions/run-tests/action.yml Adds exclude-pattern input, inserts it as positional arg $8 in the shell function (shifting curobo_only to $9 and all subsequent args), refactors "not pattern" handling to merge filter-derived and explicit excludes before a single TEST_EXCLUDE_PATTERN export. Positional argument count and call site both updated correctly.
.github/actions/run-package-tests/action.yml Declares the new exclude-pattern input and forwards it to the inner run-tests action. Previously this input was missing, causing silent drop; the gap is now closed.
.github/workflows/build.yaml Adds exclude-pattern: "test_rendering_" to all three isaaclab_tasks shard jobs, scoping the rendering test exclusion to those jobs rather than applying it globally.
tools/test_settings.py Removes RENDERING_CORRECTNESS_TESTS and RENDERING_CORRECTNESS_KITLESS_TESTS constants and their inclusions in TESTS_TO_SKIP, so rendering tests are no longer globally skipped and can run in the IsaacSim nightly CI.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A["build.yaml<br/>isaaclab_tasks shard jobs (1/2/3)<br/>exclude-pattern: 'test_rendering_'"] --> B["run-package-tests/action.yml<br/>Accepts + forwards exclude-pattern"]
    B --> C["run-tests/action.yml<br/>run_tests() function<br/>arg $8 = exclude_pattern"]
    C --> D{filter_pattern starts with 'not '?}
    D -- Yes --> E["Combine legacy filter_exclude_pattern<br/>with explicit exclude_pattern"]
    D -- No --> F["Set TEST_FILTER_PATTERN env var"]
    E --> G["Set TEST_EXCLUDE_PATTERN env var<br/>in Docker container"]
    F --> G
    G --> H["conftest.py _collect_test_files()<br/>reads TEST_EXCLUDE_PATTERN"]
    H --> I{path contains exclude entry?}
    I -- Yes --> J["Skip test_rendering_*.py"]
    I -- No --> K["Include test file"]
Loading

Reviews (3): Last reviewed commit: "plumbing of exclude-pattern" | Re-trigger Greptile

Comment thread .github/workflows/build.yaml Resolved
Comment thread tools/test_settings.py Resolved
@huidongc huidongc changed the title Restore rendering correctness tests in isaacsim CI Restore rendering correctness tests in IsaacSim CI May 24, 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.

Code Review Summary

Thank you for working on restoring the rendering correctness tests! I've identified a critical issue that will prevent this PR from achieving its intended goal.


🔴 Critical: exclude-pattern Input Not Defined in Actions

Severity: Blocker

The PR adds exclude-pattern: "test_rendering_" to three jobs in build.yaml, but this input is not defined in either the run-package-tests or run-tests composite actions.

What happens:

  • GitHub Actions silently ignores undefined inputs
  • The TEST_EXCLUDE_PATTERN environment variable will never be set
  • The rendering tests will run in the regular isaaclab_tasks shards instead of being excluded
  • Combined with removing the tests from TESTS_TO_SKIP, this means the tests will run twice (once in the shards, once in dedicated jobs)

Evidence:

  • .github/actions/run-package-tests/action.yml defines these inputs: image-tag, isaacsim-base-image, isaacsim-version, dockerfile-path, cache-tag, filter-pattern, shard-index, shard-count, curobo-only, quarantined-only, include-files, pytest-options, extra-pip-packages, container-name
  • No exclude-pattern input exists

Recommended fix:
Add the exclude-pattern input to both actions and wire it through to set TEST_EXCLUDE_PATTERN:

# In .github/actions/run-package-tests/action.yml inputs:
exclude-pattern:
  description: 'Pattern to exclude test files (e.g., test_rendering_)'
  default: ''
  required: false

Then pass it through to run-tests:

exclude-pattern: ${{ inputs.exclude-pattern }}

And in run-tests/action.yml, add logic to set the env var:

if [ -n "$exclude_pattern_input" ]; then
  docker_env_vars="$docker_env_vars -e TEST_EXCLUDE_PATTERN=$exclude_pattern_input"
fi

🟡 Suggestion: Consider Test Discovery Instead of Hardcoded Lists

The current approach (and the original test_settings.py approach) relies on manually maintaining lists of test files. Consider using pytest markers or filename conventions that conftest.py can discover automatically.

For example, the test_rendering_ prefix is already a convention - the exclude pattern approach is more maintainable than explicit file lists.


📝 Minor: PR Description Incomplete

The PR template checklist is not filled in, and no linked issue is provided. For infrastructure changes affecting CI behavior, it's helpful to document:

  • Why the change is being made (what problem it solves)
  • How to verify the change works

Summary: Please add the exclude-pattern input to the GitHub Actions before merging. Without this fix, the PR will cause rendering tests to run in both the regular shards AND the dedicated rendering jobs, likely causing CI failures or wasted compute.


Update (0ee1aec): ✅ Critical blocker resolved. The new commits add exclude-pattern as a declared input to both run-package-tests/action.yml and run-tests/action.yml, with proper wiring through to set TEST_EXCLUDE_PATTERN in the Docker environment. The implementation correctly handles combining exclude-pattern with the legacy not <pattern> form in filter-pattern. The fix follows the recommended approach from this review. No new issues found in the incremental changes.

@huidongc
huidongc requested review from nvsekkin and removed request for hhansen-bdai May 24, 2026 15:40
@huidongc
huidongc merged commit b368912 into isaac-sim:develop May 25, 2026
37 checks passed
@huidongc
huidongc deleted the restore-rendering-correctness-tests-in-isaacsim-ci branch May 25, 2026 02:17
huidongc added a commit to huidongc/IsaacLab that referenced this pull request May 25, 2026
# 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
-->
huidongc added a commit that referenced this pull request May 25, 2026
# 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 -->
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