Skip to content

Fix replication bug to achieve skip - #6904

Merged
kellyguo11 merged 4 commits into
isaac-sim:developfrom
StafaH:mhaiderbhai/skip-kitless-usd-replication
Aug 6, 2026
Merged

kellyguo11 merged 4 commits into
isaac-sim:developfrom
StafaH:mhaiderbhai/skip-kitless-usd-replication

Conversation

@StafaH

@StafaH StafaH commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Description

Important

Confirm the pull request base before submitting. Target develop for all
contributions. The release/3.0.0-beta2 branch is a frozen stable landing
snapshot and is not used for ongoing maintenance.

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
List any dependencies that are required for this change.

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (existing functionality will not work without user modification)
  • Documentation update

Screenshots

Please attach before and after screenshots of the change if applicable.

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 added a changelog fragment under source/<pkg>/changelog.d/ for every touched package (do not edit CHANGELOG.rst or bump extension.toml — CI handles that)
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

@StafaH
StafaH requested a review from a team August 5, 2026 01:05
@github-actions github-actions Bot added documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team labels Aug 5, 2026
@greptile-apps

greptile-apps Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR changes sensor configurations to request no explicit cloning context by default, avoiding implicit USD replication in kitless runs while preserving automatic replication for spawned sensors under Kit and explicit overrides.

  • Documents the distinction between automatic and explicitly requested USD replication.
  • Changes SensorBaseCfg.cloning_contexts from an explicit USD context to an empty tuple.
  • Adds unit coverage for kitless, explicit, and automatic context dispatch.
  • Adds the required changelog fragment.

Confidence Score: 5/5

The PR appears safe to merge, with the changed default matching the replication dispatch contract and focused tests covering the intended behavior.

Spawned sensors continue to receive automatic USD replication when Kit is available, explicit overrides remain effective without Kit, and sensors that do not author prims no longer request an unnecessary USD context.

Important Files Changed

Filename Overview
source/isaaclab/isaaclab/sensors/sensor_base_cfg.py Changes the sensor default to no explicit cloning context while documenting automatic Kit replication and explicit kitless overrides.
source/isaaclab/isaaclab/cloner/replicate_session.py Updates the replication contract documentation to clarify that explicit contexts remain honored without Kit.
source/isaaclab/test/cloner/test_replicate_session.py Adds focused tests covering the new sensor default and automatic-versus-explicit USD context selection.
source/isaaclab/isaaclab/assets/asset_base_cfg.py Clarifies the public cloning-context configuration semantics for assets.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Queued sensor configuration] --> B{Explicit cloning contexts?}
  B -->|Yes| C[Use explicit contexts]
  B -->|No, empty tuple| D[Start with no contexts]
  C --> E{Spawner present and Kit available?}
  D --> E
  E -->|Yes| F[Add USD replication context]
  E -->|No| G[Keep selected contexts]
  F --> H[Replicate queued mappings]
  G --> H
Loading

Reviews (1): Last reviewed commit: "Fix replication bug to achieve skip" | Re-trigger Greptile

@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 PR changes SensorBaseCfg.cloning_contexts from an explicit USD context to an empty tuple, allowing replicate() to add USD replication only for spawned sensors when Kit is available while preserving explicit kitless overrides. Documentation, changelog, and focused dispatch tests accompany the behavior change.

  • Design and architecture: Context selection remains centralized in replicate(): explicit contexts are always honored, while automatic UsdReplicateContext insertion requires both a spawner and Kit. This removes the sensor-specific default that previously bypassed Kit availability.
  • API: The public default of SensorBaseCfg.cloning_contexts changes from USD-only to no explicit context. The updated API documentation clearly describes the new automatic and explicit behavior, and existing callers can retain kitless USD replication by explicitly listing UsdReplicateContext.
  • Implementation: The queue-to-dispatch path, explicit-context resolution, replicate_physics=False filtering, and spawn-plus-Kit automatic insertion are consistent with the stated behavior. Tests cover the new sensor default and distinguish automatic Kit-gated replication from explicit kitless replication.

No blocking issues. No inline issue met the actionable-evidence threshold; the assessment above records the review feedback.

Automated review; human maintainers own approval decisions.

@kellyguo11
kellyguo11 merged commit cfb54c0 into isaac-sim:develop Aug 6, 2026
45 of 47 checks passed
@nvsekkin nvsekkin mentioned this pull request Aug 6, 2026
6 of 7 tasks
kellyguo11 pushed a commit that referenced this pull request Aug 7, 2026
# Description
`rendering-correctness-kitless (legacy)` is red on `develop`:

```
RuntimeError: Number of camera prims in the view (1) does not match the number of environments (4).
```

Reverting #6904 to get the
pipeline back to green. Then we will follow up with a fix.

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

## 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
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [x] I have added a changelog fragment under
`source/<pkg>/changelog.d/` for every touched package (do **not** edit
`CHANGELOG.rst` or bump `extension.toml` — CI handles that)
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there
@StafaH
StafaH deleted the mhaiderbhai/skip-kitless-usd-replication branch August 7, 2026 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants