Skip to content

[Workflow] Improve template generator - #7927

Merged
ooctipus merged 6 commits into
isaac-sim:developfrom
StafaH:fix/template-generator-polish
Sep 21, 2026
Merged

ooctipus merged 6 commits into
isaac-sim:developfrom
StafaH:fix/template-generator-polish

Conversation

@StafaH

@StafaH StafaH commented Sep 21, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Generated projects could not start blank, run unattended, use every Isaac Lab extra, or list their tasks through the package CLI. They also inherited placeholder metadata and noisy Ctrl+C shutdown behavior.

This change:

  • adds Blank and Cartpole modes, opt-in non-interactive arguments, author metadata, project asset paths, and every extra exposed by the active Isaac Lab package;
  • guarantees compatible agent configs when single-agent and multi-agent workflows are generated together;
  • adds isaaclab list_envs with current-project filtering, including module:object entry points, and keeps the existing scripts as compatibility wrappers;
  • makes the zero and random agents exit cleanly on Ctrl+C;
  • replaces the generator tests with a focused suite that runs in about one second.

The reported Newton warnings also reproduce with the built-in Cartpole task and require shared asset or backend fixes, so this PR does not suppress them.

Fixes #3223

Type of change

  • Bug fix
  • New feature
  • Documentation update

Release backport

  • Backport this pull request to the active release branch after it merges into develop

Validation

  • 15 focused template-generator and environment-listing tests passed in 1.05 seconds.
  • 47 simple-agent entry-point tests passed.
  • Fresh Blank and Cartpole projects passed registration, packaging, extras, and Ctrl+C smoke tests.
  • All seven registration-tutorial code excerpts build with Sphinx warnings treated as errors. The two stale gym.make endpoint warnings reproduce before the fix.
  • Full uv run isaaclab -f formatting, lint, spelling, TOML, RST, and changelog checks passed using the current develop base.

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with uv run isaaclab -f
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have added a changelog fragment under source/<pkg>/changelog.d/ for every touched package
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

@StafaH
StafaH requested a review from a team September 21, 2026 04:21
@github-actions github-actions Bot added bug Something isn't working documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team infrastructure labels Sep 21, 2026

@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 central isaaclab list_envs command, compatibility wrappers, generator modes, metadata/extras forwarding, and clean Ctrl+C handling are coherent. Before merge, remove the root-level generator work log, align the newly documented generator flags with the repository’s snake_case CLI convention, and preserve the extension-template placeholder marker when relocating environment-listing behavior.

  • Design and architecture: Centralizing environment listing in isaaclab.cli.commands.list_envs and retaining thin script wrappers is a sound consolidation. However, TEMPLATE_GENERATOR_ISSUES.md is a repository-root development record duplicating maintained documentation and changelog content; it conflicts with the rule against committed plans or scratch artifacts and would create an unowned maintenance surface.
  • API: The new non-interactive generator interface is documented and therefore establishes a durable public CLI surface, but its added kebab-case options conflict with the trusted requirement that CLI arguments use snake_case. These names should be corrected before users depend on them.
  • Implementation: The blank/Cartpole generation paths, extras discovery, metadata rendering, and environment cleanup flow are internally consistent. The compatibility-wrapper rewrite nevertheless removes the explicitly protected extension-template placeholder marker; preserve it beside the relocated optional experimental-task import so extension tooling retains its integration point.

Minor fixes needed. Posted 3 actionable findings inline.

Automated review; human maintainers own approval decisions.

Comment thread TEMPLATE_GENERATOR_ISSUES.md Resolved
Comment thread tools/template/cli.py Resolved
Comment thread scripts/environments/list_envs.py Resolved
@StafaH StafaH changed the title Improve template generator workflows [Workflow] Improve template generator Sep 21, 2026
@greptile-apps

greptile-apps Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 4/5

The PR is not safe to merge until mixed single-agent and multi-agent generation guarantees a compatible agent configuration for every requested workflow.

Findings

  1. P1 Mixed Workflows Lose Agents ▶
  2. P2 Sibling Paths Are Rejected ▶
  3. P2 Startup Interrupts Still Traceback ▶
  4. P2 Asset Directory Is Untracked ▶
  5. P2 Root Module Tasks Are Hidden ▶

Summary

This PR substantially expands the project-template and task-discovery workflows:

  • Adds Blank and Cartpole generation modes, non-interactive arguments, author metadata, project asset paths, and forwarding for active Isaac Lab extras.
  • Introduces the package-level isaaclab list_envs command and converts existing scripts into compatibility wrappers.
  • Adds cleanup and interrupt handling to zero/random agents.
  • Updates generated project metadata, documentation, changelogs, and focused tests.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A["isaaclab --new"] --> B{"Input mode"}
    B -->|Interactive| C["Prompt for project specification"]
    B -->|Non-interactive| D["Parse and validate arguments"]
    C --> E["Canonical specification"]
    D --> E
    E --> F["Resolve source or wheel dependencies and extras"]
    F --> G{"Initial content"}
    G -->|Blank| H["Write package, assets, tests, and tooling"]
    G -->|Cartpole| I["Generate one task per selected workflow"]
    I --> J["Filter agent libraries and algorithms per workflow"]
    J --> K["Write registrations, configs, and project metadata"]
    H --> K
Loading

Reviews (1) · Last reviewed commit: "Improve template generator workflows"

Comment thread tools/template/cli.py Resolved
Comment thread tools/template/cli.py Resolved
Comment thread tools/template/generator.py Resolved
@StafaH

StafaH commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Sep 21, 2026
@StafaH

StafaH commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Sep 21, 2026
@StafaH

StafaH commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Sep 21, 2026
@ooctipus ooctipus added the ci:run-docker Trigger the on-demand Docker and GPU CI workflow label Sep 21, 2026
@ooctipus
ooctipus merged commit 83df17e into isaac-sim:develop Sep 21, 2026
53 checks passed
@isaaclab-bot

isaaclab-bot Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Backported to release/3.0.0 as 76c7c60.

isaaclab-bot Bot pushed a commit that referenced this pull request Sep 21, 2026
# Description

Generated projects could not start blank, run unattended, use every
Isaac Lab extra, or list their tasks through the package CLI. They also
inherited placeholder metadata and noisy Ctrl+C shutdown behavior.

This change:

- adds Blank and Cartpole modes, opt-in non-interactive arguments,
author metadata, project asset paths, and every extra exposed by the
active Isaac Lab package;
- guarantees compatible agent configs when single-agent and multi-agent
workflows are generated together;
- adds `isaaclab list_envs` with current-project filtering, including
`module:object` entry points, and keeps the existing scripts as
compatibility wrappers;
- makes the zero and random agents exit cleanly on Ctrl+C;
- replaces the generator tests with a focused suite that runs in about
one second.

The reported Newton warnings also reproduce with the built-in Cartpole
task and require shared asset or backend fixes, so this PR does not
suppress them.

Fixes #3223

## Type of change

- Bug fix
- New feature
- Documentation update

## Release backport

- [x] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `develop`

## Validation

- 15 focused template-generator and environment-listing tests passed in
1.05 seconds.
- 47 simple-agent entry-point tests passed.
- Fresh Blank and Cartpole projects passed registration, packaging,
extras, and Ctrl+C smoke tests.
- All seven registration-tutorial code excerpts build with Sphinx
warnings treated as errors. The two stale `gym.make` endpoint warnings
reproduce before the fix.
- Full `uv run isaaclab -f` formatting, lint, spelling, TOML, RST, and
changelog checks passed using the current develop base.

## Checklist

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`uv run isaaclab -f`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] I have added a changelog fragment under
`source/<pkg>/changelog.d/` for every touched package
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there

---------

Co-authored-by: Octi Zhang <[email protected]>

(cherry picked from commit 83df17e)
@ooctipus
ooctipus deleted the fix/template-generator-polish branch September 21, 2026 07:38
ooctipus added a commit that referenced this pull request Sep 24, 2026
…ng docs (#7957)

Backports the three changes from the September 20–23 `develop` audit
that are missing from `release/3.0.0`, alongside the existing
cloning-guide backport:

- #7722 (`4cf439dfeb`): reject a second `SimulationContext` construction
instead of silently discarding its configuration. Includes the original
fixture cleanup and regression coverage.
- #7893 (`22fcd71bc4`): validate DelayBuffer lag values before mutating
its live configuration.
- #7947 (`6e9ef17f59`): make `v3.0.0-EA` the default documentation
version in deployment and local multi-version builds.
- #7129 (`354168560f`): clarify that `replicate_physics=False` skips the
active physics context while other declared replication contexts still
run.

**Compatibility:** repeated `SimulationContext(...)` calls now raise.
Retrieve the live context with `SimulationContext.instance()`, or call
`clear_instance()` before constructing a replacement. The original major
changelog fragment includes this migration.

The runtime and test files match current `develop`. The docs-default
backport adapts the release branch's existing redirect template,
validates the target page, and preserves explicit overrides. The
cloning-guide backport preserves the current release APIs; its obsolete
sections were already removed.

## Release audit

Checked all **35 PRs** merged into `develop` from **2026-09-20 16:43:18
UTC** through `cff81e8473` (September 23), against release head
`5d3e0b695e`. **32 are already covered; the remaining three are included
here.** Git history, patch equivalence, GitHub's merged PR list, and
remaining file differences were checked. Branch-specific
version/changelog compilation and existing release-only changes are
preserved.

<details>
<summary>Already covered PRs</summary>

26 have an equivalent patch in release: #7919, #7922, #7923, #7924,
#7925, #6758, #7928, #7902, #7927, #7891, #7931, #7691, #7861, #7929,
#7916, #7939, #4609, #7942, #7940, #7948, #7937, #7955, #7960, #7961,
#7970, #7958.

Six were squash-merged or adapted: #7530 and #7899 in #7926; #7637 in
#7933; #7860 in #7936; #7954 and #7950 in #7964. Their implementation
differences were checked against the current release tree.

</details>

## Validation

- **276 tests passed**: SimulationContext (51, including CPU/CUDA),
headless context construction (15), nine schema/fragment suites (165),
four manager suites (38), and DelayBuffer (7).
- Both backported regressions reproduce with the original release
implementations.
- Docs redirect recipe: local/deployment EA defaults, explicit override,
and missing-target rejection passed with a stubbed Sphinx builder.
- All 22 changed files match the intended backport scope; `uv run
isaaclab -f` and `git diff --check` passed.
- Fresh Sphinx validation (`-b dummy -W --keep-going`): passed without
warnings, excluding static assets as the HTML builder does. Full HTML
documentation CI is running.

Local runtime validation used PyTorch 2.12.0, CUDA 13.0, Isaac Sim
6.0.1.0, and an RTX 5090. Existing runtime/deprecation warnings
occurred; the CI jobs validate the pinned environments.

The previous [docs CI
failure](https://github.com/isaac-sim/IsaacLab/actions/runs/35795116307/job/106972539281)
was an external connection reset fetching the Omniverse intersphinx
inventory, producing one warning under `-W`. That URL returned HTTP 200
when rechecked. This update starts a fresh docs build.

---------

Co-authored-by: hujc <[email protected]>
Co-authored-by: Zihan Xu <[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 ci:run-docker Trigger the on-demand Docker and GPU CI workflow documentation Improvements or additions to documentation infrastructure isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Proposal] Template generator non-interactive flow

2 participants