Skip to content

[Backport 3.0] Add launchable task runs to the environment browser (#7046, #8520) - #8570

Merged
kellyguo11 merged 2 commits into
isaac-sim:release/3.0.0from
kellyguo11:codex/backport-7046-8520-release-3.0.0
Oct 14, 2026
Merged

kellyguo11 merged 2 commits into
isaac-sim:release/3.0.0from
kellyguo11:codex/backport-7046-8520-release-3.0.0

Conversation

@kellyguo11

Copy link
Copy Markdown
Contributor

Description

Backports #7046 and #8520 to release/3.0.0.

This adds the task-run resolver and launch validation from #7046, exposes launchable preset combinations in isaaclab list_envs, and uses those combinations to disable environment-browser options that cannot launch. The backport preserves the release branch split between preset_cli.py and preset_target.py, and regenerates browser data for its 136 registered training environments.

#8520 is still open upstream. This backport carries its feature diff through upstream head ba91494b9; the commits added after the previously reviewed head are base-branch merges and do not change that feature diff.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Documentation update

Validation

  • Resolver and runtime compatibility coverage: 28 passed
  • list_envs CLI coverage: 1 passed
  • Environment documentation generator check: up to date for 136 environments
  • Repository pre-commit hooks: passed
  • Changelog fragment gate against current release/3.0.0: passed

The broader environment-documentation tests reached 39/40 passing on the macOS host. The remaining test imports a custom manager-based class through the optional Newton stack, which is unavailable in this host environment; CI should exercise that dependency on a supported platform.

Screenshots

Not applicable.

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have validated the changed behavior with focused coverage and applied the test-audit criteria to test changes
  • I have added changelog fragments for every touched package
  • My name already exists in CONTRIBUTORS.md

AntoineRichard and others added 2 commits October 14, 2026 14:32
…_envs` (isaac-sim#7046)

A task's presets say which physics, renderer and domain names it
declares. Not every pairing of them can run. OVRTX and OvPhysX cannot
share a process with Kit. Env configs also add their own cross-axis
rules: for example, Reach accepts `newton_ik` only with Newton physics,
and the Warp renderer cannot produce the shaded camera types. Today the
only way to learn that a combination is illegal is to launch it.

`resolve_task_runs(task)` in `isaaclab_tasks.utils.hydra`, beside
`enumerate_task_presets`, answers that question without launching. Each
declared combination goes through three checks:

- it resolves through `resolve_task_config(overrides=...)`, with each
physics and renderer preset, or that axis left to the config, crossed
with each domain preset;
- it passes the env config's own `validate()`;
- it passes the new public `isaaclab.app.validate_launch`, for a
headless launch without livestreaming.

`validate_launch` is the scan and runtime check that `launch_simulation`
starts with, and `launch_simulation` now calls it, so the resolver and
the launcher share one rule.

It returns `(physics, renderer, presets)` tuples, `None` on an axis left
to the config. Combinations that resolve to the same config are listed
once, so `physics=physx` folds into the backend it selects. The run a
task gets with no tokens comes first.

Across the registry, 140 tasks resolve to 1058 distinct runs in 178 s on
one workstation. No error other than a rejection's `ValueError` is
raised, and every task's default run is accepted. `uv run isaaclab
list_envs --show_presets` now prints these runs, with the default
marked, instead of the declared preset names. That is slower: about 1–2
s per task, so about 3 minutes for the whole registry, against 5 s
before. `--keyword` narrows it.
`docs/source/concepts/backends_and_presets.rst` and the quickstart
describe it.

Only `ValueError` counts as a rejection. Any other error propagates, so
a broken task config is not mistaken for an illegal combination.

- No change to the docs generator here. isaac-sim#8520, stacked
on this PR, feeds the environment browser from the resolver.
- Results describe config validity, not machine availability. A Kit
combination still lists on a kitless install.

`test_preset_kit_decision.py::test_resolve_task_runs_lists_each_launchable_combination_once`
runs on `Isaac-Cartpole-Camera-Direct` (about 5 s).

- **Behavior:**
  - OvPhysX and OVRTX never pair with Kit;
  - the Warp-renderer shading rule from the env config applies;
  - selectors fold into their targets.
- **Regression:** dropping the `validate_launch` call, dropping
`validate()`, or disabling the collapse each turns it red. Each mutation
was checked.
- **Existing coverage misses it:** `test_runtime_compatibility.py`
checks single hand-built configs, not the enumeration.

`test_runtime_compatibility.py` now calls `validate_launch` instead of
its private copy of the same three calls.

- New feature (non-breaking change which adds functionality)

- [ ] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `develop`

- [x] I have read and understood the contribution guidelines
- [x] I have run the `pre-commit` checks with `uv run isaaclab --format`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have validated the changed behavior with focused coverage and
applied the test-audit criteria to any test changes
- [x] I have added a changelog fragment under
`source/<pkg>/changelog.d/` for every touched package
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 37211c2)
@kellyguo11
kellyguo11 requested a review from a team October 14, 2026 18:35
@github-actions github-actions Bot added documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team infrastructure labels Oct 14, 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 14, 2026

@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: Design and architecture (1), Scope and over-engineering (1), Implementation (2), Style consistency (1). Other reviewed categories look good.

  • PR description: The body omits the automatic Sphinx regeneration hook; add it and benchmark documentation generation baseline/candidate with revisions, command, hardware, backend matrix, task count, warmup, and wall time.
  • Design and architecture: The Sphinx build hook mutates tracked browser sources and couples every documentation build to full registry validation; keep regeneration in the standalone generator and CI freshness check.
  • Scope and over-engineering: Minimal implementation: extend hydra.py, sim_launcher.py, list_envs.py, environ_docs.py, and the browser script; delete the docs/conf.py hook and collapse launchable products into rejected keys, with no added source modules. Scope is cohesive; no split recommended.
  • API: API changes look good.
  • Compatibility and deprecation: No breaking changes identified.
  • Implementation: The CLI labels the first surviving run as default even when the no-override run fails, misleading users; mark only the actual no-override run.
  • Style consistency: The new selector constant and public task-run functions follow private helpers, violating the required constants/public/private declaration order; move them before private helpers.
  • Test quality: Test quality looks good.

Minor fixes needed. Posted 5 inline findings.

Automated review; human maintainers own approval decisions.

Comment thread docs/conf.py

def setup(app):
app.connect("autodoc-skip-member", skip_member)
app.connect("builder-inited", update_environment_browser)

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 · Design Architecture — Sphinx build regenerates tracked sources

Every build now shells out to the generator, which launch-validates every preset combination and rewrites tracked environments.rst and environment-browser.js; check=True aborts the build on any registry error. Keep regeneration in the standalone tool.

row.append("(unavailable)")
else:
lines = [" ".join(task_run_overrides(run)) or "(defaults)" for run in runs]
row.append("\n".join([f"{lines[0]} [default]", *lines[1:]]) if lines else "(none)")

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 — First run mislabeled as default

resolve_task_runs returns the no-override run first only when it launches; otherwise this labels an arbitrary combination [default]. Label the line only when the run carries no overrides.

return s


_SELECTORS = ("physics", "renderer", "presets")

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 — Constant and public functions after privates

_SELECTORS and the three public task-run functions are appended below _setattr/_parse_val, against the guide's imports/constants/public/private order and this module's own layout. Move them above the private helpers.

Comment thread tools/environ_docs.py
rows: list[EnvironmentDocRow] = []
# Each launch check resolves a full env config; workers spread them out. Each worker imports Isaac Lab,
# so their number is capped, and they are spawned because forking this multi-threaded process can deadlock.
pool = ProcessPoolExecutor(

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 — Pool leaks workers on failure

pool.shutdown() runs only after the loop, so the no displayed preset combination can launch raise, or any worker error, leaves spawned processes alive. Use with ProcessPoolExecutor(...) as pool:.

Comment thread tools/environ_docs.py
default_algorithms,
",".join(row.required_extras),
row.warp_presets,
["|".join(name or "" for name in run) for run in row.launchable_runs],

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 · Scope Complexity — Store rejected combinations, not all launchable

Serializing every launchable combination inlines hundreds of entries per camera row and a redundant array on fully launchable tasks. Emit only rejected combinations and invert isLaunchable; most rows then carry nothing.

@greptile-apps

greptile-apps Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[High impact] Adds runtime validation to environment configuration and documentation generation.

Fix the missing runtime extras for default browser choices before merging.

Findings

  1. P1 Default commands omit Isaac Sim ▶
  2. P2 Alternatives are called defaults ▶
  3. P2 Failed checks leave workers open ▶

Summary

This backport adds shared launch checks and lists valid task-run combinations in the CLI and environment browser.

  • Launch checks can run without starting the simulator.
  • Task lists show preset combinations that can launch.
  • The environment browser keeps its choices to launchable combinations.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Registered task] --> B[Resolve preset combination]
    B --> C[Check task settings]
    C --> D[Scan and check runtime choices]
    D --> E[CLI lists distinct runs]
    D --> F[Generator writes browser choices]
    F --> G[Browser enables valid combinations]
    G --> H[Build command and installation extras]
Loading

Reviews (1) · Last reviewed commit: "Disable environment browser options that..." · Reviewed by Greptile

Comment on lines +383 to +387
const withDefault = (values) => (values.length ? [...values, ""] : []);
const physics = state.scope === "warp" ? ["newton_mjwarp"] : withDefault(task.physics);
populateSelect(fields.physics, physics, [fields.physics.value, "newton_mjwarp", "isaacsim_physx", "ovphysx", "newton_kamino"]);
const preferredRenderer = fields.physics.value.startsWith("newton") ? "newton_renderer" : "isaacsim_rtx";
populateSelect(fields.renderer, task.renderer, [fields.renderer.value, preferredRenderer, "ovrtx"]);
populateSelect(fields.renderer, withDefault(task.renderer), [fields.renderer.value, preferredRenderer, "ovrtx"]);

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.

P1 Default commands omit Isaac Sim

For IsaacContrib-Stack-Cube-Galbot-Left-Arm-Gripper-Visuomotor, choosing default physics with newton_renderer leaves the task using Isaac Sim PhysX. But currentCommand adds the isaacsim extra only for explicit isaacsim_physx or isaacsim_rtx choices. If Isaac Sim is not installed, this enabled command fails to launch.

Include extras for the resolved defaults, or keep required backend choices explicit.

row.append("(unavailable)")
else:
lines = [" ".join(task_run_overrides(run)) or "(defaults)" for run in runs]
row.append("\n".join([f"{lines[0]} [default]", *lines[1:]]) if lines else "(none)")

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.

P2 Alternatives are called defaults

list_envs always marks the first returned run [default]. When the task’s default is rejected, resolve_task_runs returns only the remaining alternatives, so the first alternative gets the wrong label. Users are told that this configuration is used without selectors when it is not.

Carry the default status separately and add the label only when the no-selector configuration passed.

Comment thread tools/environ_docs.py
Comment on lines +646 to +650
pool = ProcessPoolExecutor(
max_workers=min(os.cpu_count() or 1, 8),
mp_context=multiprocessing.get_context("spawn"),
initializer=_import_task_packages,
)

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.

P2 Failed checks leave workers open

The new pool reaches pool.shutdown() only after every row succeeds. A launch check can raise an error other than ValueError, and collection also raises when no combination launches. Both paths skip shutdown, leaving worker cleanup to garbage collection or process exit. Repeated calls in a long-running process can keep unnecessary workers and memory alive.

Use a context manager or try/finally to close the pool when collection fails.

@kellyguo11
kellyguo11 merged commit be44a7a into isaac-sim:release/3.0.0 Oct 14, 2026
60 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation infrastructure isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants