Skip to content

Reduce GearAssembly default environment count - #7215

Merged
kellyguo11 merged 1 commit into
isaac-sim:developfrom
AntoineRichard:fix/gearassembly-safe-defaults
Aug 20, 2026
Merged

kellyguo11 merged 1 commit into
isaac-sim:developfrom
AntoineRichard:fix/gearassembly-safe-defaults

Conversation

@AntoineRichard

Copy link
Copy Markdown
Collaborator

Summary

  • Reduce all GearAssembly task defaults to 1024 parallel environments.
  • Remove the UR10e-specific 2048 override so all Rizon and UR ROS/non-ROS variants share the safe default.
  • Add configuration coverage for all six variants and a changelog fragment.

Motivation

The recurrent PPO critic can OOM during an LSTM update at the previous task defaults despite successful simulation rollout. The new default avoids advertising a configuration that exceeds typical development GPU memory; users can still override it with --num_envs.

Validation

  • uv run --extra test --frozen python -m pytest source/isaaclab_tasks/test/contrib/test_gear_assembly_env_cfg.py -q (6 passed)
  • uv run --frozen isaaclab -f
  • uv run --extra test --frozen python tools/changelog/cli.py check develop

Checklist

  • I have read and understood the contribution guidelines
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective
  • I have added a changelog fragment under source/<pkg>/changelog.d/ for every touched package
  • My name already exists in CONTRIBUTORS.md

@AntoineRichard
AntoineRichard requested a review from a team August 20, 2026 12:42
@github-actions github-actions Bot added bug Something isn't working isaac-lab Related to Isaac Lab team infrastructure labels Aug 20, 2026
@greptile-apps

greptile-apps Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR lowers every GearAssembly variant’s default parallel environment count to 1024 and adds regression coverage for all six configurations. It also introduces shared task-discovery utilities, integrates declared task discovery into environment documentation generation, and expands lightweight CI coverage.

  • Reduces the GearAssembly base default and removes the UR10e-specific override.
  • Adds GearAssembly configuration tests and a changelog fragment.
  • Adds task and backend discovery with declared and resolved modes.
  • Reuses task-discovery filtering and library ordering in environment documentation.
  • Adds unit and integration coverage for discovery, resolution, validation, and deduplication.

Confidence Score: 5/5

The PR appears safe to merge because no concrete changed-code failure remains after reviewing the configuration and task-discovery paths.

The GearAssembly variants consistently inherit the new tested default, while the discovery and documentation changes preserve the relevant registry filtering and declared-preset contracts without an established reachable regression.

Important Files Changed

Filename Overview
source/isaaclab_tasks/isaaclab_tasks/contrib/deploy/gear_assembly/gear_assembly_env_cfg.py Changes the inherited GearAssembly scene default from 4096 to 1024 environments.
source/isaaclab_tasks/isaaclab_tasks/contrib/deploy/gear_assembly/config/ur_10e/joint_pos_env_cfg.py Removes the UR10e-specific 2048 override so UR10e variants inherit the shared 1024 default.
source/isaaclab_tasks/test/contrib/test_gear_assembly_env_cfg.py Verifies that all six Rizon and UR10e ROS/non-ROS variants resolve to 1024 environments.
tools/task_discovery.py Adds task filtering, preset enumeration, backend-combination resolution, config fingerprinting, and mode deduplication without an established actionable defect.
tools/environ_docs.py Reuses task discovery for task filtering and declared preset collection while preserving documentation-facing preset shapes.
.github/workflows/tools-tests.yml Adds the dependency-light task-discovery unit suite to the existing tools test job.
tools/test/test_task_discovery.py Covers training-task filtering, library extraction, matrix construction, deduplication, and strict validation behavior.
tools/test/test_task_discovery_resolve.py Exercises resolution against real configurations, including backend compatibility, cross-axis validation, fingerprints, aliases, and process-state restoration.

Reviews (1): Last reviewed commit: "Reduce GearAssembly default environment ..." | Re-trigger Greptile

@isaaclab-review-bot isaaclab-review-bot Bot left a comment

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.

Isaac Lab Review Bot

The GearAssembly default reduction is internally consistent, but this focused configuration fix also includes a substantial, unrelated task-discovery and documentation-tooling feature that should be separated before merge.

  • Design and architecture: The shared GearAssembly default of 1024 and removal of the UR10e override provide a coherent single-source configuration for all six variants. However, adding the 366-line task-discovery module, rewiring environment documentation, and changing tools CI materially expands the architecture, review scope, and revert surface beyond the stated fix, contrary to the repository’s smallest-change guidance.
  • API: The GearAssembly environment-count setting remains user-overridable, and the reviewed tooling changes retain the existing is_training_task import surface. The concern is not an identified API break but bundling an independent tooling feature with the configuration correction.
  • Implementation: The GearAssembly implementation, regression coverage, and changelog align with the requested default change. Move the task-discovery module, environment-documentation integration, associated tests, and workflow edits into a separate focused pull request.

Significant concerns. Posted 1 actionable finding inline.

Automated review; human maintainers own approval decisions.

Comment thread tools/task_discovery.py Outdated
@@ -0,0 +1,366 @@
# Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md).

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.

🟡 Warning · Design Architecture — Unrelated tooling feature bundled with defaults fix

The stated change is lowering GearAssembly num_envs, which needs only the env cfg, the UR10e override removal, the test and the changelog. This diff also adds a 366-line discovery module, rewires tools/environ_docs.py onto it, and edits the tools CI workflow. Repository guidelines require the smallest change and focused commits; splitting the tooling work into its own pull request keeps the default change independently reviewable and revertable.

@AntoineRichard
AntoineRichard force-pushed the fix/gearassembly-safe-defaults branch from 6b28a64 to 4b47b22 Compare August 20, 2026 13:21
@kellyguo11
kellyguo11 merged commit a439847 into isaac-sim:develop Aug 20, 2026
47 of 48 checks passed
kellyguo11 added a commit that referenced this pull request Aug 21, 2026
## Summary

Cherry-picks the following merged PRs from `develop` onto
`release/3.0.0`, preserving each as an individual commit with `-x`
provenance:

- #7193 — Bake CI pytest deps into the built Docker image
- #7077 — Add OVPhysX support to Franka deformable lift tasks
- #7175 — Raise on unsupported camera renderer outputs
- #7174 — Fix benchmark play inference scope
- #7173 — Report resolved backend for play benchmarks
- #7172 — Add video recording to play benchmarks
- #7215 — Reduce GearAssembly default environment count
- #7214 — Remove Kamino preset from open drawer
- #7213 — Fix OvPhysX scene gravity randomization
- #7212 — Fix OVPhysX material binding device selection
- #7189 — Make preview surfaces renderer agnostic
- #7206 — Fix OVPhysX benchmark articulation setup

All cherry-picks and the final rebase onto the latest `release/3.0.0`
tip completed without conflicts.

## Validation

- Verified all 12 backported commits have patch IDs identical to their
source squash commits and retain their `cherry picked from` footers.
- `git diff --check upstream/release/3.0.0..HEAD`
- Bash syntax validation for the modified CI shell scripts.
- YAML parsing for the modified composite actions.
- Changelog validation against `release/3.0.0`.
- Targeted pytest coverage for benchmark APIs/play, video recording,
GearAssembly defaults, OVPhysX presets and runtime semantics, and
renderer-agnostic materials: **81 passed, 4 skipped, 1 deselected**.
- The deselected case is an unchanged test that hard-codes a POSIX
`/tmp` path and fails on Windows path normalization.
- `uv run isaaclab -f` passed all hooks except the changelog hook's
known release-branch baseline finding for
`source/isaaclab/changelog.d/core-test-config-fixtures.skip`; the
targeted release-base changelog check passed.

---------

Co-authored-by: Matthew Taylor <[email protected]>
Co-authored-by: Antoine RICHARD <[email protected]>
Co-authored-by: Mike Yan Michelis <[email protected]>
Co-authored-by: Maximilian Krause <[email protected]>
Co-authored-by: Octi Zhang <[email protected]>
Co-authored-by: Mustafa H <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working infrastructure isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants