Skip to content

[Backport] PR #8610 to release/3.0.0 - #8618

Merged
kellyguo11 merged 2 commits into
isaac-sim:release/3.0.0from
kellyguo11:codex/backport-pr-8610-release-3.0.0
Oct 15, 2026
Merged

kellyguo11 merged 2 commits into
isaac-sim:release/3.0.0from
kellyguo11:codex/backport-pr-8610-release-3.0.0

Conversation

@kellyguo11

Copy link
Copy Markdown
Contributor

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= and renderer= 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 head 5a18d8ba9 rather than a literal cherry-pick.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Validation

  • Python syntax compilation for the changed source and test files — passed
  • Ruff formatting and lint checks for the changed Python files — passed
  • Changelog fragment gate against upstream/release/3.0.0 — passed
  • git diff --check — passed
  • Focused pytest coverage is delegated to Linux CI because the repository lockfile excludes the local macOS host

Checklist

  • I have read and understood the contribution guidelines
  • I have run the locally available formatting and lint checks
  • No documentation change is needed for this diagnostic-only fix
  • My changes generate no new warnings
  • I have applied the test-audit criteria to the regression test
  • I have added an isaaclab_tasks changelog fragment
  • The contributors already exist in CONTRIBUTORS.md

@kellyguo11
kellyguo11 requested a review from a team October 15, 2026 20:04
@kellyguo11

Copy link
Copy Markdown
Contributor Author

run-ci

@github-actions github-actions Bot added the isaac-lab Related to Isaac Lab team label Oct 15, 2026
@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 Oct 15, 2026
@greptile-apps

greptile-apps Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] This backport appears safe to merge.

Summary

This backport sends unavailable typed backend selectors to the existing typed-selector check.

  • Unavailable backend selectors now get a task-specific error.

No actionable issues were found. Tests were not run during this review.

Reviews (1) · Last reviewed commit: "Improve typed selector errors" · Reviewed by Greptile

@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

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 RendererCfg from an internal module despite the established public package export; use from 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}

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.

🟡 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:

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.

🟡 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

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.

🟡 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"])

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.

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

@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 Oct 15, 2026
@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 Oct 15, 2026
@kellyguo11
kellyguo11 merged commit cde5e80 into isaac-sim:release/3.0.0 Oct 15, 2026
57 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant