Skip to content

UV install in workflow docs + minor fixes - #1612

Merged
david-tingdahl-nvidia merged 7 commits into
mainfrom
dtingdahl/docs/native-uv-workflow-instructions
Nov 7, 2026
Merged

david-tingdahl-nvidia merged 7 commits into
mainfrom
dtingdahl/docs/native-uv-workflow-instructions

Conversation

@david-tingdahl-nvidia

@david-tingdahl-nvidia david-tingdahl-nvidia commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Make the workflow docs work for native uv installs as well as Docker, and mount datasets, models and eval at $HOME/{datasets,models,eval} in the container.

https://nvbugs.nvidia.com/7042821

Why this change?

The workflow pages assumed Docker. On a native uv install, commands such as mkdir /eval failed with Permission denied, and hf download and the LeRobot conversion hit missing dependencies.

What changes?

Docs & mounts

  • UV & docker setup tabs added to 34 relevant pages by using a new new :runtime_setup_tabs: Sphinx macro.
  • docker/run_docker.sh mounts datasets, models and eval at $HOME/.... Doc workflows can then use the same paths for both docker and uv
  • GR00T LeRobot configs default data_root to ~/datasets.

Various issues found during testing of new workflows

  • Add missing tqdm dependency. Nothing was broken before, but testing agent pointed out that this is a direct dependency and should be in pyproject.toml
  • Update the setup-arena and run-experiment skill docs.

This changes docker/, so it needs a maintainer look.

Validation

Agent ran some of the workflows overnight (images rebuilt on Isaac Sim 6.2):

Workflow / test uv Docker Notes
yaml data_root paths OK OK ~/datasets/... expands to the host home
quickstart zero-action OK OK
env variations OK OK
arena experiment OK OK
arena_env runner timeout timeout Open-ended run, capped by the test limit
static: hf download OK OK Needs the typer pin
sequential: hf download OK OK Needs the typer pin
static: LeRobot convert OK OK Prompts if the output directory exists
static: replay OK (--viz kit) inconclusive Docker Kit cold start (~270s) exceeded the 300s cap
RL eval / train OK OK Checkpoints land in $HOME/models
dexsuite zero / eval OK OK
locomanip replay timeout timeout Hit the 400s cap during env init
gear insertion OK OK
deformable (Newton) OK OK
deformable (PhysX) OK OK

Not tested:

  • GR00T and OpenPI server workflows
  • analysis and sensitivity workflows
  • VLM agent and agentic environment generation
  • teleoperation
  • OSMO multi-node
  • long training runs

@david-tingdahl-nvidia david-tingdahl-nvidia changed the title Document native uv alongside Docker in the workflow pages WorkflowDocument native uv alongside Docker in the workflow pages Nov 6, 2026
@david-tingdahl-nvidia david-tingdahl-nvidia changed the title WorkflowDocument native uv alongside Docker in the workflow pages Workflows for both docker and uv + minor fixes Nov 6, 2026
Comment thread docs/_ext/isaaclab_arena_doc_tools.py Resolved
Comment thread pyproject.toml Resolved
@david-tingdahl-nvidia
david-tingdahl-nvidia force-pushed the dtingdahl/docs/native-uv-workflow-instructions branch from 599633e to b6fda9d Compare November 6, 2026 10:52
@david-tingdahl-nvidia
david-tingdahl-nvidia marked this pull request as ready for review November 6, 2026 10:53
@david-tingdahl-nvidia david-tingdahl-nvidia changed the title Workflows for both docker and uv + minor fixes UV install in workflow docs + minor fixes Nov 6, 2026
@greptile-apps

greptile-apps Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues remain.

Summary

This PR gives workflow pages shared native uv and Docker setup tabs and moves Docker data mounts into the container user's home directory.

  • Docker keeps datasets, models, and evaluation files in the user's home folders.
  • Workflow pages show setup steps for both native uv and Docker.
  • GR00T conversion uses the user's datasets folder by default.

Reviews (2) · Last reviewed commit: "Let the runtime setup macro pass uv sync..." · Reviewed by Greptile

Comment thread docker/run_docker.sh Resolved
@arena-review-bot

arena-review-bot Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

🤖 Isaac Lab-Arena Review Bot

Summary

This push fixes almost everything from the last round:

  • The GR00T step 5 pages now pass --group gr00t-client through the new macro argument.
  • The three conversion pages mention ffprobe.
  • PerfLab writes to $HOME/eval.
  • The teleop DATASET_DIR order is fixed.
  • sensitivity_analysis.rst uses the macro.
  • The entrypoint no longer creates /datasets, /models and /eval, so code still using the old paths now fails with an error instead of losing data.

One point from the previous review is still open, and there are two small docs follow-ups on lines this PR doesn't touch.

Findings

🟡 Warning: docker/run_docker.sh:127: Raised in the previous review and still open. A container started before this change has no mount at /home/<user>/{datasets,models,eval}, and the attach branch doesn't check for it. If a user attaches to that container and follows the new docs, downloaded datasets, RL checkpoints and eval output are written inside the container and deleted when the --rm container exits. A sentence in the installation note asking users to restart their container would cover it. A more reliable option is a warning in the attach branch:

  CONTAINER_MOUNTS=$(docker container inspect -f '{{range .Mounts}}{{println .Destination}}{{end}}' \
      "$DOCKER_IMAGE_NAME-$DOCKER_VERSION_TAG$CONTAINER_SUFFIX")
  if ! grep -qx "/home/$(id -un)/datasets" <<< "$CONTAINER_MOUNTS"; then
      echo "Warning: this container predates the \$HOME/{datasets,models,eval} mounts. Restart it to use them." >&2
  fi

🔵 Improvement: docs/pages/example_workflows/static_manipulation/step_4_policy_training.rst:153: The finetuning text still says to open a terminal "outside the Arena Base Docker container" and that "the paths assume the default Arena Docker mounts". That is the same wording you updated on the step 5 pages. It also appears at line 194 of this file, at lines 161 and 202 of sequential_static_manipulation/step_4_policy_training.rst, and at line 145 of locomanipulation/step_4_policy_training.rst. Something like "open another terminal, separate from the Arena runtime" and "the paths assume the default $HOME/datasets and $HOME/models locations" would work for both runtimes.

🔵 Improvement: docs/pages/quickstart/running_a_real_policy/gr00t.rst:60: This page still writes out the tab set with uv sync --extra dev --group gr00t-client by hand. Now that the macro accepts extra arguments, :runtime_setup_tabs:`--group gr00t-client` produces the same tabs and keeps the page in sync with the macro. The "not part of a default sync" sentence could follow the macro.

Other notes:

  • At review time, pre-commit and the docs build had passed on this commit. Run tests, Run tests with subprocess, Run tests (native uv, source) and GR00T closed-loop E2E were still queued or running, so I can't say whether they pass.

Verdict

Minor fixes needed

@alexmillane alexmillane left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this!

Comment thread pyproject.toml Resolved
policy_runner.py imports tqdm directly but Isaac Lab only pulls it in via
its sb3 extra, so a plain uv sync could not run the documented zero-action
command. Docker images already ship it.

Signed-off-by: David Tingdahl <[email protected]>
Mount the host directories at $HOME/{datasets,models,eval} inside the
container, create them on the host if missing, and make the GR00T LeRobot
configs default to ~/datasets, so the same paths work natively and in Docker.

Signed-off-by: David Tingdahl <[email protected]>
Add a :runtime_setup_tabs: docs macro that renders the Native uv / Docker
Container setup tabs and use it across the quickstart and example workflow
pages. Use $HOME/datasets, $HOME/models and $HOME/eval for data paths so
the commands are identical in both runtimes.

Signed-off-by: David Tingdahl <[email protected]>
…eval path, doc cleanups

Signed-off-by: David Tingdahl <[email protected]>
…the unused container directories

Signed-off-by: David Tingdahl <[email protected]>
@david-tingdahl-nvidia
david-tingdahl-nvidia force-pushed the dtingdahl/docs/native-uv-workflow-instructions branch from b6fda9d to e06a034 Compare November 6, 2026 15:56
@david-tingdahl-nvidia

Copy link
Copy Markdown
Collaborator Author

@greptileai review

@david-tingdahl-nvidia

Copy link
Copy Markdown
Collaborator Author

/review

@qianl-nv qianl-nv left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks!

@david-tingdahl-nvidia
david-tingdahl-nvidia merged commit d567b77 into main Nov 7, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants