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
1 change: 1 addition & 0 deletions .github/actions/multi-gpu/multi_gpu_host_launcher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ fi
docker run --rm --gpus all --network=host \
--entrypoint bash \
--user "${host_uid}:${host_gid}" \
--group-add 1000 \
--name "isaac-lab-mgpu-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}" \
-v "$PWD:/workspace/isaaclab:rw" \
--tmpfs /workspace/isaaclab/.git \
Expand Down
1 change: 1 addition & 0 deletions .github/actions/multi-gpu/multi_gpu_shard_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
# Container expectations (set by the host launcher):
# --gpus all
# --user $host_uid:$host_gid
# --group-add 1000 (the image's isaaclab group; owns the venv)
# -v <workspace>:/workspace/isaaclab:rw
# -v <queue_root>:/mgpu:rw (subdirs queue/, inflight/, done/)
# -v <logs_dir>:/shard-logs:rw (per-shard tee target)
Expand Down
3 changes: 2 additions & 1 deletion .github/actions/run-tests/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,8 @@ run_tests() {
-v "${docker_runtime_dir}/isaac-sim/logs:/isaac-sim/.nvidia-omniverse/logs:rw"
-v "${docker_runtime_dir}/isaac-sim/pkg:/isaac-sim/.local/share/ov/pkg:rw"
)
docker_user_args=(--user "${host_uid}:${host_gid}")
# gid 1000 is the image's isaaclab group, which owns the group-writable venv.
docker_user_args=(--user "${host_uid}:${host_gid}" --group-add 1000)
docker_env_args+=(
-e "HOME=/tmp/isaaclab-ci-home"
-e "XDG_CACHE_HOME=/tmp/isaaclab-ci-home/.cache"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ jobs:
(startsWith(github.ref, 'refs/heads/release/') ||
startsWith(github.base_ref, 'release/'))
run: >-
uv run --no-project --with packaging python tools/wheel_builder/validate_pypi_metadata.py
python3 tools/wheel_builder/validate_pypi_metadata.py
tools/wheel_builder/build/dist/isaaclab-*.whl

- name: Upload wheel artifact
Expand Down
6 changes: 4 additions & 2 deletions docker/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,14 @@ COPY --parents source/*/pyproject.toml ${ISAACLAB_PATH}/
# of ``renderer=newton_optix`` (x86-64 only); it needs an NVIDIA driver of the 590 series or newer.
ARG IMAGE_EXTRAS="--extra sb3 --extra skrl --extra rl-games --extra rsl-rl --extra viser --extra rerun --extra mimic --extra teleop --extra test --extra tetrahedralization --extra ov --extra fovi --extra newton-neural --extra optix"

# The venv is group-writable, not world-writable: CI runs the image as the runner's uid with
# ``--group-add 1000`` (the isaaclab group) and installs test-only packages into the venv.
RUN --mount=type=cache,target=/root/.cache/uv \
cd ${ISAACLAB_PATH} && \
uv sync --frozen --inexact ${IMAGE_EXTRAS} \
--no-install-workspace --no-install-package imageio-ffmpeg && \
chown -R isaaclab:isaaclab ${VIRTUAL_ENV} && \
chmod -R a+rwX ${VIRTUAL_ENV}/lib ${VIRTUAL_ENV}/bin
chmod -R g+rwX ${VIRTUAL_ENV}/lib ${VIRTUAL_ENV}/bin

COPY source/ ${ISAACLAB_PATH}/source/
COPY tools/ ${ISAACLAB_PATH}/tools/
Expand All @@ -167,7 +169,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --frozen --inexact ${IMAGE_EXTRAS} \
--no-install-package imageio-ffmpeg && \
find ${VIRTUAL_ENV} \! -user isaaclab \
-exec chown isaaclab:isaaclab {} + -exec chmod a+rwX {} +
-exec chown isaaclab:isaaclab {} + -exec chmod g+rwX {} +

# Isaac Sim's prebundled packages sit on PYTHONPATH ahead of the venv for launch paths that
# never import isaaclab (``runheadless.sh``, ``isaac-sim.streaming.sh``), so its torch would
Expand Down
8 changes: 5 additions & 3 deletions docker/Dockerfile.curobo
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,15 @@ COPY --parents source/*/pyproject.toml ${ISAACLAB_PATH}/
# ``_structures.py`` and forced a get-pip.py re-bootstrap). ``quadprog`` is not a lock entry,
# so it is never installed and needs no uninstall. ``isaaclab_teleop`` (needed by the Pink IK
# tests) is a workspace member and comes from the sync.
# The venv is group-writable, not world-writable: CI runs the image as the runner's uid with
# ``--group-add 1000`` (the isaaclab group) and installs test-only packages into the venv.
RUN --mount=type=cache,target=/root/.cache/uv \
cd ${ISAACLAB_PATH} && \
uv venv --seed "${VIRTUAL_ENV}" && \
uv sync --frozen --inexact ${IMAGE_EXTRAS} \
--no-install-workspace --no-install-package imageio-ffmpeg && \
chown -R isaaclab:isaaclab ${VIRTUAL_ENV} && \
chmod -R a+rwX ${VIRTUAL_ENV}/lib ${VIRTUAL_ENV}/bin
chmod -R g+rwX ${VIRTUAL_ENV}/lib ${VIRTUAL_ENV}/bin

COPY source/ ${ISAACLAB_PATH}/source/
COPY tools/ ${ISAACLAB_PATH}/tools/
Expand All @@ -187,7 +189,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --frozen --inexact ${IMAGE_EXTRAS} \
--no-install-package imageio-ffmpeg && \
find ${VIRTUAL_ENV} \! -user isaaclab \
-exec chown isaaclab:isaaclab {} + -exec chmod a+rwX {} +
-exec chown isaaclab:isaaclab {} + -exec chmod g+rwX {} +

# Isaac Sim's prebundled packages sit on PYTHONPATH ahead of the venv for launch paths that
# never import isaaclab (``runheadless.sh``, ``isaac-sim.streaming.sh``), so its torch would
Expand Down Expand Up @@ -216,7 +218,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \
uv pip install --no-build-isolation /tmp/curobo && \
rm -rf /tmp/curobo \
&& find ${VIRTUAL_ENV} \! -user isaaclab \
-exec chown isaaclab:isaaclab {} + -exec chmod a+rwX {} +
-exec chown isaaclab:isaaclab {} + -exec chmod g+rwX {} +

# aliasing uv run isaaclab and python for convenience
RUN echo "export ISAACLAB_PATH=${ISAACLAB_PATH}" >> ${DOCKER_USER_HOME}/.bashrc && \
Expand Down
Empty file.
2 changes: 2 additions & 0 deletions source/isaaclab/test/cli/test_wheel_builder_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,9 @@ def test_wheel_builder_preserves_registry_compatible_torch_requirements(
("requirement", "accepted"),
[
("torch==2.11.0", True),
("torch==2.11.0 ; sys_platform == 'linux'", True),
("torch @ https://download.pytorch.org/whl/cu130/torch.whl", False),
("torch[cuda] @ https://download.pytorch.org/whl/cu130/torch.whl ; sys_platform == 'linux'", False),
],
)
def test_pypi_metadata_validator_rejects_direct_urls(
Expand Down
7 changes: 4 additions & 3 deletions tools/wheel_builder/validate_pypi_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
from pathlib import Path
from zipfile import ZipFile

from packaging.requirements import Requirement


def validate_pypi_metadata(wheel_path: Path) -> None:
"""Raise an error when a wheel contains direct URL dependencies."""
Expand All @@ -23,7 +21,10 @@ def validate_pypi_metadata(wheel_path: Path) -> None:
raise ValueError(f"Expected one METADATA file in {wheel_path}, found {len(metadata_paths)}")
metadata = email.message_from_bytes(wheel.read(metadata_paths[0]))

direct_urls = [requirement for requirement in metadata.get_all("Requires-Dist", []) if Requirement(requirement).url]
# A PEP 508 direct reference is "name [extras] @ url [; marker]": its "@" comes before the marker, where a
# registry requirement has none. Standard library only, so the release check installs nothing.
requirements = metadata.get_all("Requires-Dist", [])
direct_urls = [requirement for requirement in requirements if "@" in requirement.split(";")[0]]

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.

🔴 Critical · Implementation — Keep validating requirement syntax

Malformed Requires-Dist values such as torch== now pass because they contain no @; Requirement previously rejected them. The release gate can approve invalid metadata. Use a locked, offline PEP 508 parser.

if direct_urls:
formatted = "\n".join(f" - {requirement}" for requirement in direct_urls)
raise ValueError(f"PyPI does not allow direct URL dependencies in {wheel_path}:\n{formatted}")
Expand Down
Loading