Skip to content
Merged
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 .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ submodules/IsaacLab-Arena/submodules/**
**/*.egg-info
**/.pytest_cache
**/.cache
**/.venv
**/_isaac_sim
**/.vscode
**/logs
Expand Down
129 changes: 127 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
pull_request:
push:
branches: ["main"]
workflow_dispatch:

# Cancel superseded runs on the same ref.
concurrency:
Expand All @@ -15,6 +16,7 @@ concurrency:

permissions:
contents: read
pull-requests: read

jobs:

Expand Down Expand Up @@ -49,8 +51,105 @@ jobs:
pip install --no-cache-dir pre-commit==4.6.0
pre-commit run --all-files --show-diff-on-failure --verbose

run_tests:
name: Run tests (GPU, repo Docker)
uv_lock:
name: uv lock
# Needs no GPU, so unlike the GPU job it also runs for fork PRs.
runs-on: ubuntu-24.04
timeout-minutes: 30

steps:
- name: Checkout (recursive submodules)
uses: actions/checkout@v5
with:
submodules: recursive
persist-credentials: false

- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/0.12.21/install.sh | env UV_INSTALL_DIR="${RUNNER_TEMP}/uv" UV_NO_MODIFY_PATH=1 sh
echo "${RUNNER_TEMP}/uv" >> "${GITHUB_PATH}"

- name: Check the lock
run: |
uv lock --locked
uv run --locked --only-group dev pytest autodata_tests/utils/test_uv_lock.py autodata_tests/utils/test_native_ci.py

Comment thread
bokalnv marked this conversation as resolved.
Resolved
native_changes:
name: Detect native installation changes
runs-on: ubuntu-24.04
timeout-minutes: 5
outputs:
native: ${{ github.event_name != 'pull_request' || steps.filter.outputs.native == 'true' }}
steps:
# The PR files API compares the full PR, including earlier commits.
- uses: dorny/paths-filter@v3
if: github.event_name == 'pull_request'
id: filter
with:
filters: |
native:
- 'pyproject.toml'
- 'uv.lock'
- 'uv.toml'
- '.python-version'
- '.gitmodules'
- 'submodules/**'
- '.dockerignore'
- 'docker/**'
- '.github/workflows/**'
- 'scripts/**'
- 'skills/**/scripts/**'
- 'sitecustomize.py'
- 'autodata_*/**'
- 'conftest.py'
- 'pytest.ini'
- 'setup.cfg'

native_tests:
name: Native installation
needs: [native_changes, pre_commit]
if: >-
needs.native_changes.outputs.native == 'true' &&
(github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository)
uses: ./.github/workflows/native.yml

native_check:
name: Native installation check
runs-on: ubuntu-24.04
timeout-minutes: 5
needs: [native_changes, native_tests]
if: always()
steps:
- name: Check native installation result
env:
CHANGES_RESULT: ${{ needs.native_changes.result }}
NATIVE_REQUIRED: ${{ needs.native_changes.outputs.native }}
NATIVE_RESULT: ${{ needs.native_tests.result }}
TRUSTED: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
run: |
test "${CHANGES_RESULT}" = success
case "${NATIVE_REQUIRED}" in
true)
if [ "${NATIVE_RESULT}" != success ]; then
echo "Native installation tests must succeed; result: ${NATIVE_RESULT}."
if [ "${TRUSTED}" = false ] && [ "${NATIVE_RESULT}" = skipped ]; then
echo "Source/test, dependency/submodule, script, Docker, workflow, or Python/test configuration changes require native GPU testing."
echo "Fork changes must proceed through a maintainer-controlled branch and PR in this repository."
echo "A separate successful run does not unblock the original fork PR."
fi
exit 1
fi
;;
false)
test "${NATIVE_RESULT}" = skipped
echo "No native installation changes."
;;
*) exit 1 ;;
esac

docker_tests:
name: Docker correctness tests (GPU)
runs-on: [self-hosted, gpu]
timeout-minutes: 120
needs: [pre_commit]
Expand All @@ -62,6 +161,7 @@ jobs:
# trials each) are heavy and run in the nightly instead. No marker filter, so
# both subprocess and unit tests run.
env:
FORCE_REBUILD: "true"
TEST_PATH: "autodata_tests/e2e/ autodata_tests/interfaces/ autodata_tests/core/ autodata_tests/utils/ autodata_tests/retargeting/ autodata_tests/metrics/"

steps:
Expand Down Expand Up @@ -97,6 +197,31 @@ jobs:
mkdir -p "${DOCKER_CONFIG}"
./scripts/ci/run_tests.sh

run_tests:
# Preserve the required check name while gating both installation paths.
name: Run tests (GPU, repo Docker)
runs-on: ubuntu-24.04
timeout-minutes: 5
needs: [pre_commit, uv_lock, native_check, docker_tests]
if: always()
steps:
- name: Check all required test results
env:
PRE_COMMIT_RESULT: ${{ needs.pre_commit.result }}
LOCK_RESULT: ${{ needs.uv_lock.result }}
NATIVE_RESULT: ${{ needs.native_check.result }}
DOCKER_RESULT: ${{ needs.docker_tests.result }}
TRUSTED: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
run: |
test "${PRE_COMMIT_RESULT}" = success
test "${LOCK_RESULT}" = success
test "${NATIVE_RESULT}" = success
if [ "${TRUSTED}" = true ]; then
test "${DOCKER_RESULT}" = success
else
test "${DOCKER_RESULT}" = skipped
fi

build_docs:
name: Build docs
runs-on: ubuntu-24.04
Expand Down
109 changes: 109 additions & 0 deletions .github/workflows/native.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
# Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

name: Native uv tests

on:
workflow_call:

permissions:
contents: read

jobs:
test:
name: Fresh uv setup and correctness tests (GPU)
runs-on: [self-hosted, gpu]
timeout-minutes: 120
container:
image: nvidia/cuda:12.8.1-devel-ubuntu24.04
options: --gpus all --ipc=host
env:
NVIDIA_DRIVER_CAPABILITIES: all
defaults:
run:
shell: bash
working-directory: native-${{ github.run_id }}-${{ github.run_attempt }}
env:
# This path is in the fresh container, outside the persistent checkout.
UV_PROJECT_ENVIRONMENT: /opt/autodata-venv
UV_PYTHON_INSTALL_DIR: /opt/autodata-python
NATIVE_CACHE_ROOT: ${{ github.workspace }}/../autodata-native-uv-cache
NATIVE_TEMP_SUBDIR: autodata-native-${{ github.run_id }}-${{ github.run_attempt }}
UV_HTTP_TIMEOUT: "300"
CUDA_HOME: /usr/local/cuda-12.8
MAX_JOBS: "4"
OMNI_KIT_ACCEPT_EULA: "YES"
ACCEPT_EULA: "Y"
AUTODATA_SUBPROCESS_TIMEOUT: "1200"

steps:
- name: Install system prerequisites
working-directory: ${{ runner.temp }}
run: |
apt-get update
apt-get install -y --no-install-recommends \
git git-lfs ca-certificates curl cmake build-essential ffmpeg util-linux \
libegl1 libgl1 libglu1-mesa libglib2.0-0t64 libglx0 libxi6 libxrandr2 libxt6 libsm6 libvulkan1

- name: Checkout (recursive submodules and LFS)
uses: actions/checkout@v5
with:
path: native-${{ github.run_id }}-${{ github.run_attempt }}
submodules: recursive
lfs: true
persist-credentials: false

- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/0.12.21/install.sh | env UV_INSTALL_DIR="${RUNNER_TEMP}/${NATIVE_TEMP_SUBDIR}/uv" UV_NO_MODIFY_PATH=1 sh
echo "${RUNNER_TEMP}/${NATIVE_TEMP_SUBDIR}/uv" >> "${GITHUB_PATH}"
echo "${CUDA_HOME}/bin" >> "${GITHUB_PATH}"

- name: Select CUDA build cache
run: |
nvidia-smi
nvcc --version
arch=$(nvidia-smi --query-gpu=compute_cap --format=csv,noheader | sort -u | paste -sd ';' -)
test -n "${arch}"
echo "TORCH_CUDA_ARCH_LIST=${arch}+PTX" >> "${GITHUB_ENV}"
lock_hash=$(sha256sum uv.lock | cut -d ' ' -f1)
cache_key="uv0.12.21-python3.12-cuda12.8.1-${arch//;/_}-${lock_hash}"
echo "NATIVE_CACHE_KEY=${cache_key}" >> "${GITHUB_ENV}"
echo "cuRobo build cache: ${cache_key}"

- name: Install the locked environment
run: ./scripts/ci/sync_native.sh

- name: Verify CUDA and cuRobo
run: |
uv run --no-sync python - <<'PY'
import sys
import torch
import curobo.geom.sdf.world

print(f"Python: {sys.version} ({sys.executable})")
print(f"Torch: {torch.__version__}, CUDA: {torch.version.cuda}")
assert torch.cuda.is_available(), "CUDA is unavailable"
PY

- name: Run correctness suites including simulator subprocesses
run: |
uv run --no-sync pytest -sv --durations=20 --junitxml="${RUNNER_TEMP}/${NATIVE_TEMP_SUBDIR}/results/junit.xml" \
autodata_tests/e2e/ autodata_tests/interfaces/ autodata_tests/core/ \
autodata_tests/utils/ autodata_tests/retargeting/ autodata_tests/metrics/

- name: Upload test results
if: always()
uses: actions/upload-artifact@v7
with:
name: native-test-results
path: ${{ runner.temp }}/${{ env.NATIVE_TEMP_SUBDIR }}/results/
if-no-files-found: warn
retention-days: 30

- name: Clean up native checkout and temporary files
if: always()
working-directory: ${{ runner.temp }}
env:
NATIVE_CHECKOUT: ${{ github.workspace }}/native-${{ github.run_id }}-${{ github.run_attempt }}
run: rm -rf -- "${NATIVE_CHECKOUT}" "${RUNNER_TEMP}/${NATIVE_TEMP_SUBDIR}"
5 changes: 5 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ jobs:
if-no-files-found: warn
retention-days: 30

test_native:
name: Native uv install (GPU)
if: github.event_name != 'push' || !startsWith(github.ref, 'refs/tags/v')
uses: ./.github/workflows/native.yml

publish_docs:
name: Publish docs (GitHub Pages)
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || startsWith(github.ref, 'refs/tags/v')
Expand Down
14 changes: 11 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ This file provides guidance to AI coding agents (Claude Code, OpenAI Codex, etc.

## Environment

All scripts and commands from this repo must be run inside a Docker container started with
`./docker/run_docker.sh` (or `./docker/run_docker.sh -c` for cuRobo). Users must start the container manually; if
no container started by the appropriate command exists, prompt the user to start it.
Run all scripts and commands from this repo in one of these environments:

- The Docker container started with `./docker/run_docker.sh` (or `./docker/run_docker.sh -c` for cuRobo). Users must
start the container manually; if no container started by the appropriate command exists, prompt the user to start
it.
- The repo's uv environment on the host, created by the user with `uv sync --locked` (with `--group curobo` for
SkillGen). Run commands from the repo root as `uv run --no-sync ...`. If `.venv` does not exist, prompt the user to
run `uv sync --locked`.

## Common Commands

Expand Down Expand Up @@ -39,5 +44,8 @@ pre-commit run --all-files

- Do not change or modify anything in the submodules. All git-related operations in submodules are read-only: do not commit or push code or create branches in a submodule.
- Don't mutate the `autodata` conda env. No `pip install/uninstall`, `conda install/remove`, or version upgrades. If a dependency is missing, surface the exact command and let the user run it.
- Don't change `uv.lock` or the uv environment. No `uv sync`, `uv add`, `uv remove`, `uv lock --upgrade`, or
`uv pip install`; `uv run --no-sync` changes neither. If a dependency is missing, surface the
exact command and let the user run it.
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
- Don't re-run, modify, or work around `conda_installer.sh`. No env recreate/rename/delete, no channel or conda config changes. Installer issues get reported, not patched in-flight.
- Don't change any existing design docs or diagrams in /docs, that is only for human created files. If you need to add any new diagrams or designs, add them to the /agentic_design directory.
39 changes: 25 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ the amount of manual collection needed to produce datasets for policy training.

- Linux with an NVIDIA GPU and driver that meet the
[Isaac Sim requirements](https://docs.isaacsim.omniverse.nvidia.com/latest/installation/requirements.html)
- [Docker](https://docs.docker.com/engine/install/) and the
[NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html)
- Git and [Git LFS](https://git-lfs.com/)
- An [NGC](https://catalog.ngc.nvidia.com/) account for the Isaac Sim container image
- For the recommended Docker installation: [Docker](https://docs.docker.com/engine/install/), the
[NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html),
and an [NGC](https://catalog.ngc.nvidia.com/) account for the Isaac Sim container image
- For the native installation instead: Linux x86_64,
[uv](https://docs.astral.sh/uv/getting-started/installation/) 0.12.21 or newer, CMake, and a C++ compiler

### Installation

Expand All @@ -87,25 +89,34 @@ docker login nvcr.io

The first launch builds the development image and opens a shell in the repository at
`/workspaces/autodata`. Subsequent launches reuse the image. Use `./docker/run_docker.sh -c` to include cuRobo
for SkillGen workflows.
for SkillGen workflows. Docker reuses the base image's Isaac Sim; other dependencies use the same repository
`uv.lock` as the native installation.

This checkout uses Isaac Sim 6.1.0, Arena 0.3.1 at commit
`481f5ae5f19df7bc5d24a17240fc0d96ac81eaf7`, and its nested Isaac Lab at commit
`28a386f063e41c04c07f50e63eefb83fd8408fbe` (v3.0.0-EA plus 3 commits). After updating an existing clone, run
`git submodule update --init --recursive` and rebuild with `./docker/run_docker.sh -c -r`.
For the native installation, skip Docker and install the locked environment at the repository root instead:

```bash
uv sync --locked
```

This checkout uses Isaac Sim 6.1.0, Arena 0.3.0 at commit
`c7edf3a9d5d8276565208f72422f8f8a0806d6cf`, and its nested Isaac Lab at commit
`91a0906f93802eb859192dcb0bca879f891e92d6`. After updating an existing clone, run
`git submodule update --init --recursive` and rebuild with `./docker/run_docker.sh -c -r`, or rerun
`uv sync --locked` for the native installation.
Commands, environment profiles, and source dataset metadata use Lab 3.0's `IsaacContrib-*`
task names directly. For example, Franka recording uses
`--task IsaacContrib-Stack-Cube-Franka-IK-Rel`.

Docker is recommended. For a native Python 3.12 environment, the updated
`./conda_installer.sh -c -i` installs the Sim/Lab stack from Arena's lockfile; see the
[installation guide](https://isaac-sim.github.io/AutoData/main/pages/quickstart/installation.html#optional-conda-installation).
Additional container options are described in the
[installation guide](https://isaac-sim.github.io/AutoData/main/pages/quickstart/installation.html).
The [installation guide](https://isaac-sim.github.io/AutoData/main/pages/quickstart/installation.html) covers the
[native uv installation](https://isaac-sim.github.io/AutoData/main/pages/quickstart/installation.html#optional-native-uv-installation)
including cuRobo, a
[conda installation](https://isaac-sim.github.io/AutoData/main/pages/quickstart/installation.html#optional-conda-installation)
with `./conda_installer.sh -c -i`, and additional container options.

### Generate Your First Dataset

Inside the container, generate ten Franka cube-stacking demonstrations from the pre-annotated dataset:
Inside the container, generate ten Franka cube-stacking demonstrations from the pre-annotated dataset. In the uv
environment, start each Python command with `uv run --locked`:

```bash
python scripts/generate_dataset.py \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ def __init__(
self._rerun_process = rr.spawn()
except Exception as exc:
raise RuntimeError(
"Failed to spawn the Rerun viewer. Ensure the `rerun` executable is installed "
"and available on PATH; Isaac Sim installs it under /isaac-sim/kit/python/bin."
"Failed to spawn the Rerun viewer. Ensure the `rerun` executable from the rerun-sdk "
"package is on PATH, for example in the Python environment's bin directory."
) from exc

# Set up coordinate system
Expand Down
Loading
Loading