Repository navigation
Adds preset metadata to benchmark JSON output - #4814
Merged
Merged
Conversation
Benchmark scripts now capture the active preset string (e.g. "physx,ovrtx_renderer,rgb") and include it in the benchmark_info workflow_metadata. Sources checked in order: 1. CLI hydra arg: presets=physx,ovrtx_renderer,rgb 2. Env var: OMNIPERF_ISAACLAB_PRESET (used by Omniperf CI runner) 3. Fallback: "default" This allows the Omniperf dashboard and DB to distinguish runs made with different physics/renderer/data-type permutations. Made-with: Cursor
Moves the duplicated preset-capture logic from each benchmark script into get_preset_string() in scripts/benchmarks/utils.py. No behavior change — same 3 sources checked in the same order (CLI hydra arg, OMNIPERF_ISAACLAB_PRESET env var, "default" fallback). Made-with: Cursor
Contributor
Greptile SummaryThis PR adds a
Confidence Score: 4/5
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[benchmark script starts] --> B["parser.parse_known_args()\nreturns hydra_args"]
B --> C["get_preset_string(hydra_args)"]
C --> D{Any arg starts\nwith 'presets='?}
D -- Yes --> E["return split value\n(may be empty string\nif presets= with no value)"]
D -- No --> F{OMNIPERF_ISAACLAB_PRESET\nenv var set and non-empty?}
F -- Yes --> G["return env var value"]
F -- No --> H["return 'default'"]
E --> I["workflow_metadata\npresets field set"]
G --> I
H --> I
I --> J["BaseIsaacLabBenchmark\nconstructor"]
J --> K["JSON output includes\nbenchmark_info.presets"]
Last reviewed commit: 11952a6 |
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> Signed-off-by: preeves-nv <[email protected]>
bareya
reviewed
Mar 4, 2026
Addresses review from @bareya: the env var should not be Omniperf-specific. Renamed from OMNIPERF_ISAACLAB_PRESET to ISAACLAB_BENCHMARK_PRESET. Omniperf CI runners should update to set the new env var name. Made-with: Cursor
fatimaanes
self-requested a review
March 4, 2026 18:24
kellyguo11
approved these changes
Mar 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Benchmark JSON output now includes a
presetsfield in thebenchmark_infoworkflow metadata, allowing dashboards and DB to distinguish runs made with different physics/renderer/data-type permutations.get_preset_string()toscripts/benchmarks/utils.py— extracts the active preset from CLI hydra args (presets=physx,ovrtx_renderer,rgb), theISAACLAB_BENCHMARK_PRESETenv var, or falls back to"default"benchmark_non_rl.py,benchmark_rlgames.py,benchmark_rsl_rl.py) now include{"name": "presets", "data": "..."}in theirworkflow_metadataMigration note for external runners
The environment variable for passing presets has been renamed from
OMNIPERF_ISAACLAB_PRESETtoISAACLAB_BENCHMARK_PRESET. Any CI runner or script that sets the old env var should update to use the new name:Context
This addresses a gap identified while integrating rendering permutation testing into the Omniperf CI pipeline (Soowan Park's omniperf-benchmark MR). The runner sends a preset string to benchmark scripts, but the resulting JSON had no record of which preset was used — making runs with different presets indistinguishable in the DB.
Type of change
Test plan
benchmark_non_rl.pywithpresets=physx— JSON contains"presets": "physx""presets": "default"Checklist
pre-commitchecks with./isaaclab.sh --format