Repository navigation
Restore rendering correctness tests in IsaacSim CI (#5764) - #5766
Conversation
# 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 -->
There was a problem hiding this comment.
🔍 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 SummaryThis PR scopes the rendering-correctness test exclusion to only the three
Confidence Score: 5/5Safe 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
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
Reviews (1): Last reviewed commit: "Restore rendering correctness tests in I..." | Re-trigger Greptile |
…rrectness-tests-in-isaacsim-ci
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:
Type of change
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there