Repository navigation
Run typed YAML experiments from eval_runner.py - #876
Conversation
🤖 Isaac Lab-Arena Review BotSummaryThis PR wires typed YAML Experiments into Findings🔵 Improvement: Notes (verified clean, not blocking)
Test CoverageStrong. New tests cover override+device application, post-startup load ordering, the camera-flag assertion, preserved legacy JSON camera detection, YAML-chunking rejection, JSON-rejects-overrides, unknown file type, and Hydra-compatible Run-name validation, plus an end-to-end VerdictShip it (address the small duplication nit at your convenience). |
Greptile SummaryThis PR extends the eval runner to accept typed YAML experiments (alongside the existing legacy JSON path) via a unified
Confidence Score: 4/5The YAML experiment path is well-structured and the legacy JSON behavior is preserved; the main uncertainty is whether the hyphen character in run names will parse correctly in the installed Hydra version's override grammar. The core logic — dispatching JSON vs YAML, deferring composition until after SimulationApp starts, enforcing overrides only for YAML, and restricting chunking to JSON — is all correct and well-tested. The one open question is isaaclab_arena/hydra/arena_experiment.py — the hyphen allowance in Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[eval_runner main] --> B[_parse_eval_runner_args]
B --> C[_validate_experiment_config_path]
C --> D{suffix .json?}
D -- yes --> E[_load_legacy_json_experiment_config
pre-startup JSON read]
D -- no --> F[legacy_experiment_config = None]
E --> G{any job
requires cameras?}
G -- yes --> H[args_cli.enable_cameras = True]
G -- no --> I[continue]
F --> I
H --> I
I --> J{--list_variations?}
J -- yes --> K[SimulationAppContext]
K --> L[load_arena_experiment_from_config_file
post-startup YAML compose or JSON adapt]
L --> M[_assert_camera_support_enabled]
M --> N[list_variations]
J -- no --> O{--chunk_size set?}
O -- yes, JSON --> P{jobs > chunk_size?}
P -- yes --> Q[_run_legacy_json_in_chunks
subprocess per chunk]
P -- no --> R[SimulationAppContext]
O -- yes, YAML --> S[AssertionError:
chunking not supported]
O -- no --> R
R --> L2[load_arena_experiment_from_config_file]
L2 --> M2[_assert_camera_support_enabled]
M2 --> T[execute_experiment]
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
A[eval_runner main] --> B[_parse_eval_runner_args]
B --> C[_validate_experiment_config_path]
C --> D{suffix .json?}
D -- yes --> E[_load_legacy_json_experiment_config
pre-startup JSON read]
D -- no --> F[legacy_experiment_config = None]
E --> G{any job
requires cameras?}
G -- yes --> H[args_cli.enable_cameras = True]
G -- no --> I[continue]
F --> I
H --> I
I --> J{--list_variations?}
J -- yes --> K[SimulationAppContext]
K --> L[load_arena_experiment_from_config_file
post-startup YAML compose or JSON adapt]
L --> M[_assert_camera_support_enabled]
M --> N[list_variations]
J -- no --> O{--chunk_size set?}
O -- yes, JSON --> P{jobs > chunk_size?}
P -- yes --> Q[_run_legacy_json_in_chunks
subprocess per chunk]
P -- no --> R[SimulationAppContext]
O -- yes, YAML --> S[AssertionError:
chunking not supported]
O -- no --> R
R --> L2[load_arena_experiment_from_config_file]
L2 --> M2[_assert_camera_support_enabled]
M2 --> T[execute_experiment]
Reviews (1): Last reviewed commit: "Run typed YAML Experiments from eval run..." | Re-trigger Greptile |
330e232 to
24a47c9
Compare
24a47c9 to
a094353
Compare
a0b06b0 to
419a2cc
Compare
adb0d67 to
6255af5
Compare
Load typed YAML only after AppLauncher starts so runtime registry discovery remains safe. Preserve legacy JSON behavior and expose explicit Hydra overrides for typed Runs. Signed-off-by: Clemens Volk <[email protected]>
Keep import-safe dependencies at module scope while leaving registry discovery after AppLauncher. Make the YAML process-device update explicit and avoid repeating it for legacy JSON. Signed-off-by: Clemens Volk <[email protected]>
Keep path and suffix validation in the config loader so eval_runner and independent callers share one rule. Record the follow-up for moving device ownership to process-level execution configuration. Signed-off-by: Clemens Volk <[email protected]>
Signed-off-by: Clemens Volk <[email protected]>
Use native Hydra tokens and verify typed Run overrides end to end. Isolate legacy JSON dispatch and record the camera follow-up. Signed-off-by: Clemens Volk <[email protected]>
b0f0a82 to
40306c4
Compare
Signed-off-by: Clemens Volk <[email protected]>
Summary
Connect typed YAML Experiments to eval_runner while preserving legacy JSON evaluation.
Detailed description
--experiment_configoption and forwarding Hydra overrides.--eval_jobs_configalias until legacy json files are ported.