Repository navigation
Export resource usage KPIs for every tracked benchmark - #1837
david-tingdahl-nvidia wants to merge 3 commits into
Conversation
…ters Signed-off-by: David Tingdahl <[email protected]>
Signed-off-by: David Tingdahl <[email protected]>
Signed-off-by: David Tingdahl <[email protected]>
Confidence Score: 3/5
[Medium impact] The change affects KPI records across benchmark and example experiment workflows. Fix the incomplete success measurement and the outdated workflow test before merging. FindingsSummaryAdds
Reviews (1) · Last reviewed commit: "Remove comment from the pi05 benchmark c..." · Reviewed by Greptile |
| # Renders the DROID camera rig at its declared 1280x720 (camera_resolution_mode: embodiment_default). | ||
| # TODO(alexmillane, 2026-11-03): Move to Pi0.5's policy-default resolution | ||
| # (camera_resolution_mode: policy_default) together with the production-camera baseline. | ||
| kpi_exporters: [success_rate, timing, resource_usage] |
There was a problem hiding this comment.
Success rates skip unfinished attempts
Adding success_rate here does not make the 300-step workload measure full episodes. The task allows 70 seconds (about 1,050 steps), and only finished episodes enter the success calculation. If no episode finishes by step 300, the exporter writes success_rate: null. If only fast successes finish, unfinished attempts are excluded and the reported rate is inflated.
Use a completed-episode budget for success tracking, or score unfinished attempts under a clearly defined cutoff.
|
|
||
| # KPI exporters (see isaaclab_arena_benchmarking/benchmarks) that write this Experiment's KPI records. | ||
| kpi_exporters: [success_rate, timing] | ||
| kpi_exporters: [success_rate, timing, resource_usage] |
There was a problem hiding this comment.
Workflow test expects old exporters
This change leaves test_collector_runs_the_kpi_exporters_of_the_experiment expecting ["success_rate", "timing"]. That test loads this exact file without overrides, so the collector now returns three exporters and the assertion fails. Update the test expectation to include resource_usage.
| # Renders the DROID camera rig at its declared 1280x720 (camera_resolution_mode: embodiment_default). | ||
| # TODO(alexmillane, 2026-11-03): Move to Pi0.5's policy-default resolution | ||
| # (camera_resolution_mode: policy_default) together with the production-camera baseline. | ||
| kpi_exporters: [success_rate, timing, resource_usage] |
There was a problem hiding this comment.
🔴 Success rate only counts episodes that end early
This workload stops after 300 steps (20 s at 15 Hz), but pick_and_place_maple_table episodes last up to 70 s (episode_length_s). An episode is only written to the results file when it resets (_reset_idx → record_pre_reset). So the KPI only counts envs that succeeded or dropped the object in the first 20 s. Envs still running are left out. For example, if 4 of 16 envs succeed and 12 are still going, it reports 4/4 = 1.0, and if nothing finishes it reports None.
The PerfLab guide fixes NUM_STEPS=300, so switching this file to num_episodes would change the timing workload. Could we keep this file on the default exporters and track success rate through the RoboLab/KitchenBench pi05 entries, which stop after a set number of episodes? Then the -pi05-16envs branch in test_tracked_benchmarks_yaml.py would no longer be needed.
|
|
||
| # KPI exporters (see isaaclab_arena_benchmarking/benchmarks) that write this Experiment's KPI records. | ||
| kpi_exporters: [success_rate, timing] | ||
| kpi_exporters: [success_rate, timing, resource_usage] |
There was a problem hiding this comment.
🟡 Breaks an OSMO workflow test
test_collector_runs_the_kpi_exporters_of_the_experiment (isaaclab_arena/tests/test_osmo_experiment_workflow.py:615) builds the collector from this file and still asserts kpi_exporters == ["success_rate", "timing"], so it will fail in the with_subprocess phase. CI on this commit was skipped or cancelled, so the failure hasn't shown up yet. Could you change that assertion to ["success_rate", "timing", "resource_usage"]?
| @@ -109,4 +109,4 @@ def test_placement_subset_experiment_runs_are_runs_of_the_suites(): | |||
| def test_placement_experiment_selects_the_placement_kpi_exporters(experiment_config): | |||
| """A placement Experiment selects the placement success and timing KPI exporters.""" | |||
There was a problem hiding this comment.
🔵 Docstring no longer matches the assertion
The test now also expects resource_usage.
| """A placement Experiment selects the placement success and timing KPI exporters.""" | |
| """A placement Experiment selects the placement success, timing and resource usage KPI exporters.""" |
🤖 Isaac Lab-Arena Review BotSummaryThis PR adds Findings🔴 Critical: isaaclab_arena_environments/performance/experiment_configs/pi05_benchmark_experiment.yaml:9: The rollout stops after 300 steps, which is 20 s at 15 Hz. Maple-table episodes last up to 70 s, and an episode is only written to the results file when it resets. The KPI therefore only counts envs that succeeded or dropped the object in the first 20 s. It reports a rate that is too high, or 🟡 Warning: isaaclab_arena_environments/experiment_configs/getting_started_experiment.yaml:15: 🔵 Improvement: isaaclab_arena_benchmarking/tests/test_placement_success.py:110: The docstring doesn't mention 🔵 Improvement: isaaclab_arena_benchmarking/benchmark_lists/tracked_benchmarks.yaml (not in the diff): The section headers still list the old KPIs: "KPIs: success rate and timing.", "KPIs: placement success and timing." and "KPI: timing." (twice). Test Coverage and CI CostThe test changes only update the expected exporter lists in tests that load configs, so they add no CI cost. All CI jobs on VerdictMinor fixes needed |
Export
resource_usagefor all tracked benchmarks, andsuccess_ratefor the ones that runs a policy.Why
kpi_exportersoverride the default.