Repository navigation
Fix ISAACSIM_ASSET_ROOT being ignored when resolving the asset root - #6739
Conversation
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.
Greptile SummaryThe PR aligns Isaac Lab and Isaac Sim asset-root resolution.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Important Files Changed
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"]
Reviews (2): Last reviewed commit: "Match Isaac Sim's environment-value hand..." | Re-trigger Greptile |
There was a problem hiding this comment.
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.
|
@greptileai re-review please. The resolver changed twice since your pass on 245a474: the environment value is now used exactly as |
…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]>
Description
Important
Confirm the pull request base before submitting. Target
developfor allcontributions. The
release/3.0.0-beta2branch is a frozen stable landingsnapshot and is not used for ongoing maintenance.
Isaac Lab's asset paths ignore the documented
ISAACSIM_ASSET_ROOTenvironmentvariable, so users cannot point Isaac Lab at a local, self-hosted, or air-gapped copy
of the assets.
NUCLEUS_ASSET_ROOT_DIRand every path derived from it are resolved by parsingpersistent.isaac.asset_root.cloudout ofapps/isaaclab.python.kit. Because the valuecomes 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_ROOTisapplied by
isaacsim.storage.native, which setspersistent.isaac.asset_root.defaultatextension 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.defaultto a local directory directly, withpersistent.isaac.asset_root.cloudunset entirely, andISAAC_NUCLEUS_DIRstill resolvedto the cloud URL because Isaac Lab only read
cloud.This change makes Isaac Lab follow the same override Isaac Sim documents:
ISAACSIM_ASSET_ROOTis read first and used exactly asisaacsim.storage.nativeuses 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 furtherpath components onto the root and the variable is documented for Windows as well.
persistent.isaac.asset_root.defaultbefore the legacypersistent.isaac.asset_root.cloud,matching the only asset-root setting Isaac Sim resolves. Note the migration consequence:
redirecting Isaac Lab by editing only the
cloudkey in an experience file no longer hasany effect, since the shipped experiences leave
defaulton the cloud URL. This is calledout in both the new documentation and the changelog fragment.
isaacsim.storage.nativeis added to theisaaclab.pythonandisaaclab.python.headlessexperiences so Isaac Sim's own asset-root APIs apply thevariable too. See the note on Removes Isaac Sim core extensions from app file to avoid warp conflict #6499 below.
Note on scope: this makes
ISAACSIM_ASSET_ROOTthe supported runtime override for theasset root. Editing
persistent.isaac.asset_root.defaultin 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 stilldoes not read the live Carb setting, so changing it at runtime alone will not move these
constants.
On re-adding
isaacsim.storage.nativeand Warp#6499 removed
isaacsim.storage.nativeby name, along with the other Isaac Simextensions, 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:
isaacsim.storage.nativeresolves 55extensions while
isaacsim.core.version— which both experiences already load —resolves 54. The delta is exactly one extension:
isaacsim.storage.nativeitself. Itsdependencies,
isaacsim.core.versionandomni.client, are already in the graph.baseline
1.13.0. After the change, native storage is enabled and the Carbdefaultsetting plus every Isaac Lab asset constant resolve to the local path.
This follows the same approach as #6697, which re-added
omni.physics.physxfor thePhysX 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.kitregardless of whichexperience 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
--offlineflag. This PR is the narrow fix for the documentedenvironment override.
Fixes #6318
Type of change
Screenshots
Not applicable, this change has no visual output.
Checklist
pre-commitchecks with./isaaclab.sh --formatsource/<pkg>/changelog.d/for every touched package (do not editCHANGELOG.rstor bumpextension.toml— CI handles that)CONTRIBUTORS.mdor my name already exists there