Repository navigation
Fix docs build failures - #8
Merged
Merged
Conversation
Signed-off-by: Brian Yu <[email protected]>
Signed-off-by: Brian Yu <[email protected]>
Signed-off-by: Brian Yu <[email protected]>
Signed-off-by: Brian Yu <[email protected]>
Signed-off-by: Brian Yu <[email protected]>
Signed-off-by: Brian Yu <[email protected]>
Contributor
Author
|
/ok to test 1484034 |
Signed-off-by: Brian Yu <[email protected]>
Contributor
Author
|
/ok to test de995fc |
kbhardwaj-nvidia
pushed a commit
that referenced
this pull request
Sep 5, 2025
Signed-off-by: Brian Yu <[email protected]> Signed-off-by: Khushi Bhardwaj <[email protected]>
soares-f
pushed a commit
that referenced
this pull request
Sep 8, 2025
Signed-off-by: Brian Yu <[email protected]> Signed-off-by: soares-f <[email protected]>
soares-f
pushed a commit
that referenced
this pull request
Sep 15, 2025
Signed-off-by: Brian Yu <[email protected]> Signed-off-by: soares-f <[email protected]>
abubakaria56
pushed a commit
to abubakaria56/Gym
that referenced
this pull request
Mar 2, 2026
Signed-off-by: Brian Yu <[email protected]>
abubakaria56
pushed a commit
to abubakaria56/Gym
that referenced
this pull request
Mar 2, 2026
Signed-off-by: Brian Yu <[email protected]>
wprazuch
added a commit
that referenced
this pull request
Jun 16, 2026
Supersedes #1510; covers epic #1205 friction #8 + #12 and issues #1488, #1489, #1490 in one place: - #1488: missing config_paths entry -> ConfigPathNotFoundError (names entry + searched locations). - #1490: malformed (non-list) config_paths -> MalformedConfigPathsError with the expected Hydra list syntax. - #1489: zero configured servers -> NoServerInstancesError, raised in RunHelper.start() before Ray (covers ng_run AND e2e_rollout_collection). All three subclass a new ConfigError base. A CLI decorator (exit_cleanly_on_config_error) on run()/e2e_rollout_collection() turns any ConfigError into a clean, rich-escaped message + exit 1 with NO traceback (the explicit ask in #1488/#1489), while keeping them ordinary exceptions so ng_validate (#1599) can still catch and format them. Zero-server check uses validated server instances, not a raw key count. Tests: deterministic tmp_path-based path-error tests (both-locations, dedup, absolute), malformed-config_paths, zero-server, and the decorator (ConfigError -> clean exit; non-ConfigError propagates). Signed-off-by: Wojciech Prazuch <[email protected]>
wprazuch
added a commit
that referenced
this pull request
Jun 17, 2026
Ports #1609 onto the unified gym CLI (#1434). Covers epic #1205 friction #8 + #12 and issues #1488/#1489/#1490: - #1488: missing config_paths entry -> ConfigPathNotFoundError - #1490: malformed (non-list) config_paths -> MalformedConfigPathsError - #1489: zero configured servers -> NoServerInstancesError, in RunHelper.start() before Ray (covers env run + eval run / e2e) All subclass ConfigError; a cli/env.py decorator (exit_cleanly_on_config_error, also applied to e2e_rollout_collection in cli/eval.py) turns them into a clean, rich-escaped message + exit 1, no traceback. Targets martas/1434. Signed-off-by: Wojciech Prazuch <[email protected]>
wprazuch
added a commit
that referenced
this pull request
Jun 22, 2026
Ports #1609 onto the shared CLI base (martas/1434 + uv pin + concurrency). Covers epic #1205 friction #8 + #12 and issues #1488/#1489/#1490: ConfigPathNotFoundError, MalformedConfigPathsError, NoServerInstancesError (all ConfigError); fail-fast guard in RunHelper.start(); exit_cleanly_on_config_error decorator on run()/e2e_rollout_collection() -> clean message, no traceback. Signed-off-by: Wojciech Prazuch <[email protected]>
wprazuch
added a commit
that referenced
this pull request
Jun 22, 2026
…s/ by name Epic #1205 friction #8 (FEP-1022) / RFC milestone M2 keystone. New nemo_gym/registry.py: - discover_environments(): map name -> EnvironmentEntry for every environments/<name>/config.yaml (name = dir), with best-effort description/ domain read WITHOUT resolving interpolations/secrets. - resolve_environment_config_paths(name): the run-by-name primitive — returns the env's config_paths, with a difflib 'did you mean?' on unknown names. Self-contained config-layer module (no CLI/router changes); the foundation for 'gym list' enumerating environments and run-by-name. CLI wiring is a follow-up to coordinate with the unified-CLI epic (#1434). 100% covered. Signed-off-by: Wojciech Prazuch <[email protected]>
wprazuch
added a commit
that referenced
this pull request
Jun 22, 2026
…s/ by name Epic #1205 friction #8 (FEP-1022) / RFC milestone M2 keystone. New nemo_gym/registry.py: - discover_environments(): map name -> EnvironmentEntry for every environments/<name>/config.yaml (name = dir), with best-effort description/ domain read WITHOUT resolving interpolations/secrets. - resolve_environment_config_paths(name): the run-by-name primitive — returns the env's config_paths, with a difflib 'did you mean?' on unknown names. Self-contained config-layer module (no CLI/router changes); the foundation for 'gym list' enumerating environments and run-by-name. CLI wiring is a follow-up to coordinate with the unified-CLI epic (#1434). 100% covered. Signed-off-by: Wojciech Prazuch <[email protected]>
wprazuch
added a commit
that referenced
this pull request
Jun 22, 2026
Builds on the environment registry: --env resolves a name to its config via resolve_environment_config_paths and merges it with any --config into a single +config_paths, so an environment can be run by name instead of an internal path (epic #1205 friction #8 / FEP-1022). Model flags pass through; an unknown name exits cleanly with the registry's 'did you mean?' message. Pair --env with --config / --model-* for the model the environment references. env run becomes a callable router target (_env_run); config-only behavior is unchanged. Signed-off-by: Wojciech Prazuch <[email protected]>
wprazuch
added a commit
that referenced
this pull request
Jun 22, 2026
…s/ by name Epic #1205 friction #8 (FEP-1022) / RFC milestone M2 keystone. New nemo_gym/registry.py: - discover_environments(): map name -> EnvironmentEntry for every environments/<name>/config.yaml (name = dir), with best-effort description/ domain read WITHOUT resolving interpolations/secrets. - resolve_environment_config_paths(name): the run-by-name primitive — returns the env's config_paths, with a difflib 'did you mean?' on unknown names. Self-contained config-layer module (no CLI/router changes); the foundation for 'gym list' enumerating environments and run-by-name. CLI wiring is a follow-up to coordinate with the unified-CLI epic (#1434). 100% covered. Signed-off-by: Wojciech Prazuch <[email protected]>
wprazuch
added a commit
that referenced
this pull request
Jun 22, 2026
Add nemo_gym.suite_manager: a suite is a named list of environment names that expands to the config_paths needed to run them together, so a multi-environment sweep becomes a single --suite <name> instead of an 80+ entry config_paths. - discover_suites(): built-in suites under nemo_gym/suites/ + user suites under ~/.config/nemo_gym/suites/ (user shadows built-in of the same name). - resolve_suite_config_paths(): expands a suite to ordered, de-duplicated config_paths via the environment registry, with fast-fail on unknown suite (did-you-mean), empty suite, and unknown environment (annotated with the suite). Resolution-safe (only reads configs, no interpolation/servers), mirroring the registry. Built-in suites (ultra_v3/reasoning/coding) ship as the corresponding environments are migrated into environments/; the CLI wiring (gym list suites, gym run --suite) is deferred to align with the unified CLI. Implements the M4 core (epic #1205, friction #8). Signed-off-by: Wojciech Prazuch <[email protected]>
wprazuch
added a commit
that referenced
this pull request
Jun 23, 2026
Ports #1609 onto the shared CLI base (martas/1434 + uv pin + concurrency). Covers epic #1205 friction #8 + #12 and issues #1488/#1489/#1490: ConfigPathNotFoundError, MalformedConfigPathsError, NoServerInstancesError (all ConfigError); fail-fast guard in RunHelper.start(); exit_cleanly_on_config_error decorator on run()/e2e_rollout_collection() -> clean message, no traceback. Signed-off-by: Wojciech Prazuch <[email protected]>
wprazuch
added a commit
that referenced
this pull request
Jun 24, 2026
Ports #1609 onto the shared CLI base (martas/1434 + uv pin + concurrency). Covers epic #1205 friction #8 + #12 and issues #1488/#1489/#1490: ConfigPathNotFoundError, MalformedConfigPathsError, NoServerInstancesError (all ConfigError); fail-fast guard in RunHelper.start(); exit_cleanly_on_config_error decorator on run()/e2e_rollout_collection() -> clean message, no traceback. Signed-off-by: Wojciech Prazuch <[email protected]>
wprazuch
added a commit
that referenced
this pull request
Jun 24, 2026
…s/ by name Epic #1205 friction #8 (FEP-1022) / RFC milestone M2 keystone. New nemo_gym/registry.py: - discover_environments(): map name -> EnvironmentEntry for every environments/<name>/config.yaml (name = dir), with best-effort description/ domain read WITHOUT resolving interpolations/secrets. - resolve_environment_config_paths(name): the run-by-name primitive — returns the env's config_paths, with a difflib 'did you mean?' on unknown names. Self-contained config-layer module (no CLI/router changes); the foundation for 'gym list' enumerating environments and run-by-name. CLI wiring is a follow-up to coordinate with the unified-CLI epic (#1434). 100% covered. Signed-off-by: Wojciech Prazuch <[email protected]>
wprazuch
added a commit
that referenced
this pull request
Jun 24, 2026
Add nemo_gym.suite_manager: a suite is a named list of environment names that expands to the config_paths needed to run them together, so a multi-environment sweep becomes a single --suite <name> instead of an 80+ entry config_paths. - discover_suites(): built-in suites under nemo_gym/suites/ + user suites under ~/.config/nemo_gym/suites/ (user shadows built-in of the same name). - resolve_suite_config_paths(): expands a suite to ordered, de-duplicated config_paths via the environment registry, with fast-fail on unknown suite (did-you-mean), empty suite, and unknown environment (annotated with the suite). Resolution-safe (only reads configs, no interpolation/servers), mirroring the registry. Built-in suites (ultra_v3/reasoning/coding) ship as the corresponding environments are migrated into environments/; the CLI wiring (gym list suites, gym run --suite) is deferred to align with the unified CLI. Implements the M4 core (epic #1205, friction #8). Signed-off-by: Wojciech Prazuch <[email protected]>
wprazuch
added a commit
that referenced
this pull request
Jun 24, 2026
Builds on the environment registry: --env resolves a name to its config via resolve_environment_config_paths and merges it with any --config into a single +config_paths, so an environment can be run by name instead of an internal path (epic #1205 friction #8 / FEP-1022). Model flags pass through; an unknown name exits cleanly with the registry's 'did you mean?' message. Pair --env with --config / --model-* for the model the environment references. env run becomes a callable router target (_env_run); config-only behavior is unchanged. Signed-off-by: Wojciech Prazuch <[email protected]>
wprazuch
added a commit
that referenced
this pull request
Jun 24, 2026
Ports #1609 onto the shared CLI base (martas/1434 + uv pin + concurrency). Covers epic #1205 friction #8 + #12 and issues #1488/#1489/#1490: ConfigPathNotFoundError, MalformedConfigPathsError, NoServerInstancesError (all ConfigError); fail-fast guard in RunHelper.start(); exit_cleanly_on_config_error decorator on run()/e2e_rollout_collection() -> clean message, no traceback. Signed-off-by: Wojciech Prazuch <[email protected]>
wprazuch
added a commit
that referenced
this pull request
Jun 24, 2026
…s/ by name Epic #1205 friction #8 (FEP-1022) / RFC milestone M2 keystone. New nemo_gym/registry.py: - discover_environments(): map name -> EnvironmentEntry for every environments/<name>/config.yaml (name = dir), with best-effort description/ domain read WITHOUT resolving interpolations/secrets. - resolve_environment_config_paths(name): the run-by-name primitive — returns the env's config_paths, with a difflib 'did you mean?' on unknown names. Self-contained config-layer module (no CLI/router changes); the foundation for 'gym list' enumerating environments and run-by-name. CLI wiring is a follow-up to coordinate with the unified-CLI epic (#1434). 100% covered. Signed-off-by: Wojciech Prazuch <[email protected]>
wprazuch
added a commit
that referenced
this pull request
Jun 24, 2026
Add nemo_gym.suite_manager: a suite is a named list of environment names that expands to the config_paths needed to run them together, so a multi-environment sweep becomes a single --suite <name> instead of an 80+ entry config_paths. - discover_suites(): built-in suites under nemo_gym/suites/ + user suites under ~/.config/nemo_gym/suites/ (user shadows built-in of the same name). - resolve_suite_config_paths(): expands a suite to ordered, de-duplicated config_paths via the environment registry, with fast-fail on unknown suite (did-you-mean), empty suite, and unknown environment (annotated with the suite). Resolution-safe (only reads configs, no interpolation/servers), mirroring the registry. Built-in suites (ultra_v3/reasoning/coding) ship as the corresponding environments are migrated into environments/; the CLI wiring (gym list suites, gym run --suite) is deferred to align with the unified CLI. Implements the M4 core (epic #1205, friction #8). Signed-off-by: Wojciech Prazuch <[email protected]>
wprazuch
added a commit
that referenced
this pull request
Jun 24, 2026
Builds on the environment registry: --env resolves a name to its config via resolve_environment_config_paths and merges it with any --config into a single +config_paths, so an environment can be run by name instead of an internal path (epic #1205 friction #8 / FEP-1022). Model flags pass through; an unknown name exits cleanly with the registry's 'did you mean?' message. Pair --env with --config / --model-* for the model the environment references. env run becomes a callable router target (_env_run); config-only behavior is unchanged. Signed-off-by: Wojciech Prazuch <[email protected]>
wprazuch
added a commit
that referenced
this pull request
Jun 24, 2026
Ports #1609 onto the shared CLI base (martas/1434 + uv pin + concurrency). Covers epic #1205 friction #8 + #12 and issues #1488/#1489/#1490: ConfigPathNotFoundError, MalformedConfigPathsError, NoServerInstancesError (all ConfigError); fail-fast guard in RunHelper.start(); exit_cleanly_on_config_error decorator on run()/e2e_rollout_collection() -> clean message, no traceback. Signed-off-by: Wojciech Prazuch <[email protected]>
wprazuch
added a commit
that referenced
this pull request
Jun 24, 2026
Add nemo_gym.suite_manager: a suite is a named list of environment names that expands to the config_paths needed to run them together, so a multi-environment sweep becomes a single --suite <name> instead of an 80+ entry config_paths. - discover_suites(): built-in suites under nemo_gym/suites/ + user suites under ~/.config/nemo_gym/suites/ (user shadows built-in of the same name). - resolve_suite_config_paths(): expands a suite to ordered, de-duplicated config_paths via the environment registry, with fast-fail on unknown suite (did-you-mean), empty suite, and unknown environment (annotated with the suite). Resolution-safe (only reads configs, no interpolation/servers), mirroring the registry. Built-in suites (ultra_v3/reasoning/coding) ship as the corresponding environments are migrated into environments/; the CLI wiring (gym list suites, gym run --suite) is deferred to align with the unified CLI. Implements the M4 core (epic #1205, friction #8). Signed-off-by: Wojciech Prazuch <[email protected]>
wprazuch
added a commit
that referenced
this pull request
Jun 24, 2026
Builds on the environment registry: --env resolves a name to its config via resolve_environment_config_paths and merges it with any --config into a single +config_paths, so an environment can be run by name instead of an internal path (epic #1205 friction #8 / FEP-1022). Model flags pass through; an unknown name exits cleanly with the registry's 'did you mean?' message. Pair --env with --config / --model-* for the model the environment references. env run becomes a callable router target (_env_run); config-only behavior is unchanged. Signed-off-by: Wojciech Prazuch <[email protected]>
wprazuch
added a commit
that referenced
this pull request
Jun 25, 2026
Ports #1609 onto the shared CLI base (martas/1434 + uv pin + concurrency). Covers epic #1205 friction #8 + #12 and issues #1488/#1489/#1490: ConfigPathNotFoundError, MalformedConfigPathsError, NoServerInstancesError (all ConfigError); fail-fast guard in RunHelper.start(); exit_cleanly_on_config_error decorator on run()/e2e_rollout_collection() -> clean message, no traceback. Signed-off-by: Wojciech Prazuch <[email protected]>
wprazuch
added a commit
that referenced
this pull request
Jun 25, 2026
…hs (#1205 #8/#12; #1488/#1489/#1490) (#1609) ## What One coherent fix for the three `config_paths` failure modes, all failing fast with a **clean message and no traceback**: | Issue | Bad input | Before | After | |-------|-----------|--------|-------| | [#1488](#1488) | typo'd / missing path | 7-frame `FileNotFoundError` | `Error: config_paths entry '...' was not found. Looked in: ...` | | [#1490](#1490) | scalar instead of list | raw Pydantic `ValidationError` (+pydantic.dev URL) | `Error: 'config_paths' must be a list of paths ...` | | [#1489](#1489) | empty / omitted (zero servers) | Ray starts, hangs until SIGTERM | `Error: No server instances are configured ...` before Ray | ## How - New `ConfigError` base in `config_types.py`; `ConfigPathNotFoundError`, `MalformedConfigPathsError`, `NoServerInstancesError` (and the existing `ServerRefNotFoundError`) inherit it. They stay ordinary exceptions, so `ng_validate` (#1599, `except Exception`) can still catch and format them. - `load_extra_config_paths` wraps `OmegaConf.load` (#1488); `parse()` wraps `ta.validate_python` (#1490). - `raise_on_no_server_instances` (validated server-instance check, not a raw key count) runs in **`RunHelper.start()`** before `initialize_ray()` — covers both run and `e2e_rollout_collection` (#1489). - A CLI decorator `exit_cleanly_on_config_error` converts any `ConfigError` to a rich-escaped message + `exit 1`, **no traceback**. Unexpected errors still propagate unchanged. ## Supersedes #1510 Consolidates [#1510](#1510): typed exceptions `ng_validate` can catch/format (a bare `SystemExit` would escape it), a validated zero-server check, the guard in `start()` so `e2e` is covered, and deterministic tests. ## Tests `test_global_config.py`: path-not-found (both-locations / dedup / absolute), malformed config_paths, zero-server (raise + pass). `test_cli.py`: the decorator (ConfigError → clean exit; non-ConfigError propagates unchanged; success passes through). 67/67 `test_global_config`+`test_cli` pass; ruff + pre-commit clean. --------- Signed-off-by: Wojciech Prazuch <[email protected]>
wprazuch
added a commit
that referenced
this pull request
Jun 25, 2026
…s/ by name Epic #1205 friction #8 (FEP-1022) / RFC milestone M2 keystone. New nemo_gym/registry.py: - discover_environments(): map name -> EnvironmentEntry for every environments/<name>/config.yaml (name = dir), with best-effort description/ domain read WITHOUT resolving interpolations/secrets. - resolve_environment_config_paths(name): the run-by-name primitive — returns the env's config_paths, with a difflib 'did you mean?' on unknown names. Self-contained config-layer module (no CLI/router changes); the foundation for 'gym list' enumerating environments and run-by-name. CLI wiring is a follow-up to coordinate with the unified-CLI epic (#1434). 100% covered. Signed-off-by: Wojciech Prazuch <[email protected]>
wprazuch
added a commit
that referenced
this pull request
Jun 25, 2026
… / M2) (#1635) ## What The **M2 keystone** — discover environments by name from the CLI: **1. `nemo_gym/registry.py` (new) — discovery only** - `discover_environments()` → name → `EnvironmentEntry` for every [`environments/<name>/config.yaml`](https://github.com/NVIDIA-NeMo/Gym/tree/main/environments) (name = dir), with `description`/`domain` read **without resolving interpolations/secrets** (a config referencing an unset key is still discoverable — no crash). **2. `gym list environments` (CLI wiring)** - `list_environments()` in `cli/env.py` renders discovered environments (name / domain / description) as a table, or `--json` for programmatic use — matching `gym list benchmarks` / `gym list agents` (#1671). Registered in the `gym` router; the `list` group is no longer "benchmarks only". ``` $ gym list environments ┏━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Environment ┃ Domain ┃ Description ┃ ┡━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ workplace_assistant │ agent │ Workplace assistant multi-step tool-using env │ └─────────────────────┴────────┴───────────────────────────────────────────────┘ $ gym list environments --json [{"name": "workplace_assistant", "domain": "agent", "description": "..."}, ...] ``` ## Why Epic [#1205](#1205) friction 8. Directly answers the reviewer asks for "`gym list` by environment name". The `environments/` layout was live but unconsumed in code; this surfaces it in the CLI. ## Alignment with the unified CLI (#1434) Run-by-**name** for environments is already provided by the unified CLI's generic **`--environment`** asset selector (on `gym env start` / `gym eval run`, with `--search-dir` and `name/flavor` support). So this registry is intentionally **discovery-only** — an earlier `resolve_environment_config_paths` was removed as a duplicate of that selector. `gym list environments` is the piece the asset selectors don't provide. ## Tests `test_registry.py` (discovery: name/metadata, missing dir, malformed YAML tolerance, unset-secret tolerance, real-repo discovery) + `test_cli.py` / `test_cli_main.py` (`list_environments` table / empty / `--json` output + router dispatch incl. `--json`). Smoke-tested `gym list environments [--json]` end-to-end. ruff + pre-commit clean. --------- Signed-off-by: Wojciech Prazuch <[email protected]>
5 tasks
ritaneves
pushed a commit
that referenced
this pull request
Jun 25, 2026
…hs (#1205 #8/#12; #1488/#1489/#1490) (#1609) ## What One coherent fix for the three `config_paths` failure modes, all failing fast with a **clean message and no traceback**: | Issue | Bad input | Before | After | |-------|-----------|--------|-------| | [#1488](#1488) | typo'd / missing path | 7-frame `FileNotFoundError` | `Error: config_paths entry '...' was not found. Looked in: ...` | | [#1490](#1490) | scalar instead of list | raw Pydantic `ValidationError` (+pydantic.dev URL) | `Error: 'config_paths' must be a list of paths ...` | | [#1489](#1489) | empty / omitted (zero servers) | Ray starts, hangs until SIGTERM | `Error: No server instances are configured ...` before Ray | ## How - New `ConfigError` base in `config_types.py`; `ConfigPathNotFoundError`, `MalformedConfigPathsError`, `NoServerInstancesError` (and the existing `ServerRefNotFoundError`) inherit it. They stay ordinary exceptions, so `ng_validate` (#1599, `except Exception`) can still catch and format them. - `load_extra_config_paths` wraps `OmegaConf.load` (#1488); `parse()` wraps `ta.validate_python` (#1490). - `raise_on_no_server_instances` (validated server-instance check, not a raw key count) runs in **`RunHelper.start()`** before `initialize_ray()` — covers both run and `e2e_rollout_collection` (#1489). - A CLI decorator `exit_cleanly_on_config_error` converts any `ConfigError` to a rich-escaped message + `exit 1`, **no traceback**. Unexpected errors still propagate unchanged. ## Supersedes #1510 Consolidates [#1510](#1510): typed exceptions `ng_validate` can catch/format (a bare `SystemExit` would escape it), a validated zero-server check, the guard in `start()` so `e2e` is covered, and deterministic tests. ## Tests `test_global_config.py`: path-not-found (both-locations / dedup / absolute), malformed config_paths, zero-server (raise + pass). `test_cli.py`: the decorator (ConfigError → clean exit; non-ConfigError propagates unchanged; success passes through). 67/67 `test_global_config`+`test_cli` pass; ruff + pre-commit clean. --------- Signed-off-by: Wojciech Prazuch <[email protected]> Signed-off-by: Rita Fernandes Neves <[email protected]>
ritaneves
pushed a commit
that referenced
this pull request
Jun 25, 2026
… / M2) (#1635) ## What The **M2 keystone** — discover environments by name from the CLI: **1. `nemo_gym/registry.py` (new) — discovery only** - `discover_environments()` → name → `EnvironmentEntry` for every [`environments/<name>/config.yaml`](https://github.com/NVIDIA-NeMo/Gym/tree/main/environments) (name = dir), with `description`/`domain` read **without resolving interpolations/secrets** (a config referencing an unset key is still discoverable — no crash). **2. `gym list environments` (CLI wiring)** - `list_environments()` in `cli/env.py` renders discovered environments (name / domain / description) as a table, or `--json` for programmatic use — matching `gym list benchmarks` / `gym list agents` (#1671). Registered in the `gym` router; the `list` group is no longer "benchmarks only". ``` $ gym list environments ┏━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Environment ┃ Domain ┃ Description ┃ ┡━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ workplace_assistant │ agent │ Workplace assistant multi-step tool-using env │ └─────────────────────┴────────┴───────────────────────────────────────────────┘ $ gym list environments --json [{"name": "workplace_assistant", "domain": "agent", "description": "..."}, ...] ``` ## Why Epic [#1205](#1205) friction 8. Directly answers the reviewer asks for "`gym list` by environment name". The `environments/` layout was live but unconsumed in code; this surfaces it in the CLI. ## Alignment with the unified CLI (#1434) Run-by-**name** for environments is already provided by the unified CLI's generic **`--environment`** asset selector (on `gym env start` / `gym eval run`, with `--search-dir` and `name/flavor` support). So this registry is intentionally **discovery-only** — an earlier `resolve_environment_config_paths` was removed as a duplicate of that selector. `gym list environments` is the piece the asset selectors don't provide. ## Tests `test_registry.py` (discovery: name/metadata, missing dir, malformed YAML tolerance, unset-secret tolerance, real-repo discovery) + `test_cli.py` / `test_cli_main.py` (`list_environments` table / empty / `--json` output + router dispatch incl. `--json`). Smoke-tested `gym list environments [--json]` end-to-end. ruff + pre-commit clean. --------- Signed-off-by: Wojciech Prazuch <[email protected]> Signed-off-by: Rita Fernandes Neves <[email protected]>
rimashahbazyan
added a commit
that referenced
this pull request
Sep 14, 2026
Addresses blocking finding #4 from the PR #3153 review. `nemo_gym/cli/env.py` asserts exactly 5 rows in `data/example.jsonl`, plus `data/example_metrics.json` reporting 5 examples and `data/example_rollouts.jsonl`. CI's changed-server job runs that with `+should_validate_data=true`. This server shipped 3 rows and neither companion file, and `data/.gitignore` (`*` with a single `!example.jsonl`) would have excluded them even once generated. 119 of the other 120 servers commit all three. It went unnoticed locally because the copy-pr-bot gate meant only lint, copyright, secrets and DCO ran on the PR. `example.jsonl` is regenerated as the first 5 prepared rows, `example_metrics.json` comes from `gym dataset collate --mode example_validation`, and the rollouts are a real 5-task run against gpt-5.4-mini. The gitignore now follows the sibling code servers: the three required files are committed and the incidental products of `gym eval run` are ignored. Regenerating the examples forced finding #8 as well, since they cannot misrepresent the config they come from. `prompts/default.yaml` carried `system: ""`, and `nemo_gym/prompt.py` emits a system turn whenever the key is present — so every request sent an empty system message, which is neither upstream's prompt nor nothing, and contradicted the "unmodified upstream prompt" claim in the README. Of 41 prompt YAMLs only bigcodebench's does this, for NeMo-Skills byte parity that does not apply here. The key is removed, the examples carry a user turn only, and the reasoning is recorded in the YAML so it is not reintroduced. Validation: `gym env test --resources-server scicodepile +should_validate_data=true` passes, reporting "The data for resources_servers/scicodepile has been successfully validated!", with all 43 unit tests green in the isolated per-server venv. Co-Authored-By: Claude Opus 5 <[email protected]> Signed-off-by: Rima Shahbazyan <[email protected]>
7 tasks done
subhankar-ghosh
added a commit
to subhankar-ghosh/Gym
that referenced
this pull request
Dec 2, 2026
…ze, preflight - The submission mirror opens the episode dir and submission/ as no-follow directory descriptors before the remote read, then creates an exclusive temp file and renames it relative to them: a link or a swapped parent in the episode's writable workspace cannot redirect the write (review NVIDIA-NeMo#7). - Event polls, the pre-call check and finalize take one lock around the request and the handling of its reply, so each broker event is applied once and a later tripwire is never skipped (NVIDIA-NeMo#8). - The submission is identified by its sha256 (read as the agent, regular file only, time bounded) instead of size and whole-second mtime, and the identity is recorded only after a successful mirror. The file sync compares files below 64 MiB by sha256 on both sides (NVIDIA-NeMo#9). - TaskSandbox.kill() joins a create, recovery or hydration in progress; a provider handle that arrives after the release is killed at once, so no sandbox or renewal task outlives finalize (NVIDIA-NeMo#13). - The S3 preflight requires each probe to run to its end (exit 0, not timed out, completion mark printed); an incomplete probe refuses the sandbox as an infrastructure failure, not as a tripwire (NVIDIA-NeMo#14). Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Subhankar Ghosh <[email protected]>
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.
No description provided.