Repository navigation
[Core] Fix USD localization edge cases - #8070
Conversation
|
| except OSError: | ||
| pass | ||
| files_match = False | ||
| remote_is_current = not _is_remote_path(source) or bool(_usable_mirror(source, cached_download_dir)) |
There was a problem hiding this comment.
Remote dependencies become stale
When a local USD scene has a remote sublayer, this cache check treats the local source as current without checking the sublayer. If the sublayer changes on the server while the local file stamps stay the same, a later request returns the old working copy instead of the updated scene. Check remote dependencies before reusing the completed tree.
There was a problem hiding this comment.
Isaac Lab Review Bot
Reviewed the four localization changes: retrieving a USD before prim definition, indexing completed localization trees by authored and produced paths, preserving unresolved relative references, and distinguishing Windows drive paths from URL schemes. The patch and targeted regressions consistently support these fixes; no candidate findings were supplied or substantiated.
- Design and architecture: The localization cache now stores source, result, cache directory, and file stamps under both source and produced-path keys. Reuse remains guarded by cache identity, file stamps, and remote freshness, while incomplete trees are excluded from registration. Preserving unresolved references intentionally retains dependence on the caller’s OpenUSD resolver context.
- API: Public signatures and return types remain unchanged. The observable change to create_prim is limited to avoiding a residual prim after failed USD retrieval. The new path-classification and cache-key helpers are private, and the user-visible fixes have an isaaclab changelog fragment.
- Implementation: Traced successful and incomplete localization paths, source/result cache lookups, stamp and remote-freshness validation, unresolved-reference rewriting, Windows path joining through ntpath, and the reordered create_prim reference flow. Tests cover authored-path reuse, resolver-context sublayers, Windows drive paths, and retry after failed retrieval; the latter still relies on simulator-backed CI on a supported host.
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.
|
run-ci |
|
run-ci |
|
run-ci |
|
Fixed the material-path regression in 790d29c. Kit resolves The ground-plane tests now read the textures resolved by USD rather than assuming the returned file sits beside the raw downloads. The existing USD-contract test also checks that GPU 0 validation:
Separately, the follow-up review found that repeated localization now produces different layer identifiers, preventing identical references from sharing a native USD prototype. This CI fix does not address that remaining issue; passing CI alone will not establish that the PR is ready to merge. |
|
run-ci |
## Summary Fix USD localization while keeping dependency interpretation with USD and the material loaders. - Retrieve the requested file in the destination stage's resolver context before creating its prim. Failed retrieval leaves no empty prim blocking retry. - Resolve references afresh on each retrieval. Remove the persistent resolved-tree cache and its dependency/file-stamp bookkeeping, which missed newly available files and changed search-path precedence. Keep raw download reuse, atomic writes, and request-local deduplication for shared dependencies and cycles. - Retry failed remote metadata queries; forced retrieval refreshes the relevant revision metadata. - Preserve unresolved references and original MDL/UDIM source anchors. Remove regex-based MDL dependency parsing and contiguous UDIM enumeration; native loaders handle these resources. Authored layers and raw downloads remain unchanged. Requested-file and transfer failures still raise. Localization does not validate composition or rendering readiness. Public function signatures are unchanged. Related: #8011, #8061. ## Validation - 65 local asset tests passed; two live-server checks excluded. Existing resolution/retry tests were extended, with failures verified before the fix. - Three additional review probes passed: a newly available local reference, a nearer search-path match, and forced retry of a previously missing remote dependency. - Cartpole, Franka, and Kuka assets composed successfully. A 4096-environment Kuka/Newton run initialized, reset, and stepped on GPU 0. - Three Kit prim tests and the textured-first-frame camera test passed on GPU 0. - `uv run isaaclab -f` passed, including the changelog check against this PR's base. Cache trade-off: isolated repeated localization added approximately 4 ms for Cartpole and 30–37 ms for Franka/Kuka compared with the old resolved-tree shortcut. First retrieval was similar in the measured pair. The startup runs overlapped another GPU job, so they are not used as performance evidence; no startup speedup is claimed. The complete PR is net **−99 production lines** and **−32 lines overall** against its base. No new production class, module, or public API is introduced. ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` --------- Co-authored-by: Octi Zhang <[email protected]> (cherry picked from commit 12674d1)
|
Backported to |
Summary
Fix USD localization while keeping dependency interpretation with USD and the material loaders.
Authored layers and raw downloads remain unchanged. Requested-file and transfer failures still raise. Localization does not validate composition or rendering readiness. Public function signatures are unchanged.
Related: #8011, #8061.
Validation
uv run isaaclab -fpassed, including the changelog check against this PR's base.Cache trade-off: isolated repeated localization added approximately 4 ms for Cartpole and 30–37 ms for Franka/Kuka compared with the old resolved-tree shortcut. First retrieval was similar in the measured pair. The startup runs overlapped another GPU job, so they are not used as performance evidence; no startup speedup is claimed.
The complete PR is net −99 production lines and −32 lines overall against its base. No new production class, module, or public API is introduced.
Release backport
develop