Repository navigation
Remove legacy evaluation job model - #871
Conversation
Signed-off-by: Clemens Volk <[email protected]>
Signed-off-by: Clemens Volk <[email protected]>
Greptile SummaryThis PR replaces the CLI-oriented
Confidence Score: 3/5The orchestration refactor is well-structured but the status-field assertion is a real backward-compatibility break that could silently corrupt existing automation pipelines. The core execute_experiment logic is a clean translation of the old loop and the new tests verify ordering, continue-on-error, and stop-on-failure without Isaac Sim. The breaking change in legacy_eval_config.py contradicts the stated goal of preserving the legacy JSON schema: any saved experiment file or script that writes a status field will now raise AssertionError instead of skipping or resuming completed runs. isaaclab_arena/evaluation/legacy_eval_config.py — specifically the new status assertion and whether the compatibility guarantee in the PR description is accurate. Important Files Changed
Sequence Diagram%%{init: {'theme': 'neutral'}}%%
sequenceDiagram
participant CLI as eval_runner main()
participant LEC as legacy_eval_config
participant EE as execute_experiment()
participant BAR as build_and_run()
participant ML as MetricsLogger
CLI->>LEC: run_cfgs_from_legacy_eval_config(experiment_config, device)
LEC-->>CLI: list[ArenaRunCfg]
CLI->>CLI: print_runs_info(run_cfgs, [])
CLI->>EE: execute_experiment(run_cfgs, output_dir, ...)
loop each ArenaRunCfg
EE->>BAR: build_and_run(run_cfg, output_dir, video_cfg)
alt success
BAR-->>EE: ArenaRunResult(COMPLETED, metrics)
else exception
BAR-->>EE: raises Exception
EE->>EE: append ArenaRunResult(FAILED)
note over EE: continue or re-raise
end
end
EE-->>CLI: list[ArenaRunResult]
loop each result
CLI->>ML: append_job_metrics(result.run_name, result.metrics)
end
CLI->>CLI: print_runs_info(run_cfgs, results)
CLI->>ML: print_metrics()
%%{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"}}}%%
sequenceDiagram
participant CLI as eval_runner main()
participant LEC as legacy_eval_config
participant EE as execute_experiment()
participant BAR as build_and_run()
participant ML as MetricsLogger
CLI->>LEC: run_cfgs_from_legacy_eval_config(experiment_config, device)
LEC-->>CLI: list[ArenaRunCfg]
CLI->>CLI: print_runs_info(run_cfgs, [])
CLI->>EE: execute_experiment(run_cfgs, output_dir, ...)
loop each ArenaRunCfg
EE->>BAR: build_and_run(run_cfg, output_dir, video_cfg)
alt success
BAR-->>EE: ArenaRunResult(COMPLETED, metrics)
else exception
BAR-->>EE: raises Exception
EE->>EE: append ArenaRunResult(FAILED)
note over EE: continue or re-raise
end
end
EE-->>CLI: list[ArenaRunResult]
loop each result
CLI->>ML: append_job_metrics(result.run_name, result.metrics)
end
CLI->>CLI: print_runs_info(run_cfgs, results)
CLI->>ML: print_metrics()
Reviews (1): Last reviewed commit: "Add variation inspection follow-up TODO" | Re-trigger Greptile |
🤖 Isaac Lab-Arena Review BotSummaryClean, well-scoped refactor: deletes the CLI-oriented Design, Boundaries & ScopeOne soft placement question (inline): One intentional behavior change worth noting for downstream users: a Findings🔵 eval_runner.py:37 — consider moving Test CoverageGood. The new VerdictShip it (one optional 🔵 organization nit). |
Signed-off-by: Clemens Volk <[email protected]>
alexmillane
left a comment
There was a problem hiding this comment.
Nice clean up!
Couple of nits.
## Summary Address late review feedback from #871 ## Detailed description - Move Run table construction alongside the typed Run model while leaving printing to eval_runner. - Make legacy camera detection a boolean helper that does not mutate the argparse namespace. - Use Path for experiment output directories and flush failure diagnostics before a process exits. - Follow up separately because #871 merged before these approved review changes could be pushed. Signed-off-by: Clemens Volk <[email protected]>
## Summary Add typed YAML composition for Arena Experiments as the next step in replacing argparse namespaces and legacy JSON evaluation jobs with strongly typed configuration. A follow-up connects this loader to `eval_runner.py` before the JSON path is deprecated and removed. ## Detailed description - Build on #871’s runtime model: an Arena Experiment is an ordered list of typed Runs - Transition experiment definitions to YAML because it fits the configuration hierarchy directly. Ports `getting_started_experiment.yaml`. - Use Hydra as the composition layer, rather than merely as a YAML parser. Hydra selects and constructs the concrete typed environment and policy configs, rejects unsupported. - Load each YAML Run into an ArenaRunCfg, composing its concrete environment and policy configurations through an encapsulated Hydra integration. - Keep eval_runner and legacy JSON handling unchanged in this PR --------- 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]>
Summary
Use typed Runs for experiment orchestration. Replace the CLI-oriented
JobandJobManagerlayer with the typed Run configuration and result model introduced in #867.Detailed description