Skip to content

Default the Experiment Runner to a smoke test and delete legacy JSON configs - #1531

Merged
cvolkcvolk merged 10 commits into
mainfrom
cvolk/chore/remove-unused-json-eval-configs
Nov 16, 2026
Merged

cvolkcvolk merged 10 commits into
mainfrom
cvolk/chore/remove-unused-json-eval-configs

Conversation

@cvolkcvolk

@cvolkcvolk cvolkcvolk commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

Make a 20-step zero-action smoke test the default Experiment for experiment_runner.py and use it as the installation check. Delete the remaining legacy JSON experiment configs, and port the one a tutorial still runs to YAML.

This PR includes the change from #1462.

Why this change?

Typed YAML Experiments replaced the JSON experiment configs, but six JSON experiment configs were still checked in:

  • zero_action_jobs_config.json was the --experiment_config default. It builds two GR1 microwave jobs, one with 10 envs, which is slow for an installation check.
  • droid_pnp_srl_gr00t_jobs_config.json: the GR00T docs run droid_pnp_srl_gr00t_experiment.yaml, which defines the same nine Runs.
  • scale_up_gif_jobs_config.json and droid_pnp_graph_spec_variations_config.json: no file has ever referenced them.
  • getting_started_jobs_config.json: only tests used it.
  • isaaclab_arena_gr00t/policy/config/gr1_sequential_static_manip_eval_jobs_config.json: step 5 of the sequential static manipulation tutorial runs it, and it had no YAML version.

The README and the installation page still checked an installation with policy_runner.py, which we plan to deprecate.

What changes?

  • Add experiment_configs/smoke_test_experiment.yaml with one Run, smoke_test: 20 zero-action steps in cube_goal_pose. experiment_runner.py runs it when --experiment_config is not set, and the README and installation page use that command.
  • Add experiment_configs/gr1_sequential_static_manip_gr00t_experiment.yaml with the same two Runs as the GR1 JSON, and use it in step 5 of the sequential static manipulation tutorial. The sample output there now shows the current Run table. Both Runs keep the language instruction from the policy config, as before, so the documented results still apply.
  • Delete the six JSON files and docs/images/iterate_getting_started_jobs_config.gif, which no page has shown since Reorganize variation documentation #1030.
  • Tests no longer read checked-in JSON files. The legacy loader tests write a two-entry JSON to tmp_path. test_experiment_runner_runs_default_experiment runs the default end to end. test_experiment_runner_runs_with_different_env_counts covers Runs with different num_envs in one process, which only the deleted zero_action_jobs_config.json exercised.

Usage example

Before:

python isaaclab_arena/evaluation/policy_runner.py --policy_type zero_action --num_steps 20 cube_goal_pose

After:

python isaaclab_arena/evaluation/experiment_runner.py

Validation

  • CI passes, including test_default_experiment_is_a_short_zero_action_smoke_test and the two new subprocess tests.
  • In a local container, the legacy loader tests pass. Tests that import isaaclab.sim cannot run with the local image, which predates Isaac Lab 3.0.
  • The GR1 YAML and the deleted GR1 JSON load to equal ArenaRunCfg objects for both Runs, in the same order. The GR1 GR00T evaluation itself was not run, so the sample output in the tutorial keeps the previously measured metrics.
  • git grep finds no remaining reference to the deleted files.

Nothing in the repository runs droid_pnp_srl_gr00t_jobs_config.json,
scale_up_gif_jobs_config.json or
droid_pnp_graph_spec_variations_config.json. The GR00T docs moved to
droid_pnp_srl_gr00t_experiment.yaml, which defines the same nine Runs.

Signed-off-by: Clemens Volk <[email protected]>
Three tests in test_arena_experiment_config_loader.py used
getting_started_jobs_config.json only as an existing JSON file with more
than one entry. Write that file from a fixture instead and delete the
checked-in config, which nothing else uses.

Signed-off-by: Clemens Volk <[email protected]>
No docs page has shown iterate_getting_started_jobs_config.gif since
PR #1030 removed its figure.

Signed-off-by: Clemens Volk <[email protected]>
@greptile-apps

greptile-apps Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This PR appears safe to merge.

Summary

Removes four unused legacy JSON experiment configs and an unreferenced documentation GIF.

  • Unused legacy JSON experiment examples leave the repository.
  • The unused getting-started GIF leaves the repository.

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

Reviews (1) · Last reviewed commit: "Delete the unused getting-started jobs c..." · Reviewed by Greptile

@arena-review-bot

Copy link
Copy Markdown
Contributor

🤖 Isaac Lab-Arena Review Bot

Summary

This PR deletes four legacy JSON Experiment configs and a docs GIF that no page shows. It also changes three loader tests to write their own two-entry JSON file to tmp_path instead of reading getting_started_jobs_config.json.

  • No remaining references: apart from the test file this PR rewrites, nothing on the PR head or on current main mentions the deleted files.
  • Legacy JSON tests: the three rewritten tests still reach the checks they're meant to test.
    • The two Hydra-override tests fail on purpose before the JSON is parsed, so any .json file works for them.
    • The chunking test needs more than one job so --chunk_size 1 splits the run, and the fixture's two entries cover that.
  • GR00T config: droid_pnp_srl_gr00t_experiment.yaml defines the same nine Runs as the deleted JSON.

Findings

No issues found.

CI: when this review ran, only pre-commit had passed. The image builds and docs build were still queued or running, and the native test job was skipped, so CI hasn't confirmed the test changes yet. The PR description says the three changed tests pass in a local container.

Verdict

Ship it

experiment_runner.py without --experiment_config ran the legacy JSON
zero_action_jobs_config.json, which builds two GR1 microwave jobs.
Add smoke_test_experiment.yaml, a single 20-step zero-action Run in
cube_goal_pose, and use it as the default.

The README and the installation page now check an installation with
experiment_runner.py instead of policy_runner.py. The setup-arena
skill runs the command from the installation page, so it follows.

Signed-off-by: Clemens Volk <[email protected]>
The Experiment Runner default is now smoke_test_experiment.yaml, so the
JSON file was only left for test_experiment_runner_from_existing_config.
Replace that test with one that runs experiment_runner.py without
--experiment_config, as the installation check does.

The JSON file was also the only test that ran Runs with different
num_envs in one process, and gr1_pink with more than one env. Cover
both with a two-Run typed YAML Experiment.

Signed-off-by: Clemens Volk <[email protected]>
The runner default is no longer a legacy JSON file, so stop calling it
the legacy default. Call getting_started_experiment.yaml an example
evaluation to keep it apart from smoke_test_experiment.yaml.

Signed-off-by: Clemens Volk <[email protected]>
@cvolkcvolk cvolkcvolk changed the title Delete unused legacy JSON experiment configs Default the Experiment Runner to a smoke test and delete legacy JSON configs Oct 30, 2026
gr1_sequential_static_manip_eval_jobs_config.json was the last checked-in
JSON experiment config. Add gr1_sequential_static_manip_gr00t_experiment.yaml
with the same two Runs and settings, show it in step 5 of the sequential
static manipulation tutorial, and delete the JSON file.

Both Runs keep the language instruction from the policy config, as the
JSON did, so the documented results still apply.

Signed-off-by: Clemens Volk <[email protected]>
The sample output still showed the Job Name table that the Experiment
Runner stopped printing in #871. Show the current Run table, indent the
metrics as print_metrics does, and make the success rates in the text
match the metrics shown (0.1 for the jug, 0.9 for the ranch dressing
bottle).

Signed-off-by: Clemens Volk <[email protected]>

@peterd-NV peterd-NV left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the clean up

@cvolkcvolk
cvolkcvolk merged commit 841d7b5 into main Nov 16, 2026
11 checks passed
cvolkcvolk added a commit that referenced this pull request Nov 19, 2026
Typed YAML Experiments replaced the JSON jobs format. No JSON
Experiment is checked in since #1531, and #1704 ported or deleted the
tests that still wrote JSON.

Delete legacy_eval_config.py, legacy_experiment_runner.py and the .json
branch of load_arena_experiment_from_config_file. A .json path now fails
before startup with a message that points to YAML Experiments.

Remove the --eval_jobs_config alias and --chunk_size. Chunked dispatch
only ever worked for JSON jobs. Long sweeps on OSMO already run each
Run in its own process.

Delete the tests that covered only the JSON adapter, the JSON camera
check, chunking and the JSON override rejection.

Signed-off-by: Clemens Volk <[email protected]>
cvolkcvolk added a commit that referenced this pull request Nov 19, 2026
…unner.py (#1705)

Make `experiment_runner.py` accept only YAML Experiments. JSON
Experiment files, the `--eval_jobs_config` alias and `--chunk_size` are
removed.

## Why this change?

YAML Experiments replaced the JSON jobs format. Since #1531 no JSON
Experiment is checked in, and after #1701 and #1704 no doc or test uses
one. The JSON path still kept two modules and a second code path through
the loader and the runner.

## What changes?

For users:

- A `.json` Experiment now fails before Isaac Sim starts, with a message
that points to YAML. Rewrite each job as a Run in a YAML Experiment, as
in the example below.
- `--eval_jobs_config` and `--chunk_size` are gone. Passing either fails
as an unrecognized argument.

In the code:

- Delete `legacy_eval_config.py`, `legacy_experiment_runner.py` and the
`.json` branch of `load_arena_experiment_from_config_file`.
- Delete `EnvironmentRegistry.get_environment_cfg_type`, which only the
JSON adapter used.
- Drop the YAML check in OSMO submission. The loader now does it.
- Move the graph-spec CLI token helper into
`legacy_graph_environment_cli.py`, its only user, and delete
`legacy_environment_cli_args.py`.
- Delete the tests of the removed code.

### Why `--chunk_size` can go

`--chunk_size` (#751) ran each chunk of JSON jobs in a fresh process, to
free host memory that leaked on every environment build.

- It only ever worked for JSON. YAML Experiments never had it.
- It split by job, so all rebuilds of a Run still shared one process.
- The leak is mostly gone on the current stack. I ran one Run with many
rebuilds in one runner process and measured memory between builds:

| Environment | Rebuilds | Growth per rebuild |
|---|---|---|
| `cube_goal_pose` | 25 | about 1 MiB |
| `pick_and_place_maple_table` with cameras | 13 | about 40 MiB |

On OSMO each Run runs in its own process anyway.

## Usage example

Before:

```json
{
  "jobs": [
    {
      "name": "lift_object_model_1000",
      "policy_type": "rsl_rl",
      "num_episodes": 1024,
      "arena_env_args": {"environment": "lift_object", "num_envs": 64},
      "policy_config_dict": {"checkpoint_path": "model_1000.pt"}
    }
  ]
}
```

After:

```yaml
runs:
  lift_object_model_1000:
    environment:
      type: lift_object
    environment_builder:
      num_envs: 64
    policy:
      type: rsl_rl
      checkpoint_path: model_1000.pt
    rollout_limit:
      num_episodes: 1024
```

## Validation

Locally in the Arena container:

- A `.json` config, `--eval_jobs_config` and `--chunk_size` each fail
before Isaac Sim starts.
- The loader, run execution, graph CLI, Hydra, environment config, OSMO
workflow, benchmark and RoboLab config tests pass.
- All subprocess tests in `test_experiment_runner.py` pass, including
the graph-spec Run end to end, and so does the all-environments smoke
test.

---------

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.

2 participants