Skip to content

fix(cli): fail server suites on unrecognized exit codes - #3700

Merged
yuhezhang-ai merged 1 commit into
mainfrom
bug-hunter/2026-09-26-server-test-exits
Sep 30, 2026
Merged

yuhezhang-ai merged 1 commit into
mainfrom
bug-hunter/2026-09-26-server-test-exits

Conversation

@yaoyu-33

Copy link
Copy Markdown
Contributor

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 #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).

@copy-pr-bot

copy-pr-bot Bot commented Sep 26, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@yaoyu-33
yaoyu-33 marked this pull request as ready for review September 28, 2026 23:08
@yaoyu-33 yaoyu-33 added needs-review PR is ready for code review and waiting on a reviewer area:cli Command-line interfaces and user-facing command behavior bug Something isn't working complexity:low Localized change in one scope with a small, straightforward review surface labels Sep 28, 2026
@github-actions github-actions Bot added the sla:triage-overdue Review assignment is over the one-business-day SLA label Sep 29, 2026
@yuhezhang-ai

Copy link
Copy Markdown
Contributor

/ok to test bbe3a94

@github-actions github-actions Bot removed the sla:triage-overdue Review assignment is over the one-business-day SLA label Sep 30, 2026
@yuhezhang-ai
yuhezhang-ai added this pull request to the merge queue Sep 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/36777850962

Merged via the queue into main with commit 0bd9f8c Sep 30, 2026
49 checks passed
@yuhezhang-ai
yuhezhang-ai deleted the bug-hunter/2026-09-26-server-test-exits branch September 30, 2026 21:24

This branch was previously deployed

1 inactive deployment
public — bbe3a94e Deployed Sep 30, 2026 by copy-pr-bot[bot] via release / finalize / notify #4068
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:cli Command-line interfaces and user-facing command behavior bug Something isn't working complexity:low Localized change in one scope with a small, straightforward review surface needs-review PR is ready for code review and waiting on a reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants