Skip to content

Rename config helpers to describe what they build - #1474

Merged
cvolkcvolk merged 6 commits into
mainfrom
cvolkcvolk/refactor/descriptive-config-builders
Oct 20, 2026
Merged

cvolkcvolk merged 6 commits into
mainfrom
cvolkcvolk/refactor/descriptive-config-builders

Conversation

@cvolkcvolk

@cvolkcvolk cvolkcvolk commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator

Rename six configuration functions to describe building environment settings, building configuration types, and applying variation overrides. Update callers, tests, examples, and documentation to use the new names.

Why this change?

ArenaEnvBuilder.compose_manager_cfg() builds the entire environment configuration and constructor arguments. Its name does not make that scope clear. The variation helpers also need to distinguish creating a dataclass type from building configuration values with overrides and applying them to variation objects.

What changes?

  • Rename compose_manager_cfg() to build_env_cfg().
  • Rename _compose_variations_event_cfg(), _compose_metrics_cfg(), and _compose_episode_recorders_cfg() to _build_variation_events_cfg(), _build_metrics_cfg(), and _build_episode_recorders_cfg().
  • Rename _compose_variation_cfgs() to _build_variations_cfg_type() and compose_variations_cfg_and_apply_overrides() to build_variations_cfg_with_overrides().
  • Describe how build_env_cfg() applies variations and prepares placement. Clarify that build_variations_cfg_with_overrides() returns values without updating the variation objects.

These are API renames without compatibility aliases. External callers must update the two public function names. Hydra, USD, and pose-composition terminology remains in place.

Usage example

Before:

env_cfg, env_kwargs = builder.compose_manager_cfg()
variations_cfg = variations_hydra.compose_variations_cfg_and_apply_overrides(variations, overrides)

After:

env_cfg, env_kwargs = builder.build_env_cfg()
variations_cfg = variations_hydra.build_variations_cfg_with_overrides(variations, overrides)

Validation

  • pre-commit run --all-files: passed.
  • git diff --check: passed.
  • Parsed all 36 changed Python files and compared their syntax trees with the original versions after substituting the six renamed identifiers and excluding docstrings: matched.
  • Repository search found no remaining references to the six previous names.
  • Reviewed names, docstrings, and documentation for expressiveness.
  • Runtime tests were not run: no running Arena Docker container mounts this worktree.

@cvolkcvolk
cvolkcvolk marked this pull request as ready for review October 19, 2026 14:24
@cvolkcvolk cvolkcvolk changed the title Clarify environment configuration builder names Rename config helpers to describe what they build or resolve Oct 19, 2026
@greptile-apps

greptile-apps Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge with the explicitly intended public API renames.

Summary

Renames six configuration functions and updates their callers, tests, examples, and documentation.

  • Environment builders name the full configuration step build_env_cfg.
  • Variation helpers distinguish building a config type from resolving its values.

Reviews (1) · Last reviewed commit: "Shorten environment builder docstring" · Reviewed by Greptile

@arena-review-bot

Copy link
Copy Markdown
Contributor

🤖 Isaac Lab-Arena Review Bot

Summary

Renames ArenaEnvBuilder.compose_manager_cfg() to build_env_cfg(), compose_variations_cfg_and_apply_overrides() to resolve_variations_cfg(), and four private helpers. Updates callers, tests, the example, and docs to match. The rename is complete and mechanical. My only notes are two small docstring points.

Findings

🔵 Improvement: isaaclab_arena/environments/arena_env_builder.py:297: The last commit dropped "This updates the source components." from the build_env_cfg docstring, but the PR description still lists that clarification as a change. Keep a short note, or drop the bullet from the description.
🔵 Improvement: isaaclab_arena/environments/arena_env_builder.py:196: The _build_variation_events_cfg docstring now uses both "runtime" and "run-time". The repo uses "run-time" (RunTimeVariationBase).

Verdict

Ship it

@cvolkcvolk cvolkcvolk changed the title Rename config helpers to describe what they build or resolve Rename config helpers to describe what they build Oct 19, 2026
cvolkcvolk and others added 2 commits October 19, 2026 21:27
Co-authored-by: arena-review-bot[bot] <290456231+arena-review-bot[bot]@users.noreply.github.com>
Co-authored-by: arena-review-bot[bot] <290456231+arena-review-bot[bot]@users.noreply.github.com>

@qianl-nv qianl-nv left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM thanks for the clean up!

@cvolkcvolk
cvolkcvolk merged commit dc77564 into main Oct 20, 2026
11 of 12 checks passed
cvolkcvolk added a commit that referenced this pull request Oct 20, 2026
Brings in these PRs from main:

- #1474 Rename config helpers to describe what they build
- #1385 Abort Newton runs on physics buffer overflow
- #1478 Switch agent CI tests to nightly cadence
- #1449 Keep evaluation recorder outputs run-scoped

Signed-off-by: Clemens Volk <[email protected]>
cvolkcvolk added a commit that referenced this pull request Oct 20, 2026
#1474 renamed ArenaEnvBuilder.compose_manager_cfg() to build_env_cfg()
on main. Update the three calls and the module docstring in
test_asset_selection_variation.py after merging main.

Signed-off-by: Clemens Volk <[email protected]>
qianl-nv pushed a commit that referenced this pull request Oct 20, 2026
Call `ArenaEnvBuilder.build_env_cfg()` in
`test_build_time_variation_seeding.py`, so its three tests run on main
again.

## Why this change?

[#1474](#1474) renamed
`ArenaEnvBuilder.compose_manager_cfg()` to `build_env_cfg()`.
[#1467](#1467) added
`test_build_time_variation_seeding.py`, which still calls
`compose_manager_cfg()`, and the two merged within hours of each other.
On main, all three tests in the file fail with `AttributeError`.

## What changes?

The test helper `get_build_time_values()` calls `build_env_cfg()`. No
other code on main uses the old name.

## Validation

- `pre-commit` passes on the changed file.
- `test_build_time_variation_seeding.py`: 3 passed on this branch.

Signed-off-by: Clemens Volk <[email protected]>
cvolkcvolk added a commit that referenced this pull request Oct 21, 2026
…#1485)

Rename five helpers to describe their conversions or purpose, replace
vague “plumbing” docstrings, and add naming guidance to `AGENTS.md`.
Follow up on
[#1474](#1474), which
clarified config-builder names.

`_normalize_relation_params()` becomes
`_convert_relation_pose_params_to_float_tuples()`: it converts pose
fields to float tuples, without normalizing quaternion length.
“Normalized” is valid in `set_normalized_object_pose()`—its input uses
`[0, 1]` and its helper normalizes vectors and quaternions—but
`set_object_uprightness()` describes its purpose more precisely.

## API changes

Two public renames have no compatibility aliases. Update imports and
calls:

```python
# Before
normalize_run_status(status)
set_normalized_object_pose(env, asset_cfg, upright_percentage=0.5)

# After
run_status_to_lowercase_string(status)
set_object_uprightness(env, asset_cfg, upright_percentage=0.5)
```

Private helpers now name their output: float tuples, an ID list, or an
ID tensor on the environment’s device. The shared guidance preserves
established technical terminology and links to the coordinate-frame
naming convention.

## Validation

Pre-commit and whitespace checks passed. All 11 changed Python files
match their original syntax trees after accounting for renames and
docstrings. No old helper names or “plumbing” references remain outside
submodules.

Runtime tests were not run: this worktree has no running Arena
container.

---------

Signed-off-by: Clemens Volk <[email protected]>
cvolkcvolk added a commit that referenced this pull request Oct 22, 2026
The merge of main brought in #1474, which renamed
ArenaEnvBuilder.compose_manager_cfg() to build_env_cfg(), but not the
test fix from #1486. The three tests in
test_build_time_variation_seeding.py failed with AttributeError. The
file now matches main.

Signed-off-by: Clemens Volk <[email protected]>
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