Repository navigation
Default the Experiment Runner to a smoke test and delete legacy JSON configs - #1531
Conversation
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]>
[Low impact] This PR appears safe to merge. SummaryRemoves four unused legacy JSON experiment configs and an unreferenced documentation GIF.
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 |
🤖 Isaac Lab-Arena Review BotSummaryThis 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
FindingsNo 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. VerdictShip 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]>
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
left a comment
There was a problem hiding this comment.
Thanks for the clean up
Signed-off-by: Clemens Volk <[email protected]>
…used-json-eval-configs
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]>
…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]>
Make a 20-step zero-action smoke test the default Experiment for
experiment_runner.pyand 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.jsonwas the--experiment_configdefault. 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 rundroid_pnp_srl_gr00t_experiment.yaml, which defines the same nine Runs.scale_up_gif_jobs_config.jsonanddroid_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?
experiment_configs/smoke_test_experiment.yamlwith one Run,smoke_test: 20 zero-action steps incube_goal_pose.experiment_runner.pyruns it when--experiment_configis not set, and the README and installation page use that command.experiment_configs/gr1_sequential_static_manip_gr00t_experiment.yamlwith 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.docs/images/iterate_getting_started_jobs_config.gif, which no page has shown since Reorganize variation documentation #1030.tmp_path.test_experiment_runner_runs_default_experimentruns the default end to end.test_experiment_runner_runs_with_different_env_countscovers Runs with differentnum_envsin one process, which only the deletedzero_action_jobs_config.jsonexercised.Usage example
Before:
After:
Validation
test_default_experiment_is_a_short_zero_action_smoke_testand the two new subprocess tests.isaaclab.simcannot run with the local image, which predates Isaac Lab 3.0.ArenaRunCfgobjects 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 grepfinds no remaining reference to the deleted files.