Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions autodata_tests/utils/test_conda_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def installer(tmp_path):
arena = root / "submodules/IsaacLab-Arena"
lab = arena / "submodules/IsaacLab"
lab.mkdir(parents=True)
for path in (arena / "pyproject.toml", arena / "uv.lock", lab / "pyproject.toml"):
for path in (root / "uv.lock", arena / "pyproject.toml", lab / "pyproject.toml"):
path.write_text("")

commands = tmp_path / "bin"
Expand Down Expand Up @@ -121,9 +121,10 @@ def test_combined_install_targets_named_environment_in_either_order(installer, a
constraints = installs[1][installs[1].index("--constraint") + 1]
assert constraints.endswith(".cache/conda-installer/runtime-constraints.txt")
assert any("--no-emit-local" in call and constraints in call for call in calls)
export = next(call for call in calls if call[:2] == ["uv", "export"])
assert "--frozen" in export
assert "pylock.toml" in export
exports = [call for call in calls if call[:2] == ["uv", "export"]]
assert all(call[call.index("--project") + 1].endswith("checkout with spaces") for call in exports)
assert "--frozen" in exports[0]
assert "pylock.toml" in exports[0]


def test_install_existing_environment_does_not_create_one(installer):
Expand Down
73 changes: 69 additions & 4 deletions autodata_tests/utils/test_uv_lock.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,53 @@
# Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

"""AutoData's uv lock must keep the stack that Arena's lock validated."""
"""AutoData's uv lock must keep the stack that Arena's lock validated, apart from listed security fixes."""

import tomllib
from collections import defaultdict
from pathlib import Path

from packaging.requirements import Requirement
from packaging.utils import canonicalize_name
from packaging.version import Version

from autodata_tests.utils.constants import TestPaths

ROOT = Path(TestPaths.repo_root)
ARENA = ROOT / "submodules/IsaacLab-Arena"
RESEED = "cp submodules/IsaacLab-Arena/uv.lock uv.lock && uv lock"
# Security fixes that Arena's lock does not have yet: package -> the version that AutoData locks and qualifies.
AHEAD_OF_ARENA = {
"aiohttp": "3.14.5", # GHSA-5wr8-gcqf-gqf3; 3.14.4 closes some WebSocket clients with code 1002.
"asteval": "1.0.10", # GHSA-9w56-46f6-3qhx
"azure-identity": "1.16.1", # GHSA-m5vv-6r4h-3vj9
"certifi": "2026.11.20", # GHSA-6q48-6c7w-9gw2; 2026.10.18 removed all emSign roots.
"filelock": "4.2.12", # GHSA-v4x8-3wr5-3wq8
"fsspec": "2026.6.0", # GHSA-27vj-qcqg-25rc
"gitpython": "3.2.1", # GHSA-83vg-56qc-22m7
"hydra-core": "1.3.8", # GHSA-wf6j-7hvr-gr93
"idna": "3.15", # GHSA-65pc-fj4g-8rjx
"msgpack": "1.2.4", # GHSA-j8c6-9vc5-hj6x
"oauthlib": "4.0.1", # GHSA-3jp2-3mrg-2vxc
"onnx": "1.23.2", # GHSA-xrch-8vh7-h656
"pillow": "13.0.0", # GHSA-332p-7hrc-92wf
"pyjwt": "2.15.1", # GHSA-42vr-xj54-vc7v; 2.15.1 also fixes a padding regression from 2.14.0.
"requests": "2.33.1", # GHSA-gc5v-m9x4-r6x2
"urllib3": "2.8.0", # GHSA-8988-9cw3-xx77
"werkzeug": "3.1.9", # GHSA-g6x2-hccm-hh4m
"yarl": "1.25.1", # aiohttp 3.14.5 requires it.
}
RESTORE = "uv lock " + " ".join(f"--upgrade-package {name}=={version}" for name, version in AHEAD_OF_ARENA.items())
RESEED = f"cp submodules/IsaacLab-Arena/uv.lock uv.lock && uv lock && {RESTORE}"


def _load(path: Path) -> dict:
return tomllib.loads(path.read_text())


def _name(requirement: str) -> str:
return canonicalize_name(Requirement(requirement).name)


def _resolution(lock: Path) -> dict[str, list]:
# A lock can hold several records of one package, one per resolution fork. Dependency markers are left out:
# uv writes equivalent markers differently depending on the root project.
Expand All @@ -35,9 +65,39 @@ def test_shared_packages_keep_arena_resolution():
autodata = _resolution(ROOT / "uv.lock")
arena = _resolution(ARENA / "uv.lock")
drift = {
name: (arena[name], autodata[name]) for name in arena.keys() & autodata.keys() if arena[name] != autodata[name]
name: (arena[name], autodata[name])
for name in (arena.keys() & autodata.keys()) - AHEAD_OF_ARENA.keys()
if arena[name] != autodata[name]
}
assert not drift, f"Run `{RESEED}` with the uv version pinned in CI. Arena vs AutoData: {drift}"
assert not drift, f"Run `{RESEED}` with the uv version in .github/workflows/ci.yml. Arena vs AutoData: {drift}"


def test_listed_packages_stay_ahead_of_arena():
autodata = _resolution(ROOT / "uv.lock")
arena = _resolution(ARENA / "uv.lock")
unlocked = [name for name in AHEAD_OF_ARENA if name not in autodata]
assert not unlocked, (
"AutoData no longer locks these. Remove them from AHEAD_OF_ARENA, and remove their [tool.uv] override pins "
f"from pyproject.toml: {unlocked}"
)
changed = {}
for name, version in AHEAD_OF_ARENA.items():
locked = [locked_version for locked_version, _ in autodata[name]]
if locked != [version]:
changed[name] = locked
assert not changed, (
"Put back any [tool.uv] override pin that these packages lost, then run "
f"`{RESTORE}` with the uv version in .github/workflows/ci.yml. Locked now: {changed}"
)
caught_up = [
name
for name, version in AHEAD_OF_ARENA.items()
if name in arena and min(Version(locked) for locked, _ in arena[name]) >= Version(version)
]
assert not caught_up, (
"Arena's lock has these versions. Remove them from AHEAD_OF_ARENA, and make their [tool.uv] entries in "
f"pyproject.toml equal Arena's: {caught_up}"
)


def test_resolver_settings_mirror_arena():
Expand All @@ -46,5 +106,10 @@ def test_resolver_settings_mirror_arena():
# uv deprecates Arena's prerelease mode; if-necessary resolves this stack identically.
if arena["prerelease"] == "if-necessary-or-explicit":
arena["prerelease"] = "if-necessary"
for key in ("override-dependencies", "constraint-dependencies"):
# An AutoData entry for a listed package replaces Arena's entries for it; Arena's other entries still count.
replaced = {_name(entry) for entry in autodata[key]} & AHEAD_OF_ARENA.keys()
for settings in (autodata, arena):
settings[key] = [entry for entry in settings[key] if _name(entry) not in replaced]
for key in ("environments", "prerelease", "index-strategy", "override-dependencies", "constraint-dependencies"):
assert autodata[key] == arena[key], f"[tool.uv] {key} differs from Arena's"
28 changes: 15 additions & 13 deletions conda_installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Usage: $(basename "$0") [-n ENV_NAME] [-c] [-i] [-h]

-n Conda environment name (default: ${ENV_NAME})
-c Create conda env "${ENV_NAME}" with Python ${PYTHON_VERSION}
-i Install Arena's locked Sim/Lab/PyTorch stack and AutoData with test tools
-i Install the locked Sim/Lab/Arena/PyTorch stack and AutoData with test tools
into the selected env (env must already exist, or combine with -c)
-h Show this help

Expand Down Expand Up @@ -83,8 +83,11 @@ check_install_prerequisites() {
require_cmd cmake
require_cmd c++
local file
for file in "${arena_root}/pyproject.toml" "${arena_root}/uv.lock" \
"${arena_root}/submodules/IsaacLab/pyproject.toml"; do
if [[ ! -f "${REPO_ROOT}/uv.lock" ]]; then
echo "error: ${REPO_ROOT}/uv.lock not found." >&2
exit 1
fi
for file in "${arena_root}/pyproject.toml" "${arena_root}/submodules/IsaacLab/pyproject.toml"; do
if [[ ! -f "${file}" ]]; then
echo "error: ${file} not found." >&2
echo " Run 'git submodule update --init --recursive' first." >&2
Expand All @@ -104,21 +107,20 @@ if not match or tuple(map(int, match.groups())) < tuple(map(int, sys.argv[2].spl
install_all() {
activate_env
local conda_python="${CONDA_PREFIX}/bin/python"
local arena_root="${REPO_ROOT}/submodules/IsaacLab-Arena"
local export_dir="${REPO_ROOT}/.cache/conda-installer"
local lock_export="${export_dir}/pylock.toml"
local constraints="${export_dir}/runtime-constraints.txt"
mkdir -p "${export_dir}"

# PEP 751 preserves Arena's wheel URLs, hashes, overrides, and editable Lab
# sources. Export without re-resolving or writing inside either submodule.
echo ">>> Exporting Arena's locked Sim/Lab/PyTorch environment"
"${UV_EXE}" export --project "${arena_root}" --frozen --no-dev --format pylock.toml \
--output-file "${lock_export}" --quiet
# PEP 751 preserves the lock's wheel URLs, hashes, overrides, and editable Lab and
# Arena sources. Export without re-resolving or writing inside either submodule.
echo ">>> Exporting the locked Sim/Lab/Arena/PyTorch environment"
"${UV_EXE}" export --project "${REPO_ROOT}" --frozen --no-dev --no-emit-project --extra dev \
--format pylock.toml --output-file "${lock_export}" --quiet
# Keep later AutoData/optional installs from changing any locked version.
# Editable requirements are not valid constraints; their dependencies remain.
"${UV_EXE}" export --project "${arena_root}" --frozen --no-dev --format requirements.txt \
--no-emit-local --no-hashes --output-file "${constraints}" --quiet
"${UV_EXE}" export --project "${REPO_ROOT}" --frozen --no-dev --no-emit-project --extra dev \
--format requirements.txt --no-emit-local --no-hashes --output-file "${constraints}" --quiet

# pip install retains unrelated packages (including conda's pip); pip sync
# would remove them. Explicit --python prevents targeting a stray .venv.
Expand All @@ -129,7 +131,7 @@ install_all() {
"${UV_EXE}" pip install --no-config --python "${conda_python}" \
--constraint "${constraints}" --editable "${REPO_ROOT}[dev]"

echo ">>> Checking that the installed stack still matches Arena's lock"
echo ">>> Checking that the installed stack still matches the lock"
"${UV_EXE}" pip install --no-config --python "${conda_python}" --check --requirements "${lock_export}"
echo ">>> Installation complete. Activate with: conda activate ${ENV_NAME}"
}
Expand Down Expand Up @@ -161,7 +163,7 @@ if [[ ! "${ENV_NAME}" =~ ^[a-zA-Z0-9_][a-zA-Z0-9_.-]*$ || "${ENV_NAME}" == base
exit 1
fi
if [[ "$(uname -s)" != Linux || "$(uname -m)" != x86_64 ]]; then
echo "error: Arena's locked environment supports Linux x86_64 only." >&2
echo "error: the locked environment supports Linux x86_64 only." >&2
exit 1
fi
if [[ -n "${VIRTUAL_ENV:-}" ]]; then
Expand Down
48 changes: 32 additions & 16 deletions docs/pages/quickstart/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ Optional Native uv Installation

AutoData is a `uv <https://docs.astral.sh/uv/>`__ project. ``uv sync`` installs Isaac Sim **6.1.0.0** (the pip
version of Sim 6.1.0), PyTorch **2.11.0+cu128**, Isaac Lab, Arena, and AutoData with its test tools into ``.venv``
at the repository root. Docker uses the same lockfile in its container environment. The repository's
``uv.lock`` keeps Arena's locked version of every package they share. Lab, Arena, and AutoData are editable
installations from the checkout, and uv provides Python 3.12.
at the repository root. Docker and the conda installer use the same lockfile. The repository's ``uv.lock`` keeps
Arena's locked version of each package that they share, except for the security updates that AutoData adds.
Lab, Arena, and AutoData are editable installations from the checkout, and uv provides Python 3.12.

The uv installation supports Linux x86_64. On the host, install
`uv <https://docs.astral.sh/uv/getting-started/installation/>`__ **0.12.21 or newer**, Git, CMake, and a C++
Expand Down Expand Up @@ -207,10 +207,17 @@ Docker-only ``/workspaces/autodata`` path. After updating the checkout and its s
Review and accept the Isaac Sim EULA on first launch. For unattended launches after accepting it, set
the two variables shown above.

For both Docker and native uv, ``uv pip check`` reports the discrepancies listed for the conda installation
below, except ``openpi-client``, which these environments do not install. Arena's ``packaging`` override also
leaves ``virtualenv`` (used by ``pre-commit``) and ``vcs-versioning`` (used to build cuRobo) below the
``packaging`` version they declare. Both work with the locked version.
For native uv, ``uv pip check`` reports the discrepancies listed for the conda installation below. The
``packaging`` override also leaves ``virtualenv`` (used by ``pre-commit``) and ``vcs-versioning`` (used to
build cuRobo) below the ``packaging`` version they declare. Both work with the locked version. The Docker
environment does not contain the ``isaacsim-*`` packages, so there ``uv pip check`` reports only the
``packaging`` discrepancies.

The lock installs Pillow 13 for its security fixes. Pillow 13 rejects two operations that Pillow 12 only
deprecated: ``Image.fromarray`` with mode ``I;16``, and saving a mode ``I`` image as PNG. Isaac Sim 6.1's
Replicator writers still use them, for example for depth in ``KittiWriter`` and for segmentation that is not
colorized in ``BasicWriter``, so these writers cannot save those images. AutoData's workflows do not use these
writers.


.. _installation-uv-curobo:
Expand Down Expand Up @@ -243,7 +250,7 @@ Optional Conda Installation

The :autodata_code_link:`<conda_installer.sh>` installer supports Linux x86_64 and Python 3.12.
It installs Isaac Sim **6.1.0.0** (the pip version of Sim 6.1.0), PyTorch **2.11.0+cu128**,
Isaac Lab, and Arena from the pinned Arena ``uv.lock``, then installs AutoData with its test tools.
Isaac Lab, and Arena from the repository's ``uv.lock``, then installs AutoData with its test tools.
Lab and Arena are editable installations from the nested submodules.

On the host, install `conda <https://docs.conda.io/projects/conda/en/latest/user-guide/install/index.html>`_
Expand Down Expand Up @@ -277,38 +284,47 @@ After updating the checkout and its submodules, rerun ``-i`` with the same envir
Use a fresh shell if the old environment has Isaac Sim binary-install activation hooks; this
installer uses pip-distributed Sim and does not configure a downloaded Sim binary.

The installer exports Arena's lockfile to ``.cache/conda-installer/pylock.toml``. This preserves
The installer exports the repository's ``uv.lock`` to ``.cache/conda-installer/pylock.toml``. This preserves
the pinned wheel URLs and hashes, including CUDA-enabled PyTorch, without rewriting the submodules.
It retains unrelated installed packages and checks the locked stack again after installing AutoData.
The generated ``.cache/conda-installer/runtime-constraints.txt`` pins the locked dependencies for
later optional installations, including cuRobo. Rerun the installer to refresh both exports after
an Arena update.
Arena's lock includes upstream dependency overrides. The installed stack matches that lock, but
``pip check`` still reports these five discrepancies with wheel metadata:
you update the checkout.
The lock overrides some upstream requirements. Some of these overrides are security updates. The installed
stack matches the lock, but ``pip check`` reports these discrepancies with the wheel metadata:

.. list-table:: Upstream package metadata versus the Arena lock
.. list-table:: Upstream package metadata versus the AutoData lock
:widths: 30 35 35
:header-rows: 1

* - Package
- Declared requirement
- Locked installation
* - ``openpi-client``
- NumPy < 2
- NumPy 2.3.1
* - ``isaacsim-core``
- Newton 1.5.0
- Newton 1.5.2
* - ``isaacsim-core``
- azure-identity 1.13.0, oauthlib 3.2.2, filelock 3.25.2, and fsspec 2026.2.0
- Security updates: azure-identity 1.16.1, oauthlib 4.0.1, filelock 4.2.12, and fsspec 2026.6.0
* - ``isaacsim-kernel``
- websockets < 15
- websockets 16.1.1
* - ``isaacsim-kernel``
- aiohttp 3.14.1, yarl 1.18.3, idna 3.10, urllib3 2.7.0, requests 2.32.3, asteval 1.0.6, and Pillow < 13
- Security updates: aiohttp 3.14.5, yarl 1.25.1, idna 3.15, urllib3 2.8.0, requests 2.33.1, asteval 1.0.10,
and Pillow 13.0.0
* - ``ovphysx``
- packaging < 24
- packaging 26.0
* - ``isaacsim-robot``
- onnxruntime-gpu 1.26.0
- CPU onnxruntime 1.26.0

An environment from an earlier installer also keeps ``openpi-client`` and its dependency ``dm-tree``, which
the lock does not include. For that environment, ``pip check`` also reports that ``openpi-client`` requires
NumPy < 2. AutoData does not use these packages. To remove them, run
``uv pip uninstall --python "$CONDA_PREFIX/bin/python" openpi-client dm-tree``.

Keep the locked versions and use the runtime checks below. GPU ONNX inference is not provided
by this installation; AutoData's tested GPU generation workflows use PyTorch and CUDA.

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/quickstart/support_matrix.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Isaac Lab or Isaac Lab-Arena revisions.
the repository's ``uv.lock``. See :doc:`installation`.
* - Conda installation
- Optional: Python 3.12, conda, uv >= 0.12.21, CMake, and a C++ compiler;
``conda_installer.sh`` installs Arena's locked environment. See :doc:`installation`.
``conda_installer.sh`` installs the repository's ``uv.lock``. See :doc:`installation`.
* - Isaac Sim
- ``isaacsim==6.1.0.0`` for native installs; Docker reuses Sim from ``nvcr.io/nvidia/isaac-sim:6.1.0``.
* - Isaac Lab
Expand Down
12 changes: 9 additions & 3 deletions docs/pages/references/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ with Isaac Sim 6.1.0 Docker images. See the
* GR1 generation shares the USD-to-URDF conversion across its independent IK controllers.
* Docker and native uv installations use the repository's ``uv.lock``, including the optional
cuRobo group with Warp 1.16.
* The conda installer uses Arena's locked Sim 6.1.0.0/Lab/PyTorch packages, supports named
environments with ``-n``, and includes AutoData's test tools. It checks prerequisites before
creating an environment and refuses to replace an existing environment with ``-c``.
* The conda installer uses the Sim 6.1.0.0, Lab, Arena, and PyTorch packages from the repository's
``uv.lock``, supports named environments with ``-n``, and includes AutoData's test tools. It checks
prerequisites before creating an environment and refuses to replace an existing environment with ``-c``.
It no longer installs Arena's ``openpi-client``.
* ``uv.lock`` updates certifi, Pillow, PyJWT, and other packages to fix published security
vulnerabilities. Docker, native uv, and conda installations get the same versions; the copies that Isaac Sim
bundles in its own extensions do not change. ``pip check`` reports the versions that differ from Isaac Sim's
declared requirements, and Pillow 13 stops some Isaac Sim Replicator writers from saving depth and
segmentation images; see :doc:`../quickstart/installation`.

Rebuild the Docker image when upgrading, or rerun ``./conda_installer.sh -i -n <environment-name>``
for a Python 3.12 conda environment. See :doc:`../quickstart/installation` for both setup paths.
Expand Down
15 changes: 13 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ curobo = [
[tool.uv]
required-version = ">=0.12.21"
default-groups = ["sim", "dev"]
# uv reads resolver settings only from the root project, so these mirror Arena's [tool.uv].
# uv reads resolver settings only from the root project, so these mirror Arena's [tool.uv], apart from the security
# fixes that AHEAD_OF_ARENA in autodata_tests/utils/test_uv_lock.py lists.
environments = ["sys_platform == 'linux' and platform_machine == 'x86_64'"]
prerelease = "if-necessary" # Equivalent to Arena's if-necessary-or-explicit, which uv deprecates.
index-strategy = "first-index"
Expand All @@ -59,8 +60,18 @@ override-dependencies = [
"websockets==16.1.1",
"boto3==1.40.61",
"botocore==1.40.61",
"requests==2.32.3",
"requests==2.33.1",
"s3transfer==0.14.0",
"urllib3==2.8.0",
"idna==3.15",
"aiohttp==3.14.5",
"yarl==1.25.1",
"azure-identity==1.16.1",
"oauthlib==4.0.1",
"pillow==13.0.0",
"filelock==4.2.12",
"fsspec==2026.6.0",
"asteval==1.0.10",
]
constraint-dependencies = [
"pin-pink==3.3.0",
Expand Down
Loading
Loading