Skip to content

[Backport release/3.0.0] Update extra paths configuration for all workflows (#6644) - #7655

Merged
kellyguo11 merged 1 commit into
isaac-sim:release/3.0.0from
StafaH:codex/backport-6644-release-3.0.0
Sep 8, 2026
Merged

kellyguo11 merged 1 commit into
isaac-sim:release/3.0.0from
StafaH:codex/backport-6644-release-3.0.0

Conversation

@StafaH

@StafaH StafaH commented Sep 8, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Backports #6644 to release/3.0.0 by cherry-picking merged commit c91b03687f4f4c753553b6d3617a75d988b973e5 with -x provenance.

The automatic backport run encountered conflicts in the installed-workflow regression test and aggregate-wheel entry point, then failed while resolving those conflicts.

This manual backport preserves the release branch's installed-workflow test structure. The aggregate wheel stores the installed isaaclab.__main__ shim at tools/wheel_builder/res/__main__.py, so the source change to source/isaaclab/isaaclab/__main__.py is applied at that release-specific path. The resulting file is byte-for-byte identical to the source PR result.

Fixes #6475.

Field Commit
Original merged change c91b03687f4f4c753553b6d3617a75d988b973e5
Release base used 190888dbbec9d783a0032e2894af6566f0d690df
Proposed backport 928cf344f54220a344ce46aba01188e79c6628cd

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Documentation update

Release backport

  • This PR already targets the active release branch; do not backport it again.

Validation

  • Source/backport path audit preserved all original paths, with only the aggregate-wheel __main__.py relocation described above; the mapped source and backport blobs are identical.
  • uv lock --check passed.
  • uv run --frozen --extra test python -m pytest source/isaaclab/test/cli/test_install_command_parsing.py source/isaaclab/test/cli/test_installed_workflow_entrypoints.py source/isaaclab/test/cli/test_wheel_builder_metadata.py -q — 78 passed.
  • uv run --frozen --extra test python -m pytest source/isaaclab_rl/test/test_template_generator.py -q — 24 passed.
  • uv run --frozen --extra test python -m pytest --confcutdir=tools/template tools/template/test_cli.py -q — 7 passed.
  • isaaclab --editor smoke passed in a clean temporary workspace; an invalid explicit --isaac_path exited with status 2.
  • uv run --frozen isaaclab -f passed.
  • uv run --frozen --extra test -- make -C docs current-docs passed without warnings.
  • git diff --check upstream/release/3.0.0...HEAD passed.

Checklist

  • I have read and understood the contribution guidelines.
  • I have run the pre-commit checks.
  • I have preserved the corresponding documentation changes.
  • My changes generate no new warnings.
  • I have preserved and run the focused regression tests.
  • The original changelog fragments are preserved for both touched packages.
  • The original contributor already exists in CONTRIBUTORS.md.

…sim#6644)

Fixes isaac-sim#6475.

This change makes Python import-path configuration consistent across
Isaac Lab source checkouts, installed packages, and generated external
projects, including both VS Code/Pylance and Cursor/basedpyright.

The configuration is split by ownership:

- Checked-in Pyright policy lives in `pyproject.toml`.
- Machine-specific paths are written to a git-ignored
`pyrightconfig.json` that extends the project policy.
- VS Code settings retain interpreter and editor behavior without
defining a competing `python.analysis.extraPaths` value.

The shared `isaaclab.utils.editor` utility discovers:

- Isaac Sim extension paths from the selected installation.
- Isaac Lab monorepo packages under `source/*`.
- Standard downstream packages under a `src` layout.
- Isaac Lab packages visible to the active interpreter, covering
editable and wheel installs.

The repository setup script and installed-package workflow now use that
shared utility. The template generator copies the canonical setup
wrapper instead of maintaining a second implementation, and the
generated `pyproject.toml`, README, tests, and documentation are aligned
with the new single-package uv `src` layout introduced on `develop`.
Invalid explicit `--isaac_path` values now fail clearly rather than
silently selecting another installation.

No new runtime dependency is required.

- Bug fix (non-breaking change which fixes an issue)
- Documentation update

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

Not applicable.

- `uv run pytest source/isaaclab_rl/test/test_template_generator.py
source/isaaclab/test/cli/test_installed_workflow_entrypoints.py -q` — 34
passed
- `uv run pytest --confcutdir=tools/template tools/template/test_cli.py
-q` — 7 passed
- `uv run pytest source/isaaclab/test/cli/test_wheel_builder_metadata.py
-q` — 11 passed
- Pyright 1.1.411 configuration check — 0 errors and 0 warnings
- `uv run isaaclab -f` — passed, including changelog validation against
the current upstream `develop`
- `uv run --isolated --extra dev -- make -C docs current-docs` —
warning-free build passed

- [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 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
- [x] I have added a changelog fragment under
`source/<pkg>/changelog.d/` for every touched package
- [x] My name already exists in `CONTRIBUTORS.md`

(cherry picked from commit c91b036)
@StafaH
StafaH requested a review from a team September 8, 2026 21:55
@github-actions github-actions Bot added documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team infrastructure labels Sep 8, 2026
@greptile-apps

greptile-apps Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

This PR should not merge until the editor setup command stops silently destroying existing workspace and Pyright configuration.

Findings

  1. P1 Editor Configs Are Overwritten ▶

Summary

  • Adds reusable editor path discovery and configuration generation.
  • Updates CLI installation hooks and aggregate-wheel entry points.
  • Migrates source and generated-project editor tasks and documentation.
  • Adds focused CLI and template regression coverage.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A["isaaclab --editor"] --> B["CLI command_editor"]
    B --> C["Resolve Isaac Sim installation"]
    C --> D["Collect simulator extension paths"]
    B --> E["Collect local source/src paths"]
    B --> F["Collect installed Isaac Lab package paths"]
    D --> G["Generate pyrightconfig.json"]
    E --> G
    F --> G
    B --> H["Load workspace or default VS Code template"]
    H --> I["Generate .vscode/settings.json"]
    H --> J{"launch.json exists?"}
    J -->|No| K["Generate .vscode/launch.json"]
    J -->|Yes| L["Preserve launch.json"]
Loading

f"// Generated from: {settings_source}\n"
)
settings_path = vscode_dir / "settings.json"
settings_path.write_text(header + settings, encoding="utf-8")

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 Editor Configs Are Overwritten

Running isaaclab --editor now replaces both .vscode/settings.json and pyrightconfig.json without checking whether they already exist. In the aggregate-wheel workflow, the replaced --generate-vscode-settings command asked for confirmation before overwriting existing settings. Users upgrading to this command can therefore silently lose workspace-specific interpreter, formatter, language-server, and Pyright settings. Please preserve or merge existing files, or require confirmation before replacing them.

@StafaH

StafaH commented Sep 8, 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 8, 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 backport consistently centralizes editor setup under isaaclab --editor, but it introduces three compatibility and behavior regressions: established editor CLI options are removed without deprecation, existing workspace settings can be overwritten without confirmation, and the generated Pyright configuration attempts to inherit project policy through an unsupported TOML extends target.

  • Design and architecture: Consolidating the duplicated setup scripts into isaaclab.utils.editor is coherent, but the generated pyrightconfig.json becomes the effective root configuration while attempting to extend pyproject.toml. Pyright's extends mechanism expects another JSON configuration, so the checked-in [tool.pyright] policy is not reliably inherited as documented.
  • API: The user-facing -v/--vscode option and aggregate-wheel --generate-vscode-settings option are deliberately rejected after this change. That is a concrete CLI compatibility break on a release branch and conflicts with the repository requirement to deprecate public APIs before removal. Compatibility aliases should warn and forward to command_editor for a transition period.
  • Implementation: Isaac Sim discovery and path aggregation are otherwise coherent, but setup_editor unconditionally writes .vscode/settings.json, removing the aggregate-wheel workflow's protection for existing customized settings. It also writes {"extends":"./pyproject.toml"}, which does not provide the promised inheritance of the project's Pyright policy. Existing settings should be preserved, merged, or interactively confirmed, and the generated configuration should inherit from a supported JSON base or contain the required policy directly.

Significant concerns. Posted 3 actionable findings inline.

Automated review; human maintainers own approval decisions.

"--vscode",
action="store_true",
help="Generate the VSCode settings file from template.",
"--editor",

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 · Api — Editor CLI flags removed without deprecation

-v/--vscode is deleted here and the wheel shim drops --generate-vscode-settings, so isaaclab -v, ./isaaclab.sh --vscode, and python -m isaaclab --generate-vscode-settings now exit with argparse status 2 on a release branch; the added test asserts this rejection. Repository policy requires prior deprecation and a migration path. Keep both as hidden aliases that warn and forward to command_editor for one release.

f"// Generated from: {settings_source}\n"
)
settings_path = vscode_dir / "settings.json"
settings_path.write_text(header + settings, encoding="utf-8")

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 · Implementation — Editor settings overwritten without confirmation

The replaced aggregate-wheel workflow prompted before replacing an existing .vscode/settings.json, and the installation docs still warned about that confirmation. setup_editor now writes unconditionally into project_dir or Path.cwd(), so running the documented command in an already configured workspace silently discards customized settings. Preserve or merge an existing file, or restore the confirmation when running interactively.

"""
config: dict[str, object] = {"extraPaths": extra_paths}
if (project_dir / "pyproject.toml").is_file():
config["extends"] = "./pyproject.toml"

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 · Implementation — Generated pyright config extends a TOML file

Pyright's extends names another JSON configuration file, and a present pyrightconfig.json supersedes [tool.pyright]. Emitting {"extends": "./pyproject.toml"} therefore does not inherit the checked-in policy (exclude of _isaac_sim, reportMissingImports = "none", typeCheckingMode) that the new docs promise, and this file is written automatically at the end of command_install. Copy the policy into the generated JSON or extend a JSON base config.

@kellyguo11
kellyguo11 merged commit d43f328 into isaac-sim:release/3.0.0 Sep 8, 2026
52 of 53 checks passed
@StafaH
StafaH deleted the codex/backport-6644-release-3.0.0 branch September 13, 2026 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

2 participants