Repository navigation
feat: cli error handling - #1804
Merged
Merged
Conversation
… handle them gracefully in CLI Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Contributor
Author
|
/ok to test 170a05e |
Contributor
Author
|
/ok to test 9260afb |
wprazuch
approved these changes
Jun 29, 2026
| try: | ||
| _validate_data_single(test_config) | ||
| except AssertionError: | ||
| print(f"Data validation failed for {test_config.entrypoint}. You can rerun just the data validation like:") |
Contributor
There was a problem hiding this comment.
nit: using a multiline """ syntax
wprazuch
added a commit
that referenced
this pull request
Jun 29, 2026
Resolve PR #1673 conflicts with main (now includes #1804/#1805/#1806). The gym env compose work coexists with #1805's install-root _asset_config_path and the agent asset selector in nemo_gym/cli/main.py; both `env compose` and `env validate` remain registered. Auto-merge verified: no conflict markers, 167 unit tests pass (only the pre-existing TestDidYouMean argparse failures), and `gym env compose --benchmark gsm8k --agent simple_agent` + `gym env validate` both work. Signed-off-by: Wojciech Prazuch <[email protected]>
muskank7
pushed a commit
to muskank7/Gym
that referenced
this pull request
Sep 30, 2026
…3700) ## Expected The server test suite should finish testing the remaining modules and exit nonzero when a server's pytest process fails, including an internal error (exit code 3). ## Actual `test_all()` records these failures in `tests_unrecognized`, but omits that category from its final failure check. With no other failures, the command returns successfully even though a server's tests never ran, allowing its CI caller to report success. ## Fix Include the existing category in the final exit condition. The suite still completes the remaining modules, preserving the deferred reporting introduced in NVIDIA-NeMo#1804, and an all-passing suite still succeeds. The regression exercises actual pytest subprocesses for both cases. Validation: 86 focused and 498 adjacent tests passed; core/sandbox checks passed with 95.16% combined coverage, as did all-file pre-commit. Model rollouts: N/A (test-runner-only change). <!-- gym-verified-bug-hunter:cli-test-all-unrecognized-exit-success --> Signed-off-by: yaoyu-33 <[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.
Improves how errors are reported to the user then data preparation or env tests fail