Skip to content

[Fix] Stop docker installs breaking Isaac Sim extension startup (prebundle deletion, pin-pink) - #6329

Merged
hujc7 merged 8 commits into
isaac-sim:developfrom
hujc7:jichuanh/docker-install-prebundle-safety
Jul 8, 2026
Merged

hujc7 merged 8 commits into
isaac-sim:developfrom
hujc7:jichuanh/docker-install-prebundle-safety

Conversation

@hujc7

@hujc7 hujc7 commented Jul 2, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Fixes the Docker-only error flood in nvbugs 6343978 (follow-up to #6288): streaming starts, but
the log carries 438 [Error] lines and 14 Isaac Sim extensions fail to load. uv installs are
unaffected. Two independent causes, both Isaac Lab's install mutating packages that Isaac Sim's
extensions rely on.

Summary

  • packaging deleted from a shared prebundle. The vestigial packaging<24 bound in
    isaaclab_rl forced a downgrade; pip (which sees prebundle paths through python.sh's
    environment) uninstalled packaging-26.0 from the omni.isaac.core_archive prebundle.
    omni.services.pip_archive shares that package as per-file symlinks, so the deletion dangled
    the farm and cascaded into 13 extension startup failures. Fixed by relaxing the bound (no
    consumer requires it; now in the root pyproject.toml after the Update the central pyproject, remove subpackage specific dependencies #6009 centralization), plus a
    fail-loud invariant: the install aborts if pip leaves a prebundled package with a dangling
    __init__.py.
  • pin-pink==3.1.0 too old for Isaac Sim 6.x. isaacsim.robot_motion.pink needs
    pink.exceptions.NoSolutionFound (pink ≥ 3.3.0). Isaac Sim bundles pink 4.2.0, but the
    install replaces it with the kit-site-packages copy, pinned to 3.1.0 since pink 3.4+ broke
    the pink_ik task API (Fix pink ik dep pinning #5846). Bumped to 3.3.0, which satisfies both consumers
    (DampingTask.set_target_from_configuration verified present on both wheels). The pin lives
    once in the root pyproject.toml; the install CLI now derives its force-install stack from
    those entries instead of a hardcoded copy.
  • Impact: an image rebuilt with this PR runs the exact reported command with
    0 errors / 0 tracebacks / 0 extension failures (broken image and the customer's attached
    log: 438 / 34 / 14).

1. Design notes

  1. Invariant scoping (empirical). Every docker build routinely replaces prebundled dists
    (numpy, the cmeel/pinocchio stack, scipy, …) and leaves ~42 dangling links to files Python
    never imports at startup (test modules, WHEEL/license files, cmake hooks) — none of them
    __init__.py. The harmful class (this bug) dangles package __init__.py files, making the
    package unimportable for every extension that loads it. The install therefore fails only on
    a new dangling __init__.py and warns on other new dangling links.
  2. Considered and rejected: hiding prebundles from pip. Routing pip to the concrete kit
    interpreter also prevents deletions, but changes dependency resolution build-wide: deps
    previously satisfied by prebundled copies get freshly resolved into kit site-packages, and
    the isaacteleop step then downgraded numpy to 2.3.5 and pin to 3.9.0 — CI measured the
    rsl_rl export flow at ~4.4× baseline (600s timeouts vs 168s). Prebundle-visible
    resolution is kept as-is, with the invariant as the guard.

2. Validation

  • End-to-end on a fresh image built from this PR (Isaac Sim base digest 99e4e4cfae17…):
    isaac-sim.streaming.sh --allow-root reaches streaming at ~34 s, stays alive to timeout,
    with 0 Kit errors, 0 tracebacks, 0 extension-startup failures. Baked state: packaging 26.0
    resolves from the prebundle, pink 3.3.0 imports from kit site-packages, 0 dangling
    __init__.py anywhere in the prebundles.
  • Customer log cross-check: the attached isaaclab_streaming_20260702.log has the
    identical 438-error class set as the local broken reproduction — both roots, no third issue.
  • Invariant: catches the packaging cascade in-container (RuntimeError naming the broken
    omni.services.pip_archive links) and passes the routine-residue case.
  • Tests: install CLI suites 148 passed / 1 skipped (invariant + derived-stack tests);
    test_pink_ik_components.py with pink 3.3.0 — 21 passed. CI fully green; the export flow
    runs at its 168 s baseline.

Fixes nvbugs 6343978.

Route pip operations through the concrete kit interpreter instead of
the python.sh launcher. python.sh re-sources setup_python_env.sh,
which puts pip_prebundle paths back on PYTHONPATH, so pip run through
it treats Isaac Sim's prebundled distributions as installed and
uninstalls them on version conflicts. During docker image builds the
isaaclab_rl packaging<24 pin forced a downgrade that deleted
packaging-26.0 from the omni.isaac.core_archive prebundle, dangling
the symlink farm shared by omni.services.pip_archive and cascading
into 14 extension startup failures (nvbugs 6343978).

Also:
- Add a fail-loud post-install check that no distribution disappeared
  from an Isaac Sim prebundle during pip operations.
- Relax the vestigial packaging<24 bound in isaaclab_rl (no consumer
  requires it; it was the downgrade trigger).
- Bump pin-pink 3.1.0 -> 3.3.0: Isaac Sim 6.x's
  isaacsim.robot_motion.pink extension needs
  pink.exceptions.NoSolutionFound (module layout from 3.3.0), while
  pink 3.4+ breaks the task API used by isaaclab.controllers.pink_ik;
  3.3.x satisfies both consumers.
@github-actions github-actions Bot added isaac-lab Related to Isaac Lab team infrastructure labels Jul 2, 2026
hujc7 added 3 commits July 2, 2026 23:04
… only

Revert the pip interpreter rerouting (python.sh -> kit binary): hiding
Isaac Sim's prebundles from pip changes dependency resolution across
the whole docker build. Packages previously satisfied by prebundled
copies (numpy, pin/pinocchio, ...) get freshly resolved into kit
site-packages, and the isaacteleop step then downgraded numpy to
2.3.5 and pin to 3.9.0, slowing the rsl_rl export-flow CI batches
~4.4x past their 600s timeout (168s on the pre-change image).

Prebundle protection stays with the fail-loud snapshot/assert
invariant: any pip operation that removes a prebundled distribution
now aborts the install with a clear message instead of shipping an
image that breaks Isaac Sim extension startup. The original deletion
trigger is gone via the relaxed isaaclab_rl packaging bound.
The dist-info snapshot fired on every real docker build: pip replacing
prebundled distributions with site-packages copies is routine (the
build deletes numpy, the cmeel/pinocchio stack, scipy and more from
prebundles on every image, and site-packages shadows them at runtime).
The harmful case is narrower: deleting a copy that other extensions
reference through Isaac Sim's per-file symlink farms, which leaves
dangling symlinks and breaks extension startup (the packaging cascade
in nvbugs 6343978).

Check for exactly that: snapshot dangling symlinks under all
pip_prebundle directories before the pip window and fail the install
only when new ones appear. Pre-existing dangles are tolerated (the
current Isaac Sim image ships 42 of them).
The all-dangles invariant fired on the real base-image build: routine
pip replacements leave ~42 dangling links every build, all to files
Python never imports at extension startup (test modules in the
unimportable newton[sim] directory, dist-info WHEEL/license files,
cmake hooks, numpy.libs sonames). The catastrophic class - the
packaging cascade in nvbugs 6343978 - dangles a package __init__.py,
making the package unimportable for every extension that loads it.

Fail the install only when a new dangling __init__.py appears; report
other new dangling links as a warning for visibility.
@hujc7
hujc7 marked this pull request as ready for review July 3, 2026 03:06
@hujc7
hujc7 requested a review from Mayankm96 as a code owner July 3, 2026 03:06
@greptile-apps

greptile-apps Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR fixes two independent Docker-only startup failures affecting Isaac Sim 6.x: removing a vestigial packaging<24 pin that forced pip to delete packaging-26.0 from Isaac Sim's prebundle (breaking 14 extensions via dangling symlinks), and bumping pin-pink from 3.1.0 to 3.3.0 to satisfy isaacsim.robot_motion.pink's need for pink.exceptions.NoSolutionFound.

  • Root cause A fix: packaging<24 removed from isaaclab_rl and wheel-builder spec; a new fail-loud post-install check (_assert_no_new_dangling_prebundle_symlinks) aborts the install when any pip operation leaves a newly dangling __init__.py symlink in an Isaac Sim pip_prebundle directory, naming the broken link.
  • Root cause B fix: pin-pink pinned to ==3.3.0 across pyproject.toml, _PINK_IK_STACK, error messages, and wheel-builder spec — the overlap window that provides pink.exceptions while staying below the pink 3.4 task-API break.
  • Integrity guard detail: _discover_prebundle_dirs is refactored out of _repoint_prebundle_packages and reused by the new dangling-symlink scanner; the scan now runs three times per install (~13 s each per PR description), adding ~26 s net overhead versus the pre-PR path.

Confidence Score: 4/5

Safe to merge; the constraint relaxation and version bump are targeted and validated in-container, and the new integrity guard fails loudly rather than silently shipping a broken state.

The packaging constraint removal and the pin-pink version bump are both straightforward and in-container validated. The new dangling-symlink guard correctly handles the documented failure class (per-file symlinks) and the three-times _discover_prebundle_dirs call is a minor performance observation, not a correctness issue. No logic errors were found in the detection or assertion path.

source/isaaclab/isaaclab/cli/commands/install.py — the new prebundle-scan functions are the most novel code; the triple rglob and the file-only coverage of os.walk are worth a second look before merging.

Important Files Changed

Filename Overview
source/isaaclab/isaaclab/cli/commands/install.py Core logic change: extracts _discover_prebundle_dirs() from inline code in _repoint_prebundle_packages(), adds _find_dangling_prebundle_symlinks() and _assert_no_new_dangling_prebundle_symlinks() as a fail-loud post-install integrity check; now calls _discover_prebundle_dirs() three times per install (baseline, repoint, post-check)
source/isaaclab/test/cli/test_install_prebundle.py Adds 5 new unit tests covering intact symlink farms, cascade deletion detection, pre-existing tolerated dangles, routine dist replacement, and non-package residue warnings; one assertion in test_raises_when_symlink_target_deleted is placed outside the mock.patch context (works correctly but could be clarified)
source/isaaclab_rl/pyproject.toml Removes the packaging<24 upper bound that was the root cause of the prebundle deletion cascade in docker installs; no consumer required the bound
source/isaaclab/pyproject.toml Bumps pin-pink from 3.1.0 to 3.3.0 and updates the dependency comment to explain the 3.3.x–3.4 compatibility window
tools/wheel_builder/res/python_packages.toml Pins pin-pink from >=2.3.6 to ==3.3.0 and removes the packaging<24 bound; aligns wheel-builder spec with runtime pyproject.toml constraints
source/isaaclab/isaaclab/controllers/pink_ik/pink_ik.py Mechanical update: two error message strings updated from pin-pink==3.1.0 to ==3.3.0 to match the new version pin

Sequence Diagram

%%{init: {'theme': 'neutral'}}%%
sequenceDiagram
    participant CI as command_install
    participant PBS as _find_dangling_prebundle_symlinks
    participant DPD as _discover_prebundle_dirs
    participant PIP as pip operations
    participant RPP as _repoint_prebundle_packages
    participant CHK as _assert_no_new_dangling_prebundle_symlinks

    CI->>PBS: snapshot before (baseline)
    PBS->>DPD: rglob pip_prebundle (~13s)
    DPD-->>PBS: prebundle_dirs
    PBS-->>CI: dangling_symlinks_before

    CI->>PIP: upgrade pip, install isaaclab submodules, pink-ik stack
    Note over PIP: packaging<24 removed, pin-pink bumped 3.1.0 to 3.3.0

    CI->>RPP: repoint prebundle packages
    RPP->>DPD: rglob pip_prebundle (~13s)
    DPD-->>RPP: prebundle_dirs

    CI->>CHK: assert no new dangling symlinks
    CHK->>PBS: snapshot after
    PBS->>DPD: rglob pip_prebundle (~13s)
    DPD-->>PBS: prebundle_dirs
    PBS-->>CHK: dangling_symlinks_after

    alt new __init__.py dangling (cascade class)
        CHK-->>CI: RuntimeError - aborts install
    else new non-__init__ dangling (routine residue)
        CHK-->>CI: print_warning - install continues
    else no new dangles
        CHK-->>CI: ok
    end
Loading
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
sequenceDiagram
    participant CI as command_install
    participant PBS as _find_dangling_prebundle_symlinks
    participant DPD as _discover_prebundle_dirs
    participant PIP as pip operations
    participant RPP as _repoint_prebundle_packages
    participant CHK as _assert_no_new_dangling_prebundle_symlinks

    CI->>PBS: snapshot before (baseline)
    PBS->>DPD: rglob pip_prebundle (~13s)
    DPD-->>PBS: prebundle_dirs
    PBS-->>CI: dangling_symlinks_before

    CI->>PIP: upgrade pip, install isaaclab submodules, pink-ik stack
    Note over PIP: packaging<24 removed, pin-pink bumped 3.1.0 to 3.3.0

    CI->>RPP: repoint prebundle packages
    RPP->>DPD: rglob pip_prebundle (~13s)
    DPD-->>RPP: prebundle_dirs

    CI->>CHK: assert no new dangling symlinks
    CHK->>PBS: snapshot after
    PBS->>DPD: rglob pip_prebundle (~13s)
    DPD-->>PBS: prebundle_dirs
    PBS-->>CHK: dangling_symlinks_after

    alt new __init__.py dangling (cascade class)
        CHK-->>CI: RuntimeError - aborts install
    else new non-__init__ dangling (routine residue)
        CHK-->>CI: print_warning - install continues
    else no new dangles
        CHK-->>CI: ok
    end
Loading

Reviews (1): Last reviewed commit: "Fail prebundle invariant only on danglin..." | Re-trigger Greptile

Comment on lines +819 to +825
for prebundle_dir in _discover_prebundle_dirs():
for root, _dirs, files in os.walk(prebundle_dir):
for name in files:
path = Path(root) / name
if path.is_symlink() and not path.exists():
dangling.add(path)
return dangling

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.

P2 os.walk silently skips directory-level symlinks in the scan

os.walk with followlinks=False (the default) puts symlinks-to-directories in _dirs and never traverses them, so dangling directory symlinks inside a pip_prebundle would be missed entirely. The PR description says Isaac Sim uses per-file symlinks, and the tests confirm that assumption, so this is not a present defect for the documented failure mode. Worth calling out explicitly in the docstring that the scan covers file-level symlinks only, since directory-level symlink farms would silently bypass this guard.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Comment on lines +779 to +806
def _discover_prebundle_dirs() -> set[Path]:
"""Find every ``pip_prebundle`` directory under the Isaac Sim installation.

Searches both the Isaac Sim tree and the Omniverse cache roots — some Isaac
Sim directories are symlinked into ``~/.local/share/ov`` and would be missed
by a plain ``rglob()`` on ``_isaac_sim``. Returns an empty set when no Isaac
Sim installation is present.
"""
isaacsim_path = extract_isaacsim_path(required=False)
if isaacsim_path is None or not isaacsim_path.exists():
return set()

candidate_roots: set[Path] = set()
for root in (
isaacsim_path,
isaacsim_path.resolve(),
isaacsim_path / "extscache",
Path.home() / ".local" / "share" / "ov" / "data" / "exts",
Path.home() / ".local" / "share" / "ov" / "data" / "exts" / "v2",
):
if root.exists():
candidate_roots.add(root)
candidate_roots.add(root.resolve())

prebundle_dirs: set[Path] = set()
for root in candidate_roots:
prebundle_dirs.update(root.rglob("pip_prebundle"))
return prebundle_dirs

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.

P2 _discover_prebundle_dirs is now called three times per install

Before this PR, the prebundle rglob scan ran once (inside _repoint_prebundle_packages). After the refactoring it runs three times per install: once for the pre-pip baseline (_find_dangling_prebundle_symlinks at line 1112), once inside _repoint_prebundle_packages, and once for the post-check (_assert_no_new_dangling_prebundle_symlinks → _find_dangling_prebundle_symlinks). The PR description records each walk at ~13 s, so the net new overhead is ~26 s on every docker install. The baseline and post-check walks could share the prebundle set to avoid one of the two scans — e.g. by accepting an optional cached prebundle_dirs parameter — but for a one-time install operation this is unlikely to be user-visible.

Comment on lines +121 to +129
def test_raises_when_symlink_target_deleted(self, tmp_path):
"""Deleting the shared copy must fail the install, naming the broken link."""
core, services = self._make_prebundles(tmp_path)
with mock.patch("isaaclab.cli.commands.install._discover_prebundle_dirs", return_value={core, services}):
before = _find_dangling_prebundle_symlinks()
shutil.rmtree(core / "packaging")
with pytest.raises(RuntimeError, match="dangling symlink") as excinfo:
_assert_no_new_dangling_prebundle_symlinks(before)
assert str(services / "packaging" / "__init__.py") in str(excinfo.value)

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.

P2 Final path assertion falls outside the mock.patch context

The assert str(services / "packaging" / "__init__.py") in str(excinfo.value) on line 129 is at the indentation level of with mock.patch(...), meaning it executes after the mock is torn down. This happens to be harmless — excinfo.value is already captured when pytest.raises exits, so the string comparison is safe — but placing the assertion inside both context managers would make the intent clearer and protect against a future reader accidentally moving the assertion line further out.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@rthaker01
rthaker01 requested a review from kellyguo11 July 6, 2026 16:11
hujc7 added 2 commits July 8, 2026 07:56
Resolve against the dependency centralization refactor (isaac-sim#6009):
- Re-apply the pin-pink 3.3.0 bump in the root pyproject.toml, the new
  single source for third-party dependencies (subpackage pyprojects and
  tools/wheel_builder/res/python_packages.toml no longer declare them).
- Drop the isaaclab_rl changelog fragment: the packaging<24 bound this
  PR removed was already dropped upstream by the centralization, so the
  package is no longer touched.
- Keep the prebundle dangling-symlink invariant bracketing the pip
  window in command_install; the refactor's new
  _install_centralized_dependencies step now runs inside the guarded
  window.
The pin-pink/daqp versions were mirrored in four places and had to be
swept manually on every bump (3.1.0 -> 3.3.0 touched all of them).
Following the dependency centralization in isaac-sim#6009, the root
pyproject.toml is the single source of truth:

- Replace the hardcoded _PINK_IK_STACK tuple with _pink_ik_stack(),
  which derives the requirement strings from [project.dependencies]
  (markers stripped; fails loud when a stack package is missing).
- Build the force-install failure warning from the derived stack.
- Drop the version literals from the pink_ik controller error
  messages, which run in installed environments without repo access;
  they now point at the root pyproject pins instead.
@hujc7
hujc7 requested a review from StafaH July 8, 2026 08:26
@hujc7
hujc7 force-pushed the jichuanh/docker-install-prebundle-safety branch from d831e10 to 9eac359 Compare July 8, 2026 16:22
@hujc7
hujc7 merged commit 3a315a0 into isaac-sim:develop Jul 8, 2026
37 checks passed
hujc7 added a commit that referenced this pull request Jul 10, 2026
…etion, pin-pink) (#6436)

# Description

Cherry-pick of #6329 onto `release/3.0.0-beta2` — the follow-up to #6295
for NVBug 6410989 (continuation of NVBug 6343978): Docker streaming
works but the log floods with 438 `[Error]` lines and 14 Isaac Sim
extensions fail to load. uv installs are unaffected.

## 1. Summary

- Relaxed the vestigial `packaging<24` bound in `isaaclab_rl` — it
forced pip to downgrade `packaging` and delete it from the
`omni.isaac.core_archive` prebundle, dangling the per-file symlink farm
`omni.services.pip_archive` shares with it (13 extension startup
failures).
- Bumped `pin-pink` `3.1.0` → `3.3.0` at every pin site —
`isaacsim.robot_motion.pink` needs `pink.exceptions.NoSolutionFound`
(pink ≥ 3.3.0); pink 3.4+ stays excluded (pink_ik task-API break,
#5846). The wheel spec's `pin-pink>=2.3.6` also becomes `==3.3.0` (it
currently resolves to 4.x).
- Added the fail-loud post-install invariant: the install aborts when
pip leaves a prebundled Isaac Sim package with a dangling `__init__.py`;
other new dangling links only warn.

## 2. Backport adaptations vs #6329

This branch predates the #6009 dependency centralization, so:

- Pin edits land in `source/isaaclab/setup.py`,
`source/isaaclab_rl/setup.py`, and
`tools/wheel_builder/res/python_packages.toml` instead of the root
`pyproject.toml`.
- The install CLI keeps its hardcoded `_PINK_IK_STACK` (bumped to
3.3.0); the pyproject-derived stack from #6329 and its tests are not
ported — the derivation would `KeyError` here since the root
`pyproject.toml` has no pin entries on this branch.
- `import pytest` added to `test_install_prebundle.py` (develop had it
from an intermediate commit not on this branch).

## 3. Heads-up: the invariant can surface latent arm64 breakage

On develop, the first nightly image build containing #6329 failed its
arm64 leg because the invariant caught a real prebundle breakage (Pillow
deleted from `omni.kit.pip_archive`). If this release branch's arm64
docker build has a similar latent issue, the invariant will turn a
silently-broken image into a failed build — that is by design, but worth
knowing before merging.

## 4. Test plan

- [x] `source/isaaclab/test/cli/` — 141 passed locally (prebundle
invariant tests included).
- [ ] PR CI green.

---------

Co-authored-by: Piotr Barejko <[email protected]>
kellyguo11 pushed a commit that referenced this pull request Jul 11, 2026
…undles (#6437)

# Description

Follow-up to #6329, unblocks the nightly develop image publish (run
28990958659 failed its arm64 leg when the new post-install invariant
caught the breakage).

## 1. Summary

- The exact `pillow==12.1.1` pin sits below the pillow **12.2.0** now
prebundled by the Isaac Sim base image, so every docker install
downgrades pillow. On aarch64 the deleted prebundled copy is the
symlink-farm target in `omni.kit.pip_archive`, dangling
`PIL/__init__.py` and breaking extension startup — the same failure
class as the `packaging<24` bound fixed in #6329. Green nightlies were
already doing this silently (`Uninstalling pillow-12.2.0` appears in
their logs); the invariant made it loud.
- Fix: relax to a `pillow>=12.1.1` floor. The prebundled version always
satisfies it, so pip never touches the prebundle, and the pin doesn't
need chasing on every base image bump (an exact `==12.2.0` would break
again identically at the next bump).

## 2. Test plan

- [x] `test_install.py` + `test_install_prebundle.py` — 32 passed
locally.
- [ ] PR CI green.
- [ ] After merge: dispatch `Publish Docker Images` on `develop` —
tonight's failed run is the FAIL baseline; the arm64 leg passing
post-fix is the validation, and the run publishes the `latest-develop`
image needed to retest NVBug 6410989.
matthewtrepte pushed a commit to matthewtrepte/IsaacLab that referenced this pull request Aug 4, 2026
…undle deletion, pin-pink) (isaac-sim#6329)

# Description

Fixes the Docker-only error flood in nvbugs 6343978 (follow-up to
isaac-sim#6288): streaming starts, but
the log carries 438 `[Error]` lines and 14 Isaac Sim extensions fail to
load. uv installs are
unaffected. Two independent causes, both Isaac Lab's install mutating
packages that Isaac Sim's
extensions rely on.

## Summary

- **`packaging` deleted from a shared prebundle.** The vestigial
`packaging<24` bound in
`isaaclab_rl` forced a downgrade; pip (which sees prebundle paths
through `python.sh`'s
environment) uninstalled `packaging-26.0` from the
`omni.isaac.core_archive` prebundle.
`omni.services.pip_archive` shares that package as per-file symlinks, so
the deletion dangled
the farm and cascaded into 13 extension startup failures. Fixed by
relaxing the bound (no
consumer requires it; now in the root `pyproject.toml` after the isaac-sim#6009
centralization), plus a
**fail-loud invariant**: the install aborts if pip leaves a prebundled
package with a dangling
  `__init__.py`.
- **`pin-pink==3.1.0` too old for Isaac Sim 6.x.**
`isaacsim.robot_motion.pink` needs
`pink.exceptions.NoSolutionFound` (pink ≥ 3.3.0). Isaac Sim bundles pink
4.2.0, but the
install replaces it with the kit-site-packages copy, pinned to 3.1.0
since pink 3.4+ broke
the `pink_ik` task API (isaac-sim#5846). Bumped to **3.3.0**, which satisfies
both consumers
(`DampingTask.set_target_from_configuration` verified present on both
wheels). The pin lives
once in the root `pyproject.toml`; the install CLI now derives its
force-install stack from
  those entries instead of a hardcoded copy.
- **Impact**: an image rebuilt with this PR runs the exact reported
command with
**0 errors / 0 tracebacks / 0 extension failures** (broken image and the
customer's attached
  log: 438 / 34 / 14).

## 1. Design notes

1. **Invariant scoping (empirical).** Every docker build routinely
replaces prebundled dists
(numpy, the cmeel/pinocchio stack, scipy, …) and leaves ~42 dangling
links to files Python
never imports at startup (test modules, `WHEEL`/license files, cmake
hooks) — none of them
`__init__.py`. The harmful class (this bug) dangles package
`__init__.py` files, making the
package unimportable for every extension that loads it. The install
therefore fails only on
   a new dangling `__init__.py` and warns on other new dangling links.
2. **Considered and rejected: hiding prebundles from pip.** Routing pip
to the concrete kit
interpreter also prevents deletions, but changes dependency resolution
build-wide: deps
previously satisfied by prebundled copies get freshly resolved into kit
site-packages, and
the `isaacteleop` step then downgraded numpy to 2.3.5 and pin to 3.9.0 —
CI measured the
`rsl_rl` export flow at ~4.4× baseline (600s timeouts vs 168s).
Prebundle-visible
   resolution is kept as-is, with the invariant as the guard.

## 2. Validation

- **End-to-end on a fresh image built from this PR** (Isaac Sim base
digest `99e4e4cfae17…`):
`isaac-sim.streaming.sh --allow-root` reaches streaming at ~34 s, stays
alive to timeout,
with 0 Kit errors, 0 tracebacks, 0 extension-startup failures. Baked
state: `packaging` 26.0
resolves from the prebundle, pink 3.3.0 imports from kit site-packages,
0 dangling
  `__init__.py` anywhere in the prebundles.
- **Customer log cross-check**: the attached
`isaaclab_streaming_20260702.log` has the
identical 438-error class set as the local broken reproduction — both
roots, no third issue.
- **Invariant**: catches the packaging cascade in-container
(RuntimeError naming the broken
`omni.services.pip_archive` links) and passes the routine-residue case.
- **Tests**: install CLI suites 148 passed / 1 skipped (invariant +
derived-stack tests);
`test_pink_ik_components.py` with pink 3.3.0 — 21 passed. CI fully
green; the export flow
  runs at its 168 s baseline.

Fixes nvbugs 6343978.
matthewtrepte pushed a commit to matthewtrepte/IsaacLab that referenced this pull request Aug 4, 2026
…undles (isaac-sim#6437)

# Description

Follow-up to isaac-sim#6329, unblocks the nightly develop image publish (run
28990958659 failed its arm64 leg when the new post-install invariant
caught the breakage).

## 1. Summary

- The exact `pillow==12.1.1` pin sits below the pillow **12.2.0** now
prebundled by the Isaac Sim base image, so every docker install
downgrades pillow. On aarch64 the deleted prebundled copy is the
symlink-farm target in `omni.kit.pip_archive`, dangling
`PIL/__init__.py` and breaking extension startup — the same failure
class as the `packaging<24` bound fixed in isaac-sim#6329. Green nightlies were
already doing this silently (`Uninstalling pillow-12.2.0` appears in
their logs); the invariant made it loud.
- Fix: relax to a `pillow>=12.1.1` floor. The prebundled version always
satisfies it, so pip never touches the prebundle, and the pin doesn't
need chasing on every base image bump (an exact `==12.2.0` would break
again identically at the next bump).

## 2. Test plan

- [x] `test_install.py` + `test_install_prebundle.py` — 32 passed
locally.
- [ ] PR CI green.
- [ ] After merge: dispatch `Publish Docker Images` on `develop` —
tonight's failed run is the FAIL baseline; the arm64 leg passing
post-fix is the validation, and the run publishes the `latest-develop`
image needed to retest NVBug 6410989.
hujc7 added a commit to hujc7/IsaacLab that referenced this pull request Aug 31, 2026
…m uv.lock

isaac-sim#6329 aborts the pip install when it strands a prebundled package's
__init__.py: Isaac Sim shares prebundles between extensions as per-file
symlinks, so replacing one dangles every link into it - nvbugs 6343978, 438
error lines and 14 extensions failing to load. That guard lives in
command_install, which the images no longer call now that they install with
uv sync. Assert the same invariant against the built image, bound to the
digest the build produced so a stale tag cannot pass.

Only a dangling __init__.py fails: the image already carries 41 harmless
dangling stubs, against develop's 48.

Also folds in the cuRobo image migration, adds git-lfs to the kit-less runtime
(CI checks out with lfs: true, so any git call in a bind-mounted container
fails without it), and sets the kit-less launcher to 755 - chmod +x applied
the build umask and left it at 751.
ooctipus added a commit that referenced this pull request Sep 3, 2026
## Summary

Docker images stop mutating Isaac Sim's shipped Python environment: the
previous build
replaced **41** of its packages, this one replaces **0**. All three
images install from
`uv.lock`, so builds are reproducible and
`[tool.uv].override-dependencies` apply.

# Description

The lock is the only path that applies
`[tool.uv].override-dependencies`, which pip cannot
read. The change is contained to the Docker build; `isaaclab.sh
--install` is unchanged.

- **Isaac Sim image** — `uv sync` resolves into a venv at
`/opt/isaaclab-venv`, built on Kit's
own interpreter. Isaac Sim is untouched, still reached through the
existing `_isaac_sim`
symlink, and `isaaclab.sh` sources `setup_python_env.sh` so `import
isaacsim` keeps working.
- **Kit-less image** — `uv sync` replaces the pip-style install,
retiring the duplicated
  `tools/wheel_builder/uv-overrides.txt`.
- **cuRobo image** — same migration. Because Isaac Sim's site-packages
is no longer touched,
the image stops deleting the prebundled torch, re-bootstrapping `pip`
with `get-pip.py`, and
  uninstalling `quadprog`. cuRobo is still built from its pinned commit.
- **No new extras** — the images use the ones that already exist.
`teleop` no longer bundles
the `isaacsim` wheel, so environments that already provide Kit do not
install a second,
version-mismatched copy; installs that need it use `--extra
teleop,isaacsim`, and the docs
say so wherever XR teleop appears (agreed with the teleop owner). `test`
is now the test
suite alone and `dev` adds the documentation toolchain, so the images
can install `test`
without shipping Sphinx and its GPL-3.0-or-later `docutils`, which the
Docker licence gate
  rejects.

- **Image invariant test** — the images install with `uv sync`, which
never runs
`command_install`'s dangling-symlink guard, so #6329's protection would
have been lost. A
post-build step asserts no prebundled package lost its `__init__.py`,
bound to the digest
just built. It has already caught a real regression on a dependent
branch.
- **Removed** the `quadprog` uninstall (absent from the lock), the
`toml` install
(`install_deps.py` now uses stdlib `tomllib`), and the `imageio-ffmpeg`
uninstall
  (excluded during the sync instead).

Newton resolves to 1.5.0 from the lock's pinned commit where the pip
path floated to
`release-1.5` HEAD (1.5.1); regenerating `uv.lock` is the lever if a
newer commit is needed.

`uv.lock` is regenerated with uv 0.9.25, the version the images pin.
Newer uv renormalises
environment markers and rewrites ~2200 lines with no semantic change.

## Type of change

- New feature (non-breaking change which adds functionality)

## Release backport

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

## 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
`./isaaclab.sh --format`
- [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 — a post-build image-invariant test, plus building all
three images and diffing their package sets against the previous build
- [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: ooctipus <[email protected]>
kellyguo11 pushed a commit to kellyguo11/IsaacLab-public that referenced this pull request Sep 17, 2026
Docker images stop mutating Isaac Sim's shipped Python environment: the
previous build
replaced **41** of its packages, this one replaces **0**. All three
images install from
`uv.lock`, so builds are reproducible and
`[tool.uv].override-dependencies` apply.

The lock is the only path that applies
`[tool.uv].override-dependencies`, which pip cannot
read. The change is contained to the Docker build; `isaaclab.sh
--install` is unchanged.

- **Isaac Sim image** — `uv sync` resolves into a venv at
`/opt/isaaclab-venv`, built on Kit's
own interpreter. Isaac Sim is untouched, still reached through the
existing `_isaac_sim`
symlink, and `isaaclab.sh` sources `setup_python_env.sh` so `import
isaacsim` keeps working.
- **Kit-less image** — `uv sync` replaces the pip-style install,
retiring the duplicated
  `tools/wheel_builder/uv-overrides.txt`.
- **cuRobo image** — same migration. Because Isaac Sim's site-packages
is no longer touched,
the image stops deleting the prebundled torch, re-bootstrapping `pip`
with `get-pip.py`, and
  uninstalling `quadprog`. cuRobo is still built from its pinned commit.
- **No new extras** — the images use the ones that already exist.
`teleop` no longer bundles
the `isaacsim` wheel, so environments that already provide Kit do not
install a second,
version-mismatched copy; installs that need it use `--extra
teleop,isaacsim`, and the docs
say so wherever XR teleop appears (agreed with the teleop owner). `test`
is now the test
suite alone and `dev` adds the documentation toolchain, so the images
can install `test`
without shipping Sphinx and its GPL-3.0-or-later `docutils`, which the
Docker licence gate
  rejects.

- **Image invariant test** — the images install with `uv sync`, which
never runs
`command_install`'s dangling-symlink guard, so isaac-sim#6329's protection would
have been lost. A
post-build step asserts no prebundled package lost its `__init__.py`,
bound to the digest
just built. It has already caught a real regression on a dependent
branch.
- **Removed** the `quadprog` uninstall (absent from the lock), the
`toml` install
(`install_deps.py` now uses stdlib `tomllib`), and the `imageio-ffmpeg`
uninstall
  (excluded during the sync instead).

Newton resolves to 1.5.0 from the lock's pinned commit where the pip
path floated to
`release-1.5` HEAD (1.5.1); regenerating `uv.lock` is the lever if a
newer commit is needed.

`uv.lock` is regenerated with uv 0.9.25, the version the images pin.
Newer uv renormalises
environment markers and rewrites ~2200 lines with no semantic change.

- New feature (non-breaking change which adds functionality)

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

- [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
`./isaaclab.sh --format`
- [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 — a post-build image-invariant test, plus building all
three images and diffing their package sets against the previous build
- [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: ooctipus <[email protected]>
(cherry picked from commit eed50f7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants