Repository navigation
Preserve iterable backend selections in nested dictionaries - #9239
sylvesterkaczmarek wants to merge 2 commits into
Conversation
Fixes isaac-sim#9238. Signed-off-by: Sylvester Kaczmarek <16242628+sylvesterkaczmarek@users.noreply.github.com>
There was a problem hiding this comment.
Isaac Lab Review Bot
Needs attention: Compatibility and deprecation (1). Other reviewed categories look good.
- PR description: The title and body match the conversion fix, regression coverage, changelog, and contributor entry; validation is reported rather than independently verified, and no measurable performance claim requires benchmarks.
- Design and architecture: Architecture looks good.
- Scope and over-engineering: No over-engineering issues.
- API: API changes look good.
- Compatibility and deprecation: Breaking changes: tuple materialization exposes a later iterator exception instead of ValueError for an earlier unknown type, without a compatibility bridge; validate entries while collecting them to preserve failure behavior.
- Implementation: Implementation looks good.
- Style consistency: Style consistency looks good.
- Test quality: Test quality looks good.
Minor fixes needed. Posted 1 inline finding.
Automated review; human maintainers own approval decisions.
| tensor_type_conversions = TENSOR_TYPE_CONVERSIONS[backend] | ||
|
|
||
| # Materialize one-shot iterables before recursively processing nested dictionaries. | ||
| array_types = tuple(array_types) |
There was a problem hiding this comment.
🟡 Warning · Compatibility — Validate before exhausting selections
If an iterable yields an unknown type and then raises, tuple() exposes the later exception instead of the documented ValueError. Validate each type while collecting it for recursion.
[Medium impact] The PR appears safe to merge. Summary
Reviews (1) · Last reviewed commit: "Preserve iterable backend selections in ..." · Reviewed by Greptile |
|
Addressed the iterator compatibility finding in 10697bd. Each selection is validated before reading the next entry, then the validated selections are retained for recursion. Added the invalid-first-entry regression; isolated execution of the actual conversion function with stand-in backend types passed both nested-conversion and validation-order checks. |
Description
Materialize the array-type selection before recursive backend conversion so nested and sibling dictionaries receive the original selection, including when the caller passes an iterator.
Fixes #9238.
Type of change
Validation
Checklist