Skip to content

Export resource usage KPIs for every tracked benchmark - #1837

Open
david-tingdahl-nvidia wants to merge 3 commits into
mainfrom
dtingdahl/feature/resource-usage-default-kpi
Open

david-tingdahl-nvidia wants to merge 3 commits into
mainfrom
dtingdahl/feature/resource-usage-default-kpi

Conversation

@david-tingdahl-nvidia

@david-tingdahl-nvidia david-tingdahl-nvidia commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Export resource_usage for all tracked benchmarks, and success_rate for the ones that runs a policy.

Why

  • Configs that explicitly set kpi_exporters override the default.
  • We want all policy-running benchmarks to export success rates.

@greptile-apps

greptile-apps Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 3/5RetriggerView in Greptile

[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.

Findings

  1. P1 Success rates skip unfinished attempts ▶
  2. P1 Workflow test expects old exporters ▶

Summary

Adds resource_usage to explicit exporter lists across benchmark configurations and examples. Adds success_rate to the pi05 performance workload and updates related assertions.

  • Benchmark results include resource usage, and the pi05 run includes its success rate.

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]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 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]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 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]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 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]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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."""

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Docstring no longer matches the assertion

The test now also expects resource_usage.

Suggested change
"""A placement Experiment selects the placement success and timing KPI exporters."""
"""A placement Experiment selects the placement success, timing and resource usage KPI exporters."""

@arena-review-bot

Copy link
Copy Markdown
Contributor

🤖 Isaac Lab-Arena Review Bot

Summary

This PR adds resource_usage to every tracked benchmark config that sets its own kpi_exporters, because an explicit list replaces the [timing, resource_usage] default. It also adds success_rate to the pi05 PerfLab benchmark. The resource_usage changes look good. There are two problems: the new pi05 success rate comes from a rollout capped at a fixed number of steps, so it is biased, and an existing OSMO test still expects the old getting-started exporters.

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 None if no episode finishes. Suggest keeping this config on the default exporters.

🟡 Warning: isaaclab_arena_environments/experiment_configs/getting_started_experiment.yaml:15: test_collector_runs_the_kpi_exporters_of_the_experiment (isaaclab_arena/tests/test_osmo_experiment_workflow.py:615) reads this file and still asserts ["success_rate", "timing"], so it will fail in the with_subprocess phase.

🔵 Improvement: isaaclab_arena_benchmarking/tests/test_placement_success.py:110: The docstring doesn't mention resource_usage, which the test now expects.

🔵 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_benchmark_experiment_exports_kpis already pins each entry's exporters, so could we remove the KPI lists from these headers instead of keeping a second copy in sync?

Test Coverage and CI Cost

The test changes only update the expected exporter lists in tests that load configs, so they add no CI cost. All CI jobs on 514387a were skipped or cancelled, so I couldn't check whether any test phase passes. The with_subprocess failure above comes from reading the test, not from a CI log.

Verdict

Minor fixes needed

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants