Repository navigation
Conversation
There was a problem hiding this comment.
Isaac Lab Review Bot
The change replaces unconditional absolute-path conversion at the USD consumption point with the existing local-or-remote asset resolver, addressing the mismatch where remote inputs passed validation but were then treated as local paths. The documented script paths are also corrected.
- Design and architecture: Asset resolution remains centralized in
isaaclab.utils.assets:check_file_path()retains the existing validation and error path, whileretrieve_file_path()supplies a usable path tosim_utils.create_prim(). This is a focused change at the single affected consumer. - API: The CLI arguments and error contract are unchanged. The accepted input surface now consistently supports the remote paths already recognized by validation, while the documentation examples point to the script's actual repository location.
- Implementation: The obsolete
osimport is removed with its only call site. Resolution occurs before the profiling timer, so remote retrieval does not distort the reported clone and setup timings; first use of an uncached remote asset may still add expected pre-profiling latency.
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.
Greptile SummaryThis PR fixes remote asset handling in the instanceability-checking tool and corrects its documented invocation path.
Confidence Score: 5/5The PR appears safe to merge, with the changed path-resolution flow matching existing asset utilities and callers. No actionable failures remain; local inputs retain their previous absolute-path behavior, while supported remote inputs are now downloaded and passed to USD loading through the established retrieval utility. Important Files Changed
Reviews (1): Last reviewed commit: "Resolve check_instanceable asset input t..." | Re-trigger Greptile |
|
run-ci |
) # Description Port of #7635 to `develop`. The original commit and Krishna Lakhi's authorship are preserved. `scripts/tools/check_instanceable.py` accepts a Nucleus/HTTPS asset URL during validation, but then unconditionally applies `os.path.abspath()` before use. On Windows this prepends the working directory and changes separators, corrupting the URL into an unusable local path. The input is now resolved through `retrieve_file_path()` from `isaaclab.utils.assets`, which supports both local and remote paths. Local inputs keep the prior absolute-path behavior, while remote assets and their USD/MDL dependencies are downloaded before the script opens them. The module docstring's example commands are also corrected from the nonexistent `source/tools/` path to `scripts/tools/`. The active-release counterpart is #7635. ## Type of change - Bug fix (non-breaking change which fixes an issue) - Documentation update ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` Already represented by #7635 for `release/3.0.0`. ## Screenshots N/A — command-line tool. ## Checklist Docker and GPU tests run on demand. Push the commits you want tested, then comment `run-ci` on the pull request. - [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 `uv run isaaclab -f` - [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 - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there ### Validation - `uv run --extra test python -m pytest -q source/isaaclab/test/utils/test_assets.py::test_retrieve_file_path_serializes_cold_cache_population` — passed - `uv run python -m py_compile scripts/tools/check_instanceable.py` — passed - `uv run isaaclab -f` — passed No new test is added because this script launches `AppLauncher` at module scope and cannot be imported as a unit without starting Isaac Sim. The delegated remote-path behavior is covered by the existing `retrieve_file_path()` unit test above. No changelog fragment is required because this change touches only `scripts/`, not a source package. Co-authored-by: Krishna Lakhi <[email protected]>
) # Description Port of #7635 to `develop`. The original commit and Krishna Lakhi's authorship are preserved. `scripts/tools/check_instanceable.py` accepts a Nucleus/HTTPS asset URL during validation, but then unconditionally applies `os.path.abspath()` before use. On Windows this prepends the working directory and changes separators, corrupting the URL into an unusable local path. The input is now resolved through `retrieve_file_path()` from `isaaclab.utils.assets`, which supports both local and remote paths. Local inputs keep the prior absolute-path behavior, while remote assets and their USD/MDL dependencies are downloaded before the script opens them. The module docstring's example commands are also corrected from the nonexistent `source/tools/` path to `scripts/tools/`. The active-release counterpart is #7635. ## Type of change - Bug fix (non-breaking change which fixes an issue) - Documentation update ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` Already represented by #7635 for `release/3.0.0`. ## Screenshots N/A — command-line tool. ## Checklist Docker and GPU tests run on demand. Push the commits you want tested, then comment `run-ci` on the pull request. - [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 `uv run isaaclab -f` - [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 - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there ### Validation - `uv run --extra test python -m pytest -q source/isaaclab/test/utils/test_assets.py::test_retrieve_file_path_serializes_cold_cache_population` — passed - `uv run python -m py_compile scripts/tools/check_instanceable.py` — passed - `uv run isaaclab -f` — passed No new test is added because this script launches `AppLauncher` at module scope and cannot be imported as a unit without starting Isaac Sim. The delegated remote-path behavior is covered by the existing `retrieve_file_path()` unit test above. No changelog fragment is required because this change touches only `scripts/`, not a source package. Co-authored-by: Krishna Lakhi <[email protected]> (cherry picked from commit c588458)
|
merged and cherry picked in #7648 |
Description
scripts/tools/check_instanceable.pyaccepts a Nucleus/HTTPS asset URL at validation and thencorrupts it before use, so no remote asset can be loaded.
check_file_path(args_cli.input)returns2("exists on the Nucleus Server"), sovalidation passes.
os.path.abspath(args_cli.input)was applied unconditionally. On Windows thisprepends the working directory and flips separators, turning the URL into a nonsense local path.
The script therefore contradicted itself: it validated remote paths as supported, then handled them
as if they were local. Because Isaac Lab robot assets live on the asset server (for example
ANT_CFGinisaaclab_assets/robots/ant.py:22points at{ISAAC_NUCLEUS_DIR}/Robots/IsaacSim/Ant/ant_instanceable.usd), the tool could not profile theassets it exists to profile without a manual download first.
Repro before this change:
The input is now resolved through
retrieve_file_path()fromisaaclab.utils.assets, which ispurpose-built for this local-or-remote case: it returns
os.path.abspath(path)for a local file(identical to the previous behavior, so local inputs are unaffected) and downloads a Nucleus
file — along with its USD references, payloads and MDL textures — before returning a usable local
path. Existing precedent for the same pattern:
scripts/reinforcement_learning/leapp/rl_games/export.py:205and
.../sb3/export.py:248.The existing
check_file_path()guard is deliberately left in place so theValueError: Invalid file path: ...message for a genuinely missing asset is preserved rather than becoming aFileNotFoundError.import osis removed because that call site was its only remaining use.This PR also corrects the module docstring, which told users to run the script from
source/tools/check_instanceable.py— a directory that does not exist in the repository. All fourdocumented example commands failed if copy-pasted.
Fixes # (issue)
Type of change
Release backport
developScreenshots
N/A — command-line tool; the before/after traceback is shown above.
Checklist
Docker and GPU tests run on demand. Push the commits you want tested, then
comment
run-cion the pull request.pre-commitchecks with./isaaclab.sh --formatsource/<pkg>/changelog.d/for every touched packageCONTRIBUTORS.mdor my name already exists thereNotes on tests and changelog
Tests. No unit test is added.
check_instanceable.pycallsAppLauncherat module scope(lines 61-62), so the module cannot be imported in a unit test without launching Isaac Sim — which
is why the script has no existing test. The change delegates to
retrieve_file_path(), which isalready covered in
source/isaaclab/test/utils/test_assets.py, including remote-URL handling(
test_retrieve_file_path_serializes_cold_cache_population). Happy to add an end-to-end test if amaintainer prefers one.
Changelog. No fragment is included:
tools/changelog/cli.pyscopes fragment requirements topackages under
source/, and this change touches onlyscripts/.