Repository navigation
Resolve check_instanceable asset input through retrieve_file_path - #7648
Merged
kellyguo11 merged 1 commit intoSep 9, 2026
Conversation
Contributor
Contributor
There was a problem hiding this comment.
Isaac Lab Review Bot
The script now resolves local and remote asset inputs through the shared retrieve_file_path() helper before passing them to create_prim, removes the obsolete os import, and fixes the documented invocation path.
- Design and architecture: Using the existing asset utility centralizes local, Nucleus, and HTTPS path handling instead of maintaining script-specific URL logic. The existing
check_file_path()validation remains in place before retrieval. - API: The CLI arguments, flags, and defaults are unchanged. The accepted input behavior is broadened so remote paths that pass validation are retrieved before use, while local-path compatibility depends on the established
retrieve_file_path()contract. - Implementation: The changed producer-to-consumer path is direct:
args_cli.inputis validated, resolved byretrieve_file_path(), and supplied tocreate_prim(usd_path=...). The removedosimport has no remaining uses, and the documentation points to the actual script location. No script-level regression test was added, so end-to-end remote handling remains an integration-testing gap, but the patch presents no concrete defect requiring maintainer action before merge.
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.
Contributor
Author
|
run-ci |
Contributor
|
Backported to |
isaaclab-bot Bot
pushed a commit
that referenced
this pull request
Sep 9, 2026
) # 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)
5 of 8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Port of #7635 to
develop. The original commit and Krishna Lakhi's authorship are preserved.scripts/tools/check_instanceable.pyaccepts a Nucleus/HTTPS asset URL during validation, but then unconditionally appliesos.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()fromisaaclab.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 nonexistentsource/tools/path toscripts/tools/.The active-release counterpart is #7635.
Type of change
Release backport
developAlready 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-cion the pull request.pre-commitchecks withuv run isaaclab -fsource/<pkg>/changelog.d/for every touched packageCONTRIBUTORS.mdor my name already exists thereValidation
uv run --extra test python -m pytest -q source/isaaclab/test/utils/test_assets.py::test_retrieve_file_path_serializes_cold_cache_population— passeduv run python -m py_compile scripts/tools/check_instanceable.py— passeduv run isaaclab -f— passedNo new test is added because this script launches
AppLauncherat module scope and cannot be imported as a unit without starting Isaac Sim. The delegated remote-path behavior is covered by the existingretrieve_file_path()unit test above. No changelog fragment is required because this change touches onlyscripts/, not a source package.