Skip to content

security: remove dependencies flagged in legal review - #2492

Merged
kajalj22 merged 6 commits into
mainfrom
fix-lgpl-deps
Aug 11, 2026
Merged

kajalj22 merged 6 commits into
mainfrom
fix-lgpl-deps

Conversation

@kajalj22

@kajalj22 kajalj22 commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Removing dependencies flagged in legal review.

  • Remove rsync from Dockerfile
  • Move gprof2dot to dev-only optional extra
  • Suppress pycountry from main install via override; re-enabled for toolsandbox via overrides.txt

- pycountry (LGPL-2.1): exclude via tool.uv.exclude-dependencies; arrives
  transitively from mistral-common but is never imported by Gym code
- rsync (GPL-3.0-only): remove from Dockerfile apt-get install; not called
  by any script in the repo
- gprof2dot (LGPLv3+): move from main dependencies to dev optional extra;
  only used for profiling and should not ship in the released container
- autocommand (LGPLv3): confirmed absent from the project (false positive)

Signed-off-by: Kajal Jain <[email protected]>
@kajalj22
kajalj22 requested a review from a team as a code owner August 11, 2026 22:05
@copy-pr-bot

copy-pr-bot Bot commented Aug 11, 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.

ccy (a toolsandbox dep) hard-requires pycountry>=24.6.1. The global
exclude-dependencies blocks pycountry for nemo-gym itself (which never
imports it), but toolsandbox needs it. overrides.txt re-enables it for
the toolsandbox venv following the same pattern used by longmt_eval and
wmt_translation for codec packages.

Signed-off-by: Kajal Jain <[email protected]>
…dencies

exclude-dependencies is a hard lockfile exclusion that prevents server
venvs from re-enabling the package via overrides.txt. Switch to the
same sys_platform=='never' override pattern used for codec packages,
which keeps pycountry out of the main install while allowing toolsandbox
(which needs it via ccy) to re-enable it via overrides.txt.

Signed-off-by: Kajal Jain <[email protected]>
@kajalj22 kajalj22 changed the title security: remove LGPL/GPL deps flagged in legal review security: remove dependencies flagged in legal review Aug 11, 2026
@kajalj22
kajalj22 merged commit 7a9eb18 into main Aug 11, 2026
16 checks passed
@kajalj22
kajalj22 deleted the fix-lgpl-deps branch August 11, 2026 23:14
kajalj22 added a commit that referenced this pull request Aug 11, 2026
…o r0.5.1 (#2494)

Cherry-pick of #2492 into `r0.5.1`.

Signed-off-by: Kajal Jain <[email protected]>
kajalj22 added a commit to kajalj22/Gym that referenced this pull request Oct 8, 2026
## Summary

- `pycountry` is suppressed from the image via
`[tool.uv].override-dependencies` (legal review, NVIDIA-NeMo#2492) and is only
re-enabled for `toolsandbox`.
- vLLM's Qwen3-VL multimodal processor lazily imports
`transformers.MistralCommonBackend` -> `mistral_common` ->
`pydantic_extra_types.language_code`, which hard-requires `pycountry`.
In the shipped image this raises `ModuleNotFoundError: Could not import
module 'MistralCommonBackend'` before the model loads, so the
`circle_click` and `circle_count` README workflows (`vllm serve
Qwen/Qwen3-VL-8B-Instruct -tp 8 ...`) cannot start. `vllm serve --help`
still passes because it never builds that processor.
- `docker/install_codec_deps.sh` is the documented opt-in installer for
excluded packages but never installed `pycountry`. This adds it (pinned
to the `uv.lock` version, 26.2.16) and includes it in the "already
installed" check. The override stays in place, so the default image is
unchanged and the legal change is preserved.

Tracks NVBug 6751026.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: Kajal Jain <[email protected]>
Co-authored-by: Claude <[email protected]>
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.

2 participants