Skip to content

[Test] Group rendering correctness AOVs - #7114

Merged
ooctipus merged 16 commits into
isaac-sim:developfrom
StafaH:test/group-rendering-aovs
Aug 22, 2026
Merged

ooctipus merged 16 commits into
isaac-sim:developfrom
StafaH:test/group-rendering-aovs

Conversation

@StafaH

@StafaH StafaH commented Aug 15, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Group compatible camera AOVs so rendering correctness tests reuse one environment launch. Camera configs are overridden only in tests, including a Cartpole test adapter, while output-sensitive modes remain isolated to preserve existing golden images.

Type of change

  • Bug fix

Testing

  • Parametrization helper tests: 8 passed
  • Combined Cartpole, Shadow Hand, and Kuka RTX cases passed
  • Registered Cartpole combined case passed
  • Kitless rendering suites collected successfully
  • Formatting, lint, and changelog checks passed

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks
  • My changes generate no new warnings
  • I have added tests that prove the fix is effective
  • No documentation changes are required
  • I have added the required changelog skip fragment
  • My name already exists in CONTRIBUTORS.md

@StafaH
StafaH requested a review from a team August 15, 2026 08:05
@github-actions github-actions Bot added the isaac-lab Related to Isaac Lab team label Aug 15, 2026
@greptile-apps

greptile-apps Bot commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR consolidates compatible rendering AOV checks into shared environment launches while keeping temporal and render-product-sensitive outputs isolated.

  • Adds grouped rendering parameter generation and multi-AOV camera configuration.
  • Updates standard and kitless rendering suites to consume grouped data types.
  • Adds a test-only Cartpole adapter for combined camera outputs.
  • Updates post-merge test selectors and affected Kuka golden images.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
source/isaaclab_tasks/test/rendering_test_utils.py Introduces capture-aware AOV grouping, multi-output camera configuration, and a test-only Cartpole environment adapter while preserving temporal and minimal-mode isolation.
source/isaaclab_tasks/test/core/test_rendering_registered_tasks.py Replaces separate Cartpole albedo and depth cases with a combined test-local camera configuration and retains per-output golden validation.
.github/test-subsets/postmerge-rendering.toml Updates post-merge selectors to address the newly grouped pytest node IDs.
source/isaaclab_tasks/test/test_parametrization_helpers.py Adds coverage for AOV grouping boundaries, IDs, and pytest mark preservation.
source/isaaclab_tasks/test/core/test_rendering_lift_kuka_homo_kitless.py Applies grouped AOV parametrization after existing expected-failure markings so incompatible mark sets remain separate.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Rendering parameter combinations] --> B{AOV capture requirements}
    B -->|Static-compatible| C[One grouped environment launch]
    B -->|Motion vectors| D[Temporal launch with simulation step]
    B -->|Simple shading modes| E[Isolated launch per AOV]
    C --> F[Configure camera with multiple data types]
    D --> G[Configure and step environment]
    E --> H[Configure render-product mode]
    F --> I[Collect and compare each output]
    G --> I
    H --> I
Loading

Reviews (2): Last reviewed commit: "Merge remote-tracking branch 'upstream/d..." | Re-trigger Greptile

@StafaH StafaH changed the title Group rendering correctness AOVs [Test] Group rendering correctness AOVs Aug 15, 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

The test-local AOV grouping is consistently threaded through the rendering suites, but Cartpole’s existing OVRTX handling for rgba is not preserved and should be corrected before merge.

  • Design and architecture: Grouping by rendering configuration and pytest mark signature preserves skip/xfail/flaky scope, while explicitly isolating output-sensitive AOVs. However, rgba is omitted from the isolation set despite sharing RGB’s sensitivity to auxiliary RTX AOVs, allowing it to be grouped incompatibly.
  • API: The shared test helpers consistently move from a single data_type to a data_types list across the changed callers. These are test-support interfaces, and the change includes the required skip changelog fragment.
  • Implementation: Add rgba to group_rendering_params’ isolated data types and restore it in the Cartpole OVRTX relaxed-tolerance condition. The patch currently narrows the former data_type in ("rgb", "rgba") behavior to only groups containing rgb, so an isolated or grouped rgba case receives the stricter default threshold.

Minor fixes needed. Posted 1 actionable finding inline.

Automated review; human maintainers own approval decisions.

"distance_to_image_plane",
"instance_segmentation",
"motion_vectors",
} or data_type.startswith("simple_shading_")

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.

🟡 Warning · Implementation — rgba loses isolation and relaxed OVRTX tolerance

The isolate set omits rgba, so it can be grouped with auxiliary AOVs even though the docstring's own rationale is that RGB output changes when auxiliary RTX AOVs are active. The same change narrowed the Cartpole tolerance from data_type in ("rgb", "rgba") to "rgb" in data_types (line 1642), so an OVRTX group containing rgba now validates against the strict default threshold. Add rgba to both the isolate set and the tolerance condition.

StafaH added 4 commits August 15, 2026 12:08
…up-rendering-aovs

# Conflicts:
#	source/isaaclab_tasks/test/core/test_rendering_registered_tasks.py
…ring-aovs

# Conflicts:
#	source/isaaclab_tasks/test/core/test_rendering_cartpole_kitless.py
#	source/isaaclab_tasks/test/core/test_rendering_franka_cloth_kitless.py
#	source/isaaclab_tasks/test/core/test_rendering_lift_kuka_homo_kitless.py
#	source/isaaclab_tasks/test/core/test_rendering_registered_tasks.py
#	source/isaaclab_tasks/test/rendering_test_utils.py
#	source/isaaclab_tasks/test/test_parametrization_helpers.py
@StafaH
StafaH marked this pull request as draft August 20, 2026 23:22
…ring-aovs

# Conflicts:
#	source/isaaclab_ov/isaaclab_ov/renderers/ovrtx_renderer.py
#	source/isaaclab_ov/isaaclab_ov/renderers/ovrtx_usd.py
#	source/isaaclab_ov/test/test_ovrtx_usd.py
#	source/isaaclab_tasks/test/rendering_test_utils.py
@StafaH
StafaH marked this pull request as ready for review August 21, 2026 21:46
@StafaH
StafaH enabled auto-merge (squash) August 22, 2026 01:07
@ooctipus
ooctipus disabled auto-merge August 22, 2026 01:24
@ooctipus
ooctipus merged commit 7b504e3 into isaac-sim:develop Aug 22, 2026
47 of 48 checks passed
ooctipus pushed a commit that referenced this pull request Aug 22, 2026
## Summary

Cherry-picks the following merged PRs from `develop` onto
`release/3.0.0`, preserving each as an individual commit with `-x`
provenance:

- #7244 — Remove the unnecessary AppLauncher from task preset tests
- #7241 — Report cumulative retry wall time in the test orchestrator
- #7114 — Group compatible rendering correctness AOVs

The commits are applied in their chronological `develop` order. All
three cherry-picks completed without conflicts. The release branch
already contains the OVRTX multi-AOV prerequisite from #7286.

## Type of change

- Bug fix (non-breaking CI and test-runtime improvements)

## Validation

- Verified all three backported commits have patch IDs identical to
their source squash commits and retain their `cherry picked from`
footers.
- `git diff --check upstream/release/3.0.0..HEAD`
- Release-base changelog validation passed.
- Test orchestrator result handling: **11 passed**
- Shadow Hand camera presets: **42 passed**
- Rendering parametrization helpers: **16 passed**
- Kitless rendering suites: **166 tests collected successfully**
- `uv run isaaclab -f` passed all formatting, lint, whitespace, RST,
changelog, Git LFS, and repository-hygiene hooks.

GPU rendering execution was not repeated locally; CI remains
authoritative for the renderer integration paths already validated in
#7114.

## Checklist

- [x] I have read and understood the contribution guidelines
- [x] I have run the pre-commit checks
- [x] No documentation changes are required
- [x] My changes generate no new warnings
- [x] Existing and backported tests cover the changed behavior
- [x] Each touched source package has a changelog fragment
- [x] My name already exists in `CONTRIBUTORS.md`

---------

Co-authored-by: Piotr Barejko <[email protected]>
kellyguo11 pushed a commit that referenced this pull request Sep 9, 2026
# Description

The `ovrtx-cache-warm` job selects its tests with `test-k-expr:
(isaacsim_rtx or ovrtx) and (rgb or depth)`. That expression matches
**zero** of the 33 collected items, so the job deselects everything and
the shader-cache save step runs with nothing to publish:

```
collected 11 items / 11 deselected / 0 selected   (test_rendering_cartpole.py)
collected 22 items / 22 deselected / 0 selected   (test_rendering_cartpole_kitless.py)
```

## How #7114 made the AOV labels stale

`pytest -k` matches against parametrize IDs, and #7114 ("[Test] Group
rendering correctness AOVs") changed what those IDs are made of.

Before #7114, `_make_sensor_data_type_params()` emitted one node per
data type, and the data type was the last segment of the ID. After
#7114, `group_rendering_params()` merges every AOV that can be captured
from a single environment into one node, and the ID's last segment
becomes the *capture group* name (`static`, `temporal`) rather than any
individual data type:

| | Before #7114 | After #7114 |
| --- | --- | --- |
| kit |
`physx-isaacsim_rtx-rgb`<br>`physx-isaacsim_rtx-depth`<br>`physx-isaacsim_rtx-albedo`<br>…
| `physx-isaacsim_rtx_renderer-static` |
| kitless |
`legacy-ovphysx-ovrtx-rgb`<br>`legacy-ovphysx-ovrtx-depth`<br>… |
`legacy-ovphysx-ovrtx_renderer-static` |

`rgb` and `depth` still run — they are two of the AOVs captured inside
the `-static` node — but they are no longer *named* in any node ID. So
the `(rgb or depth)` half of the expression, which selected 4 kit + 8
kitless nodes under the old scheme, now selects nothing. The
`(isaacsim_rtx or ovrtx)` half still matches fine; only the AOV half
went stale.

The timeline is why this was never caught: #7114 merged 2026-08-21 and
the cache-warm job was added in #6905 on 2026-09-03, so the expression
was written against an ID scheme that had already been replaced two
weeks earlier. The job has deselected everything for its entire life.

Only this one expression was affected — the other `test-k-expr` values
in the workflows (`legacy`, `ovstage`, `not ovphysx`, `test_environments
and not (Soft or Cloth or Cable)`) match on segments #7114 did not
touch.

## Impact

* The warmer compiles no PSO blobs, so the `kit/` and `kitless/`
shader-cache trees are never populated and the rendering-correctness
jobs that restore them keep compiling shaders cold.
* Nothing bad is *published*: the save steps in
`.github/actions/ovrtx-shader-cache/action.yml` are gated on non-zero
file counts, so an empty tree is never written back.
* `verify.sh` does emit `::error::` for the empty trees, but the job is
`continue-on-error: true`, so the failure never surfaced.

## Fix

Pin the warmer to the RTX-renderer subset of the existing post-merge
node lists (2 kit + 4 kitless nodes) via the
`test-node-ids-file`/`test-node-ids-key` mechanism the sibling
`rendering-correctness-kitless-*` jobs already use, and drop
`test-k-expr`.

The mechanism change is deliberate rather than repairing the expression
to `(isaacsim_rtx or ovrtx) and static`. A `-k` expression that matches
nothing is indistinguishable from one that legitimately matches nothing
in a given file, so `tools/conftest.py` treats "0 selected with a
k-expr" as a pass by design — which is exactly why this went unnoticed
for the life of the job. An unknown node ID is passed to pytest as an
explicit target and fails collection outright, so the next
parametrize-ID rename cannot silently empty this job again.

Verified by generating the parametrize IDs from `rendering_test_utils`
at both `7b504e34df^` and `develop`, confirming the before/after IDs
above, that the pre-fix 11/22 deselected counts reproduce exactly, and
that all six configured node IDs resolve.

## Type of change

- Bug fix (non-breaking change which fixes an issue)

## Release backport

- [ ] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `develop`

## 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 <!-- CI-only change; no source package is touched -->
- [x] I have added a changelog fragment under
`source/<pkg>/changelog.d/` for every touched package <!-- none touched:
CI configuration only -->
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there
@StafaH
StafaH deleted the test/group-rendering-aovs branch September 13, 2026 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants