Skip to content

Fix ISAACSIM_ASSET_ROOT being ignored when resolving the asset root - #6739

Merged
kellyguo11 merged 4 commits into
isaac-sim:developfrom
sheikh-nv:fix/asset-root-runtime-override
Jul 28, 2026
Merged

kellyguo11 merged 4 commits into
isaac-sim:developfrom
sheikh-nv:fix/asset-root-runtime-override

Conversation

@sheikh-nv

@sheikh-nv sheikh-nv commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

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.

Isaac Lab's asset paths ignore the documented ISAACSIM_ASSET_ROOT environment
variable, so users cannot point Isaac Lab at a local, self-hosted, or air-gapped copy
of the assets.

NUCLEUS_ASSET_ROOT_DIR and every path derived from it are resolved by parsing
persistent.isaac.asset_root.cloud out of apps/isaaclab.python.kit. Because the value
comes from the experience file rather than the environment, the variable has no effect on
Isaac Lab's constants, which stay on the production S3 bucket.

The variable does not reach Isaac Sim's own asset root either. ISAACSIM_ASSET_ROOT is
applied by isaacsim.storage.native, which sets persistent.isaac.asset_root.default at
extension startup, and the shipped Isaac Lab experiences do not load that extension. So in
an Isaac Lab launch today the documented override is inert on both sides, which is why this
change touches both the resolver and the experience files.

In #6318 the reporter worked around the second half by configuring
persistent.isaac.asset_root.default to a local directory directly, with
persistent.isaac.asset_root.cloud unset entirely, and ISAAC_NUCLEUS_DIR still resolved
to the cloud URL because Isaac Lab only read cloud.

This change makes Isaac Lab follow the same override Isaac Sim documents:

  • ISAACSIM_ASSET_ROOT is read first and used exactly as isaacsim.storage.native uses it,
    so the two sides cannot resolve different roots from the same value. The only deviation is
    the trailing separator, stripped for both / and \ because Isaac Lab concatenates further
    path components onto the root and the variable is documented for Windows as well.
  • The experience file remains the fallback for kitless use, but now reads
    persistent.isaac.asset_root.default before the legacy persistent.isaac.asset_root.cloud,
    matching the only asset-root setting Isaac Sim resolves. Note the migration consequence:
    redirecting Isaac Lab by editing only the cloud key in an experience file no longer has
    any effect, since the shipped experiences leave default on the cloud URL. This is called
    out in both the new documentation and the changelog fragment.
  • isaacsim.storage.native is added to the isaaclab.python and
    isaaclab.python.headless experiences so Isaac Sim's own asset-root APIs apply the
    variable too. See the note on Removes Isaac Sim core extensions from app file to avoid warp conflict #6499 below.
  • New documentation covers pointing Isaac Lab at a local asset root.

Note on scope: this makes ISAACSIM_ASSET_ROOT the supported runtime override for the
asset root. Editing persistent.isaac.asset_root.default in an experience file also works,
since that is the fallback Isaac Lab reads. What it does not restore is a command-line
override such as --kit_args="--/persistent/isaac/asset_root/cloud=<path>": Isaac Lab still
does not read the live Carb setting, so changing it at runtime alone will not move these
constants.

On re-adding isaacsim.storage.native and Warp

#6499 removed isaacsim.storage.native by name, along with the other Isaac Sim
extensions, to keep Isaac Sim's Warp version out of the extension graph. This change
re-adds only that one extension, and it does not reintroduce that risk:

  • Walking the recursive dependency closure, isaacsim.storage.native resolves 55
    extensions while isaacsim.core.version — which both experiences already load —
    resolves 54. The delta is exactly one extension: isaacsim.storage.native itself. Its
    dependencies, isaacsim.core.version and omni.client, are already in the graph.
  • No Warp extension appears anywhere in that closure.
  • Headless launches before and after this change both report Warp at the unchanged
    baseline 1.13.0. After the change, native storage is enabled and the Carb default
    setting plus every Isaac Lab asset constant resolve to the local path.

This follows the same approach as #6697, which re-added omni.physics.physx for the
PhysX registration bridge without restoring the Isaac Sim core extension or its Warp
dependency.

Known limitation, unchanged by this PR

The experience-file fallback always reads apps/isaaclab.python.kit regardless of which
experience was launched. This is inert today because every shipped experience carries the
same asset root, but editing the value in another experience file still has no effect on
Isaac Lab.

Related but separate: #4478 and #4479 propose a broader offline mode with asset
mirroring and an --offline flag. This PR is the narrow fix for the documented
environment override.

Fixes #6318

Type of change

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

Screenshots

Not applicable, this change has no visual output.

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

Isaac Lab resolved its asset paths by parsing the asset root out of
apps/isaaclab.python.kit, so the documented ISAACSIM_ASSET_ROOT environment
variable had no effect and local, self-hosted, and air-gapped asset roots could
not be used.

Read ISAACSIM_ASSET_ROOT first, matching how isaacsim.storage.native applies it,
and keep the experience file as the fallback for kitless use. The fallback now
reads persistent.isaac.asset_root.default before the legacy cloud setting, since
default is the only asset-root setting Isaac Sim resolves.

Load isaacsim.storage.native in the base and headless experiences so Isaac Sim's
own asset-root APIs follow the variable too. isaac-sim#6499 removed this extension to keep
Isaac Sim's Warp version out of the graph. Re-adding it pulls in no further
extensions, because its dependencies resolve entirely within the closure of
isaacsim.core.version, which the experiences already load, and that closure
contains no Warp extension.

Also document how to point Isaac Lab at a local asset root.
@sheikh-nv
sheikh-nv requested a review from a team July 27, 2026 14:59
@github-actions github-actions Bot added bug Something isn't working documentation Improvements or additions to documentation isaac-sim Related to Isaac Sim team isaac-lab Related to Isaac Lab team labels Jul 27, 2026
@greptile-apps

greptile-apps Bot commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR aligns Isaac Lab and Isaac Sim asset-root resolution.

  • Honors ISAACSIM_ASSET_ROOT when initializing Isaac Lab asset constants.
  • Prefers the default Kit asset-root setting while retaining the legacy cloud fallback.
  • Enables native storage in the GUI and headless base experiences.
  • Adds unit coverage and documents local and air-gapped asset configuration.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
source/isaaclab/isaaclab/utils/assets.py Adds environment-first asset-root resolution and changes the experience fallback to prefer the default setting.
apps/isaaclab.python.kit Enables native storage for the standard GUI experience.
apps/isaaclab.python.headless.kit Enables native storage for the standard headless experience.
source/isaaclab/test/utils/test_assets.py Covers environment precedence, separator normalization, fallback parsing, and exported constants.
source/isaaclab/test/app/test_experience_files.py Verifies native-storage inclusion in base experiences and inheritance by derived experiences.
docs/source/setup/installation/asset_caching_details.inc Documents local asset roots, precedence, runtime behavior, and the legacy-setting migration.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    Env["ISAACSIM_ASSET_ROOT"] --> Resolver["Isaac Lab asset-root resolver"]
    Kit["Kit default setting<br/>legacy cloud fallback"] --> Resolver
    Resolver --> Constants["Isaac Lab asset constants"]
    Base["Base GUI/headless experiences"] --> Native["isaacsim.storage.native"]
    Native --> SimRoot["Isaac Sim asset-root APIs"]
    Base --> Derived["Rendering and XR experiences"]
Loading

Reviews (2): Last reviewed commit: "Match Isaac Sim's environment-value hand..." | 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

Summary

This change makes ISAACSIM_ASSET_ROOT take precedence when resolving NUCLEUS_ASSET_ROOT_DIR and its derived constants, reorders the experience-file fallback to read persistent.isaac.asset_root.default before the legacy ...cloud, adds isaacsim.storage.native to the two base experiences, and documents the local-asset-root workflow. The resolver logic is small and correct: the env lookup is truthiness-gated, kit parsing keeps its previous per-setting semantics, and the exported constants follow the new resolution. Two things are worth addressing before merge: the kit-file reorder silently invalidates the pre-existing workaround of editing only the cloud key, and the trailing-separator normalization does not match the Windows form the new docs recommend.

Architecture impact

Contained. assets.py gains two private helpers and a module-level path constant; no public API surface changes. Re-adding isaacsim.storage.native to the two base experiences is the only extension-graph change, and the PR argues (plausibly) that it adds no Warp dependency. The experience-file fallback still hardcodes apps/isaaclab.python.kit regardless of the launched experience, which the PR calls out as a known, pre-existing limitation.

Test coverage

Good unit coverage for the new resolution path: env override precedence, kitless fallback, default-before-cloud ordering, legacy-only kit files, and the exported constants via module reload (restored in a finally). The experience-file test is static text inspection only, so it confirms the dependency is declared but not that Isaac Sim's live asset root actually follows the variable at runtime; that behavior remains verified only manually. Consider one test that exercises the unpatched _KIT_EXPERIENCE_PATH so a broken relative path walk fails deterministically.

Implementation verdict

Minor fixes needed. Posted 3 actionable findings inline.

Automated comment-only review; human maintainers own approval decisions.

Strip a trailing backslash and surrounding whitespace from ISAACSIM_ASSET_ROOT,
so the documented Windows form cannot produce a doubled separator and a
whitespace-only value falls back to the experience file instead of blanking the
asset root.

Document that editing only persistent.isaac.asset_root.cloud in an experience
file no longer redirects Isaac Lab assets, and record the same migration
guidance in the changelog fragment. State that the environment variable is the
only supported way to move the Isaac Lab asset paths, because they resolve once
when the module is imported.

Cover the Windows form, the blank value, and the unpatched experience-file path
constant with tests.
The resolver stripped surrounding whitespace before testing ISAACSIM_ASSET_ROOT
for a value, while isaacsim.storage.native tests the raw value and stores it
unchanged apart from a trailing slash. That split the two sides: a whitespace-only
value left the Carb setting holding whitespace while Isaac Lab fell back to the
experience file, and a real path with accidental padding resolved to a different
directory on each side.

Use the raw value, keeping only the trailing-separator strip that Isaac Lab needs
because it concatenates further path components. Replace the whitespace-only test
with an empty-string case, which is where both sides agree to skip the override.

Also state in the documentation that the environment variable is the only
supported runtime override rather than the only supported mechanism, since
editing persistent.isaac.asset_root.default in an experience file does work.
@sheikh-nv

Copy link
Copy Markdown
Contributor Author

@greptileai re-review please. The resolver changed twice since your pass on 245a474: the environment value is now used exactly as isaacsim.storage.native uses it, with only the trailing separator stripped, and the docs and changelog now carry migration guidance for the persistent.isaac.asset_root.cloud key.

@kellyguo11
kellyguo11 merged commit 846f6e1 into isaac-sim:develop Jul 28, 2026
43 checks passed
matthewtrepte pushed a commit to matthewtrepte/IsaacLab that referenced this pull request Aug 4, 2026
…saac-sim#6739)

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

<!--
Thank you for your interest in sending a pull request. Please make sure
to check the contribution guidelines.

Link:
https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html

💡 Please try to keep PRs small and focused. Large PRs are harder to
review and merge.
-->

Isaac Lab's asset paths ignore the documented `ISAACSIM_ASSET_ROOT`
environment
variable, so users cannot point Isaac Lab at a local, self-hosted, or
air-gapped copy
of the assets.

`NUCLEUS_ASSET_ROOT_DIR` and every path derived from it are resolved by
parsing
`persistent.isaac.asset_root.cloud` out of `apps/isaaclab.python.kit`.
Because the value
comes from the experience file rather than the environment, the variable
has no effect on
Isaac Lab's constants, which stay on the production S3 bucket.

The variable does not reach Isaac Sim's own asset root either.
`ISAACSIM_ASSET_ROOT` is
applied by `isaacsim.storage.native`, which sets
`persistent.isaac.asset_root.default` at
extension startup, and the shipped Isaac Lab experiences do not load
that extension. So in
an Isaac Lab launch today the documented override is inert on both
sides, which is why this
change touches both the resolver and the experience files.

In isaac-sim#6318 the reporter worked around the second half by configuring
`persistent.isaac.asset_root.default` to a local directory directly,
with
`persistent.isaac.asset_root.cloud` unset entirely, and
`ISAAC_NUCLEUS_DIR` still resolved
to the cloud URL because Isaac Lab only read `cloud`.

This change makes Isaac Lab follow the same override Isaac Sim
documents:

- `ISAACSIM_ASSET_ROOT` is read first and used exactly as
`isaacsim.storage.native` uses it,
so the two sides cannot resolve different roots from the same value. The
only deviation is
the trailing separator, stripped for both `/` and `\` because Isaac Lab
concatenates further
path components onto the root and the variable is documented for Windows
as well.
- The experience file remains the fallback for kitless use, but now
reads
`persistent.isaac.asset_root.default` before the legacy
`persistent.isaac.asset_root.cloud`,
matching the only asset-root setting Isaac Sim resolves. Note the
migration consequence:
redirecting Isaac Lab by editing only the `cloud` key in an experience
file no longer has
any effect, since the shipped experiences leave `default` on the cloud
URL. This is called
  out in both the new documentation and the changelog fragment.
- `isaacsim.storage.native` is added to the `isaaclab.python` and
`isaaclab.python.headless` experiences so Isaac Sim's own asset-root
APIs apply the
  variable too. See the note on isaac-sim#6499 below.
- New documentation covers pointing Isaac Lab at a local asset root.

Note on scope: this makes `ISAACSIM_ASSET_ROOT` the supported *runtime*
override for the
asset root. Editing `persistent.isaac.asset_root.default` in an
experience file also works,
since that is the fallback Isaac Lab reads. What it does not restore is
a command-line
override such as
`--kit_args="--/persistent/isaac/asset_root/cloud=<path>"`: Isaac Lab
still
does not read the live Carb setting, so changing it at runtime alone
will not move these
constants.

## On re-adding `isaacsim.storage.native` and Warp

isaac-sim#6499 removed `isaacsim.storage.native` by name, along with the other
Isaac Sim
extensions, to keep Isaac Sim's Warp version out of the extension graph.
This change
re-adds only that one extension, and it does not reintroduce that risk:

- Walking the recursive dependency closure, `isaacsim.storage.native`
resolves 55
extensions while `isaacsim.core.version` — which both experiences
already load —
resolves 54. The delta is exactly one extension:
`isaacsim.storage.native` itself. Its
dependencies, `isaacsim.core.version` and `omni.client`, are already in
the graph.
- No Warp extension appears anywhere in that closure.
- Headless launches before and after this change both report Warp at the
unchanged
baseline `1.13.0`. After the change, native storage is enabled and the
Carb `default`
  setting plus every Isaac Lab asset constant resolve to the local path.

This follows the same approach as isaac-sim#6697, which re-added
`omni.physics.physx` for the
PhysX registration bridge without restoring the Isaac Sim core extension
or its Warp
dependency.

## Known limitation, unchanged by this PR

The experience-file fallback always reads `apps/isaaclab.python.kit`
regardless of which
experience was launched. This is inert today because every shipped
experience carries the
same asset root, but editing the value in another experience file still
has no effect on
Isaac Lab.

Related but separate: isaac-sim#4478 and isaac-sim#4479 propose a broader offline mode
with asset
mirroring and an `--offline` flag. This PR is the narrow fix for the
documented
environment override.

Fixes isaac-sim#6318

<!-- As a practice, it is recommended to open an issue to have
discussions on the proposed pull request.
This makes it easier for the community to keep track of what is being
developed or added, and if a given feature
is demanded by more than one party. -->

## Type of change

<!-- As you go through the list, delete the ones that are not
applicable. -->

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

## Screenshots

Not applicable, this change has no visual output.

<!--
Example:

| Before | After |
| ------ | ----- |
| _gif/png before_ | _gif/png after_ |

To upload images to a PR -- simply drag and drop an image while in edit
mode and it should upload the image directly. You can then paste that
source into the above before/after sections.
-->

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

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

---------

Co-authored-by: Kelly Guo <[email protected]>
@AntoineRichard AntoineRichard mentioned this pull request Aug 27, 2026
13 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team isaac-sim Related to Isaac Sim team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants