Skip to content

Retry the locked uv sync once - #109

Open
bokalnv wants to merge 1 commit into
mainfrom
bokal/bug/native-sync-retry
Open

bokalnv wants to merge 1 commit into
mainfrom
bokal/bug/native-sync-retry

Conversation

@bokalnv

@bokalnv bokalnv commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Retry the locked uv sync once

Detailed description

  • Reason: ovrtx on PyPI is a placeholder sdist. When uv builds it, the build downloads the 1.78 GB wheel from pypi.nvidia.com. That download has no length check and no retry, so one cut connection fails the whole install with Downloaded wheel and sha256 don't match!. This failed the native GPU job of Extend cuRobo planning for multi-arm robots #100 (job); its re-run passed the install. Locking the real wheel instead would need a change in Isaac Lab, which routes ovrtx to PyPI, or a matching override in Arena.
  • Change: scripts/ci/sync_native.sh (native CI) and docker/setup/sync_dependencies.sh (Docker image build) retry uv sync once after a failure. test_native_ci.py adds test_sync_retries_a_failed_attempt.
  • Impact: one transient install failure no longer fails the job. Completed downloads stay in the uv cache, so the retry repeats only unfinished work. A persistent failure, such as a cuRobo compile error, runs twice and then fails with the status of the second attempt. A cancelled job still stops at once.

Tests:

  • pytest autodata_tests/utils/test_uv_lock.py autodata_tests/utils/test_native_ci.py: 26 passed. The new test fails without the script change.
  • pre-commit run --all-files passed.
  • With uv 0.12.21, sync_native.sh retried a package build that failed once, then installed the package. The retry in the Docker script was checked with a stub uv.

Summary by CodeRabbit

  • Chores
    • Dependency synchronization now retries once after an initial failure. The final outcome reflects the retry’s result, and successful completion continues to update the existing success marker.
    • Added coverage for a synchronization that fails once and then succeeds.

ovrtx's PyPI sdist downloads its 1.78 GB wheel from pypi.nvidia.com while it builds. That download has no length check and no retry, so one cut connection fails the whole install with "Downloaded wheel and sha256 don't match!". Retry the sync once in the native CI script and in the Docker image build. Completed downloads stay in the uv cache, so the retry repeats only unfinished work.

Signed-off-by: Billy Okal <bokal@nvidia.com>
@bokalnv bokalnv self-assigned this Dec 1, 2026
@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Docker dependency setup and native CI sync scripts now retry uv sync once after an initial failure. A test simulates a one-time failure and checks that the cache contains .last-success.

Changes: Dependency sync retry

Layer / File(s) Summary
Retry uv sync after failure
docker/setup/sync_dependencies.sh, scripts/ci/sync_native.sh, autodata_tests/utils/test_native_ci.py
Both scripts report the first failure status and retry uv sync once. The test makes the fake uv fail once and checks that the resulting cache contains .last-success.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related PRs

  • isaac-sim/AutoData#89: Introduced the uv install flow in the Docker and native setup paths that this PR changes.
Merge Risk: Minimal · up to 1d120

The change retries a failed dependency sync once to ride out intermittent download failures. Persistent failures still fail after the second attempt, and the new test covers the retry path. There is no identified merge risk.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "Retry the locked uv sync once" matches the main change: a single retry after a failed uv sync in sync_native.sh and sync_dependencies.sh. It is concise and specific. It does not name the CI…
Description check Passed The description follows the template. It has a Summary section with a short line, and a Detailed description section that covers the reason (the ovrtx placeholder sdist and the unchecked 1.78 GB downl…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Retry the locked uv sync once" matches the main change: a single retry after a failed uv sync in sync_native.sh and sync_dependencies.sh. It is concise and specific. It does not name the CI or Docker scope, but that detail is not required.

Full details: Description check

Explanation

The description follows the template. It has a Summary section with a short line, and a Detailed description section that covers the reason (the ovrtx placeholder sdist and the unchecked 1.78 GB download), the changes (both scripts and the new test), and the impact (one retry, a persistent failure runs twice, cancellation stops at once). It also lists the test results and the manual checks. The Summary line is 'Retry the locked uv sync once' (30 characters), within the 50-character limit.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 6682537 and 1d12081.

Files selected for processing: 3

  • autodata_tests/utils/test_native_ci.py
  • docker/setup/sync_dependencies.sh
  • scripts/ci/sync_native.sh

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.

This branch has not been deployed

No deployments
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