Repository navigation
Conversation
Signed-off-by: Muse <[email protected]>
Author
|
/ok to test 2380e5c |
This branch has not been 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.
What and why
Gym 0.8 reorganized the
nemo_gympackage. The old import paths still work through deprecation aliases innemo_gym/_moved_paths.py, but they are removed in Gym 0.10. This PR moves every use of the 11 moved modules to the new paths (245 occurrences in 64 files undernemo_rl/andtests/), so RL is ready before the Gym 0.10 bump.Beyond plain imports, it also moves the dynamic references that would break the same way:
pytest.importorskip("nemo_gym.…")strings,importlib.import_module("nemo_gym.…"),sys.modulesfakes in tests, the"nemo_gym.token_id_capture.lineage:FileLineageStore"entry-point string, and threefrom nemo_gym import <moved module>sites. Every new path was checked against the pinned Gym rev's_moved_paths.pyand its file tree. Names split out of modules that stay (MOVED_NAMES) are a separate pass, as the issue says.Issues
Fixes #5254
Convergence / perf / functionality proof
N/A: mechanical import rename, no behaviour change. Verified: no old paths remain in
nemo_rl/ortests/; all 64 changed files compile; all 11 new modules exist at the pinned Gym rev. No GPU end-to-end validation (no GPU here); the affected tests need the Gym extra and will run in CI.Needs upstream changes
None — Gym 0.8 already ships the new paths.
PR commands and CI
CI:Lfast: the default for most PRs. Runs a fast test subset.CI:L1: dependency or container changes (pyproject.toml,uv.lock,Dockerfile) or broad core changes. Builds a new image and runs unit and functional tests.CI:docs: docs-only changes. Runs doc tests only./ok to test <full-commit-sha>: start CI for that commit. Post again after each push./review: automated review comments. Addmode=strictfor a stricter review,reset=truefor a fresh full review./resolve-conflict: Autobot mergesmaininto this PR and resolves the conflicts. PRs from forks must allow edits by maintainers./review-pr-team <pr-number>for a team review before you ask for human review.