Repository navigation
refactor(server_runtime): rename RunHelper to ServerSupervisor - #5526
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
force-pushed
the
ananthsub/rename-server-supervisor
branch
from
November 3, 2026 21:45
8bd0488 to
39cc96b
Compare
35 of 41 tasks
ananthsub
marked this pull request as ready for review
November 3, 2026 21:55
ananthsub
force-pushed
the
ananthsub/rename-server-supervisor
branch
from
November 3, 2026 21:57
39cc96b to
7cc3aa4
Compare
Contributor
ananthsub
force-pushed
the
ananthsub/rename-server-supervisor
branch
from
November 4, 2026 00:59
7cc3aa4 to
0594347
Compare
ananthsub
force-pushed
the
ananthsub/rename-server-supervisor
branch
from
November 4, 2026 20:22
0594347 to
db074ac
Compare
ananthsub
force-pushed
the
ananthsub/rename-server-supervisor
branch
from
November 5, 2026 15:07
db074ac to
a9cb8ee
Compare
ananthsub
force-pushed
the
ananthsub/rename-server-supervisor
branch
from
November 17, 2026 23:55
a9cb8ee to
f05e0f2
Compare
The server supervisor moved out of nemo_gym/cli/env.py into nemo_gym/server_runtime/supervisor/server_supervisor.py but kept the RunHelper name. Name the class after its module. RunHelper shipped in 0.7.0 at nemo_gym.cli, nemo_gym.cli.env and nemo_gym.cli.eval. Each of those paths now resolves to ServerSupervisor through MOVED_NAMES and warns with the new name and the 0.10.0 removal release. nemo_gym.cli keeps its CLI refactor shim for its other names and tries MOVED_NAMES first. The server_supervisor path never shipped, so it gets no alias. Signed-off-by: Ananth Subramaniam <[email protected]>
ananthsub
force-pushed
the
ananthsub/rename-server-supervisor
branch
from
November 18, 2026 00:34
f05e0f2 to
8a41eea
Compare
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 changed and why
#5235 moved the server supervisor out of
nemo_gym/cli/env.py, and #5882 moved it again tonemo_gym/server_runtime/supervisor/server_supervisor.py. Both moves kept the class nameRunHelper. This PR renames it toServerSupervisor, so the class name matches its module.RunHelperdoes not say what the class does. The class supervises the run's servers: it starts each configured server process, waits until every server is ready, and shuts them all down.ServerSupervisornames that role. This rename is one of several planned for the reorganization, which give the main orchestration classes names that describe their job. The reorganization kept each rename out of the pure-move PRs so that reviewers could check those moves mechanically.Every in-repo use now says
ServerSupervisor:nemo_gym/cli/env.pyandnemo_gym/cli/eval.py.nemo_gym/environment/in_process.py.gdpvalresources server.fern/versions/latest/.terminal_bench_2_1benchmark tests. Test classes, methods and test doubles whose names heldRunHelperorrun_helperwere renamed too.The local variables that held the supervisor were named
rh, short for run helper,helperorrunner. They are nowsupervisor, and the test helpers that build one saysupervisorin place ofrunner. Gym already uses "runner" for the harness runner, the verifier runner and others, so the old name was ambiguous as well as stale. Frozen docs underfern/versions/v*/are unchanged.Part of the
nemo_gym/reorganization tracked in #5166.Compatibility
RunHelpershipped in 0.7.0 at three paths. Each one still resolves toServerSupervisoruntil 0.10.0. The first access warns with aDeprecationWarningthat namesnemo_gym.server_runtime.supervisor.server_supervisor.ServerSupervisorand the 0.10.0 removal release.nemo_gym.cli.RunHelperMOVED_NAMES["nemo_gym.cli"]nemo_gym.cli.env.RunHelperMOVED_NAMES["nemo_gym.cli.env"]nemo_gym.cli.eval.RunHelpernemo_gym.cli.envMOVED_NAMES["nemo_gym.cli.eval"]Before this change:
nemo_gym.cli.RunHelperwarned through the CLI refactor shim, which names no removal release.nemo_gym.cli.env.RunHelperwarned throughMOVED_NAMESas a moved name.nemo_gym.cli.eval.RunHelperresolved through a plain import.nemo_gym/cli/__init__.pynow triesMOVED_NAMESfirst and falls back to its existing shim for its other names.nemo_gym/cli/env.pyandnemo_gym/cli/eval.pyalready install the standardmoved_names_getattrmodule__getattr__.nemo_gym.orchestration.server_supervisornever shipped in a release, soRunHelpergets no alias there.tests/unit_tests/fixtures/import_surface.jsonstill listsRunHelper, because it records the names that must keep resolving at their old paths.No public name embeds
run_helper. Only test names did, and those were renamed.Validation
A new test checks each of the three released paths in a fresh interpreter. Each path must return the
ServerSupervisorclass and emit exactly one warning, and that warning must name the new path and the 0.10.0 removal release.nemo_gym.cli.RunHelperleft the CLI compatibility table, which checks the CLI refactor shim. That shim warns on every access, whileMOVED_NAMESwarns once per process, so the table's in-process check failed whenever an earlier test in the same worker had already read the old name.With the
MOVED_NAMESentries forRunHelperremoved, the new test fails at all three paths. The NeMo RL import check and the recorded import surface check fail as well. With the entries restored, all of them pass.The test files this PR touches pass, run as below. The exceptions are server directory resolution and server data validation tests in
tests/unit_tests/cli/test_cli.py, and theterminal_bench_2_1recipe test. They fail the same way onmainon this host.pre-commit run --files <touched files>passes, including ruff and the import-linter layering check.Rollout evidence: N/A. This rename does not change behavior, and the old names resolve to the same class.