Repository navigation
Make a short smoke test the Experiment Runner default - #1462
cvolkcvolk wants to merge 1 commit into
Conversation
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]>
[Medium impact] The PR appears safe to merge. SummaryMakes a single, 20-step zero-action run the default for
Reviews (1) · Last reviewed commit: "Make a short smoke test the Experiment R..." · Reviewed by Greptile |
|
|
||
| def test_default_experiment_is_a_short_zero_action_smoke_test(monkeypatch): | ||
| """Running experiment_runner.py without --experiment_config runs one short zero-action Run.""" | ||
| from isaaclab_arena_environments.cube_goal_pose_environment import CubeGoalPoseEnvironmentCfg |
There was a problem hiding this comment.
🔵 Import can move to the top
cube_goal_pose_environment has no simulator imports at module level, and the top-level PickAndPlaceMapleTableEnvironmentCfg import on line 27 already loads it through isaaclab_arena_environments/__init__.py. So this in-function import doesn't delay anything. Could it sit next to the line 27 import instead?
from isaaclab_arena_environments.cube_goal_pose_environment import CubeGoalPoseEnvironmentCfg
🤖 Isaac Lab-Arena Review BotSummaryThis PR adds a one-Run Findings🔵 Improvement: isaaclab_arena/tests/test_arena_experiment_config_loader.py:192: The 🔵 Improvement: skills/user/run-experiment/SKILL.md:30 (not in the diff): The skill still says "Never rely on the runner's legacy default configuration", and VerdictShip it |
…configs (#1531) 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 #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: ```bash python isaaclab_arena/evaluation/policy_runner.py --policy_type zero_action --num_steps 20 cube_goal_pose ``` After: ```bash 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. --------- Signed-off-by: Clemens Volk <[email protected]>
Superseded by #1531, which includes this change and also deletes the remaining legacy JSON experiment configs.
Make a single 20-step zero-action Experiment the default for
experiment_runner.py, and use it as the installation check in the README and the installation page instead ofpolicy_runner.py.Why this change?
We plan to deprecate
policy_runner.pyin favor ofexperiment_runner.py, which reads each evaluation from an Experiment YAML file. The installation check in the README anddocs/pages/quickstart/installation.rst, which is the first Arena script a new user runs, still usedpolicy_runner.py.Running
experiment_runner.pywithout--experiment_configused the legacy JSONzero_action_jobs_config.json, which defines twogr1_open_microwavejobs, one of them with 10 environments. That is slower than an installation check needs and uses the JSON format we plan to retire.What changes?
isaaclab_arena_environments/experiment_configs/smoke_test_experiment.yamlwith one Run,smoke_test: thecube_goal_poseenvironment, the zero-action policy, and 20 steps. It is the same rollout the oldpolicy_runner.pycommand ran.experiment_runner.pyuses it when--experiment_configis not set.experiment_runner.pywithout arguments. The optional GUI command shows a Run override:--viz kit runs.smoke_test.rollout_limit.num_steps=200.skills/user/setup-arena/SKILL.mdruns the command documented on the installation page, so it picks up the new command.zero_action_jobs_config.jsonstays, becausetest_experiment_runner_from_existing_configuses it.Usage example
Before:
After:
Validation
Locally in the Arena Docker container:
experiment_runner.pywithout arguments runssmoke_testto completion (20 steps, exit 0).runs.smoke_test.rollout_limit.num_steps=3changes the step count as documented.test_default_experiment_is_a_short_zero_action_smoke_testpasses, with the rest oftest_arena_experiment_config_loader.py(19 passed).sphinx-build -b htmlfinishes without warnings, andpre-commitpasses.