Skip to content

Load typed experiments alongside external environments - #1594

Merged
alexmillane merged 4 commits into
mainfrom
alex/fix/typed_loader_external_envs
Nov 4, 2026
Merged

alexmillane merged 4 commits into
mainfrom
alex/fix/typed_loader_external_envs

Conversation

@alexmillane

@alexmillane alexmillane commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Load typed Experiments when an unrelated environment without a config is registered. Copy of #1379 by @bdou0716, merged with main.

Fixes #1580.

Why this change?

  • _registered_environment_cfg_types() asserts that every registered environment has a config.
  • External environments registered through --external_environment_class_path or the Isaac Lab callback have none, so loading any typed Experiment in the same process fails with "must register a config".
  • This is causing bugs in our tests: for some test orderings: test_external_environment.py leaves franka_table registered, and later loader tests fail.

What changes?

  • Add EnvironmentRegistry.get_environment_cfg_types(), which returns only the environments that registered a config.
  • _registered_environment_cfg_types() uses it. Selecting an environment without a config still fails, with "unknown environment type".

Validation

  • Adds test_typed_experiment_ignores_unconfigured_external_environment.

@arena-review-bot

Copy link
Copy Markdown
Contributor

The review stopped before it finished. Please run /review to retry.

@alexmillane

Copy link
Copy Markdown
Collaborator Author

/review

@arena-review-bot

Copy link
Copy Markdown
Contributor

The review stopped before it finished. Please run /review to retry.

Requested in this comment.

@greptile-apps

greptile-apps Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] This PR appears safe to merge.

Summary

Typed experiments can now load when an unrelated external environment has no typed config.

  • Typed experiments use only environment names backed by a config.

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

Reviews (1) · Last reviewed commit: "Remove the typed environment discovery n..." · Reviewed by Greptile

@alexmillane
alexmillane enabled stacked auto-merge (squash) November 4, 2026 16:59
@alexmillane
alexmillane merged commit d6bd292 into main Nov 4, 2026
18 of 21 checks passed
alexmillane added a commit that referenced this pull request Nov 6, 2026
Add the PerfLab benchmark Experiments in
`isaaclab_arena_environments/performance/`, and their test plan in the
internal developer docs.

Replaces #1565 (merged into its base by mistake; review history is
there). Stacked on #1594: merge that first.

## Why this change?

The PerfLab Experiments and test plan from #1151 no longer run on main:
the Python launcher, the Experiment fields and the timing files they use
have all changed.

## What changes?

- Seven single-Run Experiments in `performance/experiment_configs/`:
camera-free, production-camera, Pi0.5, Cosmos, GR00T, same-object and
mixed-object. The object workloads share one scene in
`performance/scenes/` and differ only in their fruit list.
- The test plan in
`docs/pages/development_team_internal/perflab_benchmarks.rst`.
- `test_performance_benchmark_configs.py` loads each Experiment with the
plan's overrides and checks the result.

## Validation

- `test_performance_benchmark_configs.py`: 9 passed.
- Camera-free, same-object, mixed-object, production-camera and Pi0.5
pass the plan's trial checks on CPU with 1 environment. Not run: on GPU,
Cosmos and GR00T.

---------

Signed-off-by: Clemens Volk <[email protected]>
Signed-off-by: alex <[email protected]>
Co-authored-by: Clemens Volk <[email protected]>
cvolkcvolk added a commit that referenced this pull request Dec 2, 2026
Remove the handling of environments registered without a config. Since
#1729, every environment is registered together with its config, so
typed Experiments no longer need to skip any.

## Why this change?

#1594 made `EnvironmentRegistry.get_environment_cfg_types()` skip
environments without a config, because
`--external_environment_class_path` and the Isaac Lab callback
registered external environments without one. #1729 changed both to go
through `import_external_environment_factory`, which registers the
factory with its config, the same way `@register_environment` does for
built-in environments. So the filter never skips anything, and the
assert in `_registered_environment_cfg_type` can't fail.
`test_typed_experiment_ignores_unconfigured_external_environment` only
covers states that the test itself creates with plain `register()`
calls.

## What changes?

- `EnvironmentRegistry.get_environment_cfg_types()` returns the config
type of every registered environment, keyed by name.
- `_registered_environment_cfg_type` in
`isaaclab_arena_environments/cli.py` reads the config type directly.
- `test_typed_experiment_ignores_unconfigured_external_environment` is
removed.

Signed-off-by: Clemens Volk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug Report] Ignore unconfigured external environments during typed discovery

3 participants