Repository navigation
cp: chore: never install gprof2dot/pathspec; purge dbus and gi bindings (4193) into r0.7.0 - #4205
Merged
Merged
Conversation
…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]>
Contributor
Author
|
/ok to test 3a9a994 |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Manual cherry-pick of #4193 into
r0.7.0(the automated cherry-pick failed on auv.lockconflict).gprof2dot/pathspecnever-install overrides, per-serveroverrides.txt,profiling.py+ test update, and the Dockerfile purge ofpython3-dbus/python3-gi.uv.lockconflict by starting from ther0.7.0lockfile and re-runninguv lock; the only lock change is droppinggprof2dot, same as the original PR.Test plan
r0.7.0uv lock --checkis clean