Skip to content

cp: chore: never install gprof2dot/pathspec; purge dbus and gi bindings (4193) into r0.7.0 - #4205

Merged
kajalj22 merged 1 commit into
NVIDIA-NeMo:r0.7.0from
kajalj22:cherry-pick-4193-r0.7.0
Oct 8, 2026
Merged

kajalj22 merged 1 commit into
NVIDIA-NeMo:r0.7.0from
kajalj22:cherry-pick-4193-r0.7.0

Conversation

@kajalj22

@kajalj22 kajalj22 commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Manual cherry-pick of #4193 into r0.7.0 (the automated cherry-pick failed on a uv.lock conflict).

  • Applied the original change as-is: gprof2dot/pathspec never-install overrides, per-server overrides.txt, profiling.py + test update, and the Dockerfile purge of python3-dbus/python3-gi.
  • Resolved the uv.lock conflict by starting from the r0.7.0 lockfile and re-running uv lock; the only lock change is dropping gprof2dot, same as the original PR.

Test plan

  • CI passes on r0.7.0
  • uv lock --check is clean

…VIDIA-NeMo#4193)

- Mark `gprof2dot` and `pathspec` as never-install in
`override-dependencies`, the same way `pycountry` already is
(`sys_platform == 'never'`), and mirror them in
`responses_api_agents/osworld_agent/uv.toml` so the dependency-policy
test keeps passing. Both are copyleft-licensed (LGPL / MPL).
- Drop `gprof2dot` from the `dev` extra. CPU profiling now needs an
explicit `uv pip install --no-config gprof2dot`; the error message says
so, and `test_profiling.py` is updated to match.
- `resources_servers/terminal_bench_4` and
`responses_api_agents/miniswe_sandboxed_agent` both need `pathspec`, so
each gets it re-enabled through its `overrides.txt` (same pattern as
`toolsandbox` for `pycountry`).
- `responses_api_agents/swe_agents` imports `gprof2dot` to render debug
profiling graphs, so its own `requirements.txt` lists it and its
`overrides.txt` re-enables it (same pattern as `terminal_bench_4`). No
code change.
- `docker/Dockerfile` purges `python3-dbus` (dbus-python) and
`python3-gi` (PyGObject) from the base image. Gym never imports either.
- `pycountry` is already never-install on main, so it needs no change.
`uv.lock` drops `gprof2dot`; `pathspec` stays locked behind the never
marker.

- These are not added to `exclude-dependencies`: an excluded package
cannot be re-enabled from a server's `overrides.txt`, which would break
`terminal_bench_4` and the existing `toolsandbox` pycountry override.
- `mypy` (dev extra) imports `pathspec` at module load, so `mypy` will
not run in a default dev environment unless `pathspec` is installed
manually.
- `pixterm` is not touched: it is a Go dependency compiled into
`wandb-core` (shipped in the `wandb` wheel), not a Gym dependency.

- [x] Unit tests pass, including `test_profiling.py`, the OSWorld
dependency-policy test, `swe_agents` and `miniswe_sandboxed_agent`
- [x] `terminal_bench_4` and `miniswe_sandboxed_agent` server venvs
install `pathspec` via their `overrides.txt`
- [ ] Docker image builds and no longer contains `python3-dbus` /
`python3-gi`
- [x] Default dev/server venvs no longer contain `gprof2dot` or
`pathspec`

---------

Signed-off-by: Kajal Jain <[email protected]>
(cherry picked from commit 894908e)
Signed-off-by: Kajal Jain <[email protected]>
@kajalj22
kajalj22 requested a review from a team as a code owner October 8, 2026 00:51
@copy-pr-bot

copy-pr-bot Bot commented Oct 8, 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.

@kajalj22

kajalj22 commented Oct 8, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 3a9a994

@nemo-automation-bot
nemo-automation-bot Bot requested review from a team and anwithk October 8, 2026 00:52
@kajalj22
kajalj22 merged commit a75a7ff into NVIDIA-NeMo:r0.7.0 Oct 8, 2026
44 checks passed

This branch was previously deployed

1 inactive deployment
public — 3a9a994c Deployed Oct 8, 2026 by copy-pr-bot[bot] via release / finalize / notify #4660
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