Repository navigation
fix(cli): fail server suites on unrecognized exit codes - #3700
Merged
Merged
Conversation
Signed-off-by: yaoyu-33 <[email protected]>
yaoyu-33
marked this pull request as ready for review
September 28, 2026 23:08
Contributor
|
/ok to test bbe3a94 |
yuhezhang-ai
approved these changes
Sep 30, 2026
Contributor
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/36777850962 |
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.
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 intests_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 #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).