Repository navigation
cp: fix(config): declare environment servers for agents added after the migration (4084) into r0.7.0 - #4127
Merged
ananthsub merged 1 commit intoOct 6, 2026
Conversation
…igration (NVIDIA-NeMo#4084) Declares `legacy_agent` environment servers for the six configs added after NVIDIA-NeMo#3929 that have agents with no environment server: - `environments/wordle/config.yaml` - `resources_servers/wordle/configs/wordle.yaml` - `resources_servers/swemer_oml/configs/swemer_oml_example.yaml` - `resources_servers/swemer_oml/configs/swemer_oml_opencode.yaml` - `resources_servers/swe_internal_v1/configs/swe_internal_v1_example.yaml` - `resources_servers/swe_internal_v1/configs/swe_internal_v1_opencode.yaml` Without these, every run of these configs generates the relays at startup and logs the deprecation warning, and a run with `error_on_agent_without_environment_server: true` fails with `AgentWithoutEnvironmentServerError`. The blocks were written by `scripts/add_legacy_agent_environment_servers.py`, so they match what the runtime generates today. Nothing checked the repository's configs, which is how these slipped in. This PR adds a unit test that runs the script's `--check` over the repository and fails if any agent still lacks an environment server. No issue; follow-up to NVIDIA-NeMo#3929. - The new test, `test_repository_configs_declare_every_environment_server`, fails on `main`'s configs and passes with this change. - `gym env resolve --config <file> +error_on_agent_without_environment_server=true` on each of the six configs: before this change, all six are rejected for having no environment server; after it, all six pass that check. Resolution then stops at the unset `model_server` values, which need a local `env.yaml`. - `pytest tests/unit_tests/test_add_legacy_agent_environment_servers.py tests/unit_tests/test_global_config.py`: all pass. - `pre-commit run` on the changed files: all pass. N/A. The added blocks are the relays the runtime already generates for these agents at startup, so a run's servers and routing don't change; only the deprecation warning goes away. No behavior change for existing runs. Runs with `error_on_agent_without_environment_server: true` now accept these configs. Signed-off-by: Ananth Subramaniam <[email protected]> (cherry picked from commit 33611bc) 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
This PR only cherry-picks #4084 (
33611bcc9, "fix(config): declare environment servers for agents added after the migration") intor0.7.0. It adds no new code. The commit is applied withgit cherry-pick -x, so its message records the source commit.It declares
legacy_agentenvironment servers for the four configs onr0.7.0whose agents have none, and adds the unit test that runsscripts/add_legacy_agent_environment_servers.py --checkover the repository:environments/wordle/config.yamlresources_servers/wordle/configs/wordle.yamlresources_servers/swemer_oml/configs/swemer_oml_example.yamlresources_servers/swemer_oml/configs/swemer_oml_opencode.yamlWhy
#4084 has the
r0.7.0label, but the automatic cherry-pick failed. Without these blocks, runs of these configs onr0.7.0generate the relays at startup and log the deprecation warning, and a run witherror_on_agent_without_environment_server: truefails withAgentWithoutEnvironmentServerError.Conflict resolution
#4084 also updates
resources_servers/swe_internal_v1/configs/swe_internal_v1_example.yamlandswe_internal_v1_opencode.yaml. Theswe_internal_v1resources server exists only onmain, so those two files are left out. Everything else applied unchanged.Validation
python scripts/add_legacy_agent_environment_servers.py --checkon unmodifiedr0.7.0flags exactly these four configs and no others. Running the script there produces blocks identical to the ones in this PR.--checkon this branch: no files to update.pytest tests/unit_tests/test_add_legacy_agent_environment_servers.py tests/unit_tests/test_global_config.py: pass, including the newtest_repository_configs_declare_every_environment_server.pre-commithooks on the changed files: pass.Rollout evidence
N/A. The added blocks are the relays the runtime already generates for these agents at startup, so a run's servers and routing do not change; only the deprecation warning goes away.