Repository navigation
clearer error message for physics selector error. - #8610
Conversation
|
run-ci |
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryImproves errors for typed backend selectors on tasks without selectable backend presets.
Reviews (1) · Last reviewed commit: "Improve unsupported backend selector err..." · Reviewed by Greptile |
There was a problem hiding this comment.
Isaac Lab Review Bot
Needs attention: Design and architecture (1), Implementation (1). Other reviewed categories look good.
- PR description: The body labels this a feature while the
.fixed.rstfragment describes a bug fix; align the classification and report the focused pytest command and result. - Design and architecture: Typed-selector availability now has two validation paths with divergent diagnostics; move the new explanation into the existing
missingcheck that owns unmatched typed selectors. - Scope and over-engineering: No over-engineering issues.
- API: API changes look good.
- Compatibility and deprecation: No breaking changes identified.
- Implementation: The
next(...)scan reports only one unavailable target, forcing repeated runs when both physics and renderer selectors are invalid; collect and report all unmatched typed selectors together. - Style consistency: Style consistency looks good.
- Test quality: Test quality looks good.
Minor fixes needed. Posted 2 inline findings.
Automated review; human maintainers own approval decisions.
| known_names = {name for fields in available.values() for name in fields} | ||
| unknown = {_normalize_preset_name(name, known_names) for name in unknown_presets} - known_names | ||
| if unknown: | ||
| unavailable_target = next( |
There was a problem hiding this comment.
🟡 Warning · Design Architecture — Typed-selector check placed in wrong branch
Inside the unknown-name branch, this raise hides other unknown presets and the available-preset table, and never fires when the selector name matches another field's preset. Fold it into the typed-selector check below.
| unavailable_target = next( | ||
| ( | ||
| target | ||
| for target in requested_targets |
There was a problem hiding this comment.
🟡 Warning · Implementation — Only first unavailable selector reported
next(...) names one target, so a run passing both physics= and renderer= selectors on a defaults-only task must fail twice. Collect all unavailable targets and list every selector in one error.
|
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=` 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 - [x] I have read and understood the contribution guidelines - [x] I have run the locally available formatting and lint checks - [x] No documentation change is needed for this diagnostic-only fix - [x] My changes generate no new warnings - [x] I have applied the test-audit criteria to the regression test - [x] I have added an `isaaclab_tasks` changelog fragment - [x] The contributors already exist in `CONTRIBUTORS.md`
Description
Improves task-registration errors when a typed backend selector, such as
physics=isaacsim_physx, is passed to a task that does not expose selectable backend presets. Instead of reporting an unknown preset with an empty availability list, Isaac Lab now explains that the task uses its registered default and instructs the user to remove the selector. Because the validation lives in the shared task configuration resolver, the improved message applies consistently to export, play, train, and other entry points.Type of change
Checklist
pre-commitchecks withuv run isaaclab --formatsource/<pkg>/changelog.d/for every touched package (.skip: tests and CI only)CONTRIBUTORS.mdor my name already exists there