Skip to content

fix(docker): add --package nemo-rl to uv sync calls to fix workspace extra resolution - #3547

Closed
kajalj22 wants to merge 1 commit into
mainfrom
kajalj/fix-uv-sync-package-flag
Closed

kajalj22 wants to merge 1 commit into
mainfrom
kajalj/fix-uv-sync-package-flag

Conversation

@kajalj22

@kajalj22 kajalj22 commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes uv sync --frozen --extra X failing with:

error: Extra 'vllm' is not defined in the project's optional-dependencies table

Root cause

uv 0.11.x generates revision 4 lockfiles when packages actually change (e.g. during an automated MBridge bump). In revision 4, uv sync --frozen --extra X without an explicit --package flag resolves the sync target against the first workspace member (nemo-gym) rather than the CWD package (nemo-rl). Since nemo-gym has no extras, any --extra X call fails.

The committed uv.lock on main is revision 3 (generated when nothing changes) and works fine. But as soon as any dependency changes and uv lock runs, the lockfile becomes revision 4 and all --extra X syncs break.

Fix

Add --package nemo-rl to all uv sync calls in the hermetic build stage. This makes workspace package selection explicit regardless of lockfile revision or member ordering.

Testing

Verified via the nemo-ci mbridge bump automation (build-NeMo-RL-mbridge-bump job) which exercises exactly this code path on a freshly-relocked bump branch.

…extra resolution

uv 0.11.x generates revision 4 lockfiles when dependencies change (e.g.
on a MBridge bump). In revision 4, `uv sync --frozen --extra X` fails
with "Extra 'X' is not defined in the project's optional-dependencies
table" because uv resolves the sync target against the first workspace
member (nemo-gym) rather than the CWD package (nemo-rl).

Adding `--package nemo-rl` to all uv sync calls makes the workspace
package selection explicit, fixing the mbridge bump CI automation.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Kajal Jain <kajalj@nvidia.com>
@kajalj22
kajalj22 requested a review from a team as a code owner August 7, 2026 23:44
@kajalj22 kajalj22 added the CI Relating to CI label Aug 7, 2026
@kajalj22
kajalj22 requested a review from terrykong August 7, 2026 23:44
@copy-pr-bot

copy-pr-bot Bot commented Aug 7, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@github-actions github-actions Bot removed the CI Relating to CI label Aug 7, 2026
@kajalj22

kajalj22 commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

/claude review

@kajalj22

Copy link
Copy Markdown
Contributor Author

Closing — needs further review on whether --package nemo-rl skips nemo-gym base dependency installation in the container. Root cause and fix documented in research and investigation notes.

@kajalj22 kajalj22 closed this Aug 11, 2026
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.

1 participant