Repository navigation
refactor(orchestration): move server setup and the sidecar into nemo_gym/orchestration - #5234
Merged
Merged
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
ananthsub
marked this pull request as ready for review
October 28, 2026 22:48
35 of 41 tasks
Contributor
svcnvidia-nemo-ci
left a comment
Contributor
There was a problem hiding this comment.
SHIP
LGTM — no concerns found.
Reviewed all changed files and traced import compatibility, server-environment callers, sidecar source/build paths, packaging, documentation, and affected tests.
Static review only; Python tests, Go builds/tests, wheel validation, and Fern generation were not executed.
Note: formal approval is not available for this request, so this review is posted as a comment only.
Review generated by codex. This was a full review. Request a full review with /review reset=true.
ananthsub
force-pushed
the
ananthsub/layout-orchestration
branch
from
October 28, 2026 23:10
ee7e932 to
902f7dc
Compare
ananthsub
force-pushed
the
ananthsub/layout-orchestration
branch
from
October 29, 2026 00:55
902f7dc to
172b503
Compare
ananthsub
force-pushed
the
ananthsub/layout-orchestration
branch
from
October 29, 2026 15:15
415614d to
e3948c8
Compare
ananthsub
force-pushed
the
ananthsub/layout-orchestration
branch
from
October 29, 2026 15:51
e3948c8 to
1f49e50
Compare
ananthsub
force-pushed
the
ananthsub/layout-orchestration
branch
from
October 29, 2026 16:27
1f49e50 to
e8ba586
Compare
ananthsub
force-pushed
the
ananthsub/layout-orchestration
branch
from
October 29, 2026 16:45
e8ba586 to
a9bea47
Compare
ananthsub
force-pushed
the
ananthsub/layout-orchestration
branch
from
October 29, 2026 17:01
a9bea47 to
1f2d161
Compare
ananthsub
force-pushed
the
ananthsub/layout-orchestration
branch
from
October 29, 2026 18:25
1f2d161 to
329c5ca
Compare
…gym/orchestration the h2_ping_sidecar package and the Go sidecar source in tools/ move into nemo_gym/orchestration together, so the launcher's path to the source still holds, and cli/setup_command.py becomes orchestration/server_venv.py. Record the two moves in MOVED_MODULES (h2_ping_sidecar as a package), rewrite in-repo references with scripts/migrate_imports.py and point the sidecar docs at the Go source's new directory, make the contract's orchestration layer the nemo_gym.orchestration package, and redirect the old library reference pages in fern/docs.yml. Regenerate the public API of each layout package that exists here from what non-test code outside nemo_gym imports, and point code outside nemo_gym, tests included, at nemo_gym.<package>. Signed-off-by: Ananth Subramaniam <[email protected]>
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.
What and why
Moves server setup and the NVCF HTTP/2 ping sidecar into the existing
nemo_gym/orchestration/package, next to job submission. The server supervisor thatgym env startruns is split out ofcli/env.pyin the next PR.Where this PR sits
The stack lands bottom-up; each PR's base is the branch of the PR before it, so each diff shows only that PR's change.
Where the package sits
An arrow means "imports"; each package imports only packages below it. Yellow: created by this PR. Green: created by an earlier PR in the stack. Grey: still to come.
What moves
Whole modules, unchanged:
nemo_gym/h2_ping_sidecar/nemo_gym/orchestration/h2_ping_sidecar/nemo_gym/tools/sidecar/nemo_gym/orchestration/tools/sidecar/nemo_gym/cli/setup_command.pynemo_gym/orchestration/server_venv.pyHow to review
One commit. Its changes:
MOVED_MODULESinnemo_gym/_moved_paths.py.scripts/migrate_imports.py.orchestrationlayer becomes thenemo_gym.orchestrationpackage.fern/docs.ymlredirects the old library reference pages to the new ones.tools/sidecar/is not a Python package, so it has noMOVED_MODULESentry; it moves withh2_ping_sidecar, whose launcher finds it by a path relative to itself, and the sidecar docs name its new directory.h2_ping_sidecaris recorded as a package, so its submodules resolve too.global_config's import of the sidecar config stays a contract exception under its new path.tests/unit_tests/orchestration/;test_cli_setup_command.pybecomestest_server_venv.pywith its module.Public API
Every layout package that exists after this PR has a lazy public API in its
__init__.py: the names code outsidenemo_gym/imports from it (servers and their tests, benchmarks, scripts, and code samples in docs and skills), plus every name it already exported, each served from the submodule that defines it on first use. Code outsidenemo_gym/and its tests (servers and their tests, benchmarks, scripts, and docs) imports those names fromnemo_gym.<package>, so later moves inside a package leave it alone. Code insidenemo_gym/, and the library's tests undertests/, import from the module that defines each name, so the import-linter contract sees every dependency and a test reads what it patches. A patch target names the module the code under test looks the name up in.AGENTS.mdstates the rule.Validation
pytest -n 16 tests/unit_tests, also with-W errorfor the moved paths. The only failures are environment-specific and unrelated to the move: this machine's hostname resolves to127.0.1.1, which the sandbox host check refuses (the Harbor run summary tests and the benchmark listing test), and two Docker PTY tests.lint-imports.pre-commit runon the changed files.Rollout evidence: N/A. The modules move unchanged.
Compatibility
nemo_gym.orchestration.*. A logging config set onnemo_gymstill covers them.python scripts/migrate_imports.py <paths>.Issue
Part of #5166.