Repository navigation
[Backport] PR #8610 to release/3.0.0 - #8618
kellyguo11 merged 2 commits into
Conversation
|
run-ci |
[Medium impact] This backport appears safe to merge. SummaryThis backport sends unavailable typed backend selectors to the existing typed-selector check.
No actionable issues were found. Tests were not run during this review. Reviews (1) · Last reviewed commit: "Improve typed selector errors" · Reviewed by Greptile |
There was a problem hiding this comment.
Isaac Lab Review Bot
Needs attention: Implementation (2), Style consistency (2). Other reviewed categories look good.
- PR description: The title and body match the three-file backport, accurately separate local checks from deferred pytest execution, and make no performance claim requiring evidence.
- Design and architecture: Architecture looks good.
- Scope and over-engineering: No over-engineering issues.
- API: API changes look good.
- Compatibility and deprecation: No breaking changes identified.
- Implementation: The typed-name suppression is broader than the defaults-only case and compares raw selector names with normalized unknown names; normalize and subtract only selectors whose target exposes no presets.
- Style consistency: The test imports
RendererCfgfrom an internal module despite the established public package export; usefrom isaaclab.renderers import RendererCfg. - Test quality: Test quality looks good.
Minor fixes needed. Posted 4 inline findings.
Automated review; human maintainers own approval decisions.
| known_names = set(name_to_paths) | ||
| unknown = {_normalize_preset_name(name, known_names) for name in unknown_presets} - known_names | ||
| if unknown: | ||
| typed_names = {name for names in requested_targets.values() for name in names} |
There was a problem hiding this comment.
🟡 Warning · Implementation — Typed names unnormalized and unfiltered
unknown holds normalized names while typed_names holds raw selector names, so physics=newton still errors generically; unknown is also passed unfiltered to the formatter. Normalize and subtract before both the test and the message.
| unknown = {_normalize_preset_name(name, known_names) for name in unknown_presets} - known_names | ||
| if unknown: | ||
| typed_names = {name for names in requested_targets.values() for name in names} | ||
| if unknown - typed_names: |
There was a problem hiding this comment.
🟡 Warning · Implementation — Typo'd typed selector loses preset listing
Suppression applies to every typed selector, so on a task that does declare physics presets physics=typo now raises "Choose a declared preset" with no availability table. Suppress only when that target declares none.
| # ============================================================================= | ||
|
|
||
| from isaaclab.physics import PhysicsCfg as _RealPhysicsCfg # noqa: E402 | ||
| from isaaclab.renderers.renderer_cfg import RendererCfg as _RealRendererCfg # noqa: E402 |
There was a problem hiding this comment.
🟡 Warning · Style Consistency — Import RendererCfg from public package
The adjacent line imports PhysicsCfg from isaaclab.physics, and sibling tests use from isaaclab.renderers import RendererCfg. Reaching into renderer_cfg couples the test to module layout; use the package export.
|
|
||
| monkeypatch.setattr("isaaclab_tasks.utils.parse_cfg.load_cfg_from_registry", lambda *_: Cfg()) | ||
| with pytest.raises(ValueError, match="registered default configuration") as error: | ||
| hydra_mod.register_task("test", "", overrides=["physics=isaacsim_physx", "renderer=isaacsim_rtx"]) |
There was a problem hiding this comment.
🟡 Warning · Style Consistency — Pass None for missing agent entry
register_task declares agent_entry: str | None, and the sibling play-mode tests pass None. Passing "" relies on falsiness instead of the declared contract.
|
run-ci |
|
run-ci |
Description
Backports #8610 to
release/3.0.0.Typed backend selectors on tasks without selectable presets now reach the existing typed-selector validator instead of producing a generic unknown-preset error with an empty availability list. The validator reports every unmatched
physics=andrenderer=selector together and tells the user to remove them to use the task's registered defaults.The release branch already owns this validation in
_validate_typed_presets, so this is a semantic adaptation of source PR head5a18d8ba9rather than a literal cherry-pick.Type of change
Validation
upstream/release/3.0.0— passedgit diff --check— passedChecklist
isaaclab_taskschangelog fragmentCONTRIBUTORS.md