Skip to content

Resolve check_instanceable asset input through retrieve_file_path - #7648

Merged
kellyguo11 merged 1 commit into
isaac-sim:developfrom
kellyguo11:fix/check-instanceable-remote-asset-path-develop
Sep 9, 2026
Merged

kellyguo11 merged 1 commit into
isaac-sim:developfrom
kellyguo11:fix/check-instanceable-remote-asset-path-develop

Conversation

@kellyguo11

@kellyguo11 kellyguo11 commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

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

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

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with uv run isaaclab -f
  • 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
  • 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.

@kellyguo11
kellyguo11 requested a review from a team September 8, 2026 17:16
@github-actions github-actions Bot added bug Something isn't working isaac-lab Related to Isaac Lab team labels Sep 8, 2026
@greptile-apps

greptile-apps Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge, with no actionable correctness, security, or repository-rule issues identified.

Summary

  • Preserves absolute-path behavior for local files.
  • Downloads remote root assets and their USD/MDL dependencies before creating the prim.
  • Corrects example command paths in the module documentation.

@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 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.input is validated, resolved by retrieve_file_path(), and supplied to create_prim(usd_path=...). The removed os import 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.

@kellyguo11

Copy link
Copy Markdown
Contributor Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Sep 9, 2026
@kellyguo11
kellyguo11 merged commit c588458 into isaac-sim:develop Sep 9, 2026
82 of 85 checks passed
@isaaclab-bot

isaaclab-bot Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Backported to release/3.0.0 as a067c98.

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants