Repository navigation
Write each Run's graph environment definition to its output directory - #1776
Conversation
9e6e562 to
0854cec
Compare
[Medium impact] The change reaches the output folders for completed graph-based evaluation Runs. The PR appears safe to merge, with a non-blocking concern about source edits changing the saved graph. Findings
SummaryAdds
Reviews (1) · Last reviewed commit: "Move write_run_environment_definition in..." · Reviewed by Greptile |
🤖 Isaac Lab-Arena Review BotSummaryThis PR writes each completed graph-YAML Run's spec to Findings🟡 Warning: isaaclab_arena/evaluation/legacy_graph_environment_cli.py:88: The real parser only adds a YAML's Test Coverage and CI CostThe new test in VerdictMinor fixes needed |
Save the Run's graph YAML, with its external_yaml includes merged, as arena_run_environment_definition.yaml in the Run output directory. The result keeps the scene and task that ran after the source YAML is renamed or edited. Signed-off-by: Alex Millane <[email protected]>
Write the graph spec the environment is built from, with its CLI overrides applied, instead of the YAML as authored. Write it inside the Run's failure handling, since loading the spec can now fail. Signed-off-by: Alex Millane <[email protected]>
Write the definition after a Run completes, next to its timings, instead of before the Run starts. Drop "legacy" from load_graph_spec_from_graph. Signed-off-by: Alex Millane <[email protected]>
Signed-off-by: Alex Millane <[email protected]>
Keep run_execution.py focused on executing Runs, as with write_run_timings. Shorten the docstring to one line and explain why Python environments write no definition. Signed-off-by: Alex Millane <[email protected]>
Rename run_environment_definition.py to run_outputs.py and move write_run_outputs into it, so run_execution.py only executes Runs. Signed-off-by: Alex Millane <[email protected]>
The environments CLI parser adds a graph YAML's override flags only when --env_spec is in sys.argv, which the Experiment Runner's command line doesn't have, so a Run such as object: dex_cube exited in parse_args. Build the parser from the Run's YAML instead, and test with the real parser. Write the definition with ArenaEnvGraphSpec.write_yaml. Signed-off-by: Alex Millane <[email protected]>
5e3e044 to
05b5739
Compare
Signed-off-by: Alex Millane <[email protected]>
…ly that Run Signed-off-by: Alex Millane <[email protected]>
Signed-off-by: Alex Millane <[email protected]>
Write each Run's graph YAML environment to
arena_run_environment_definition.yamlin the output directory.Why this change?
What changes?
execute_experimentwrites the definition with the other outputs of each completed Run.external_yamlincludes are merged in.Usage example
A Run in the Experiment definition
The Run's output directory then holds
arena_run_environment_definition.yaml, excerpted here: