-
-
Notifications
You must be signed in to change notification settings - Fork 16.6k
[Bugfix] Fix spawn_new_process_for_each_test silently swallowing test failures #41423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ProExpertProg
merged 11 commits into
vllm-project:main
from
dzhengAP:bugfix/fix-spawn-decorator-exitcode
May 6, 2026
+306
−245
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
35119ab
[Bugfix] Fix spawn_new_process_for_each_test silently swallowing fail…
dzhengAP a1e7e9b
Handle pytest.skip in spawn subprocess child script
dzhengAP e80a2a1
Remove dangling old spawn function body
dzhengAP 14e6f5a
Fix review comments: remove unused import, decorate test_ functions d…
dzhengAP d88106d
Merge branch 'main' into bugfix/fix-spawn-decorator-exitcode
dzhengAP 3f11583
fix: fix unpicklable objects in create_new_process_for_each_test deco…
dzhengAP 65cfcc8
Merge branch 'main' into bugfix/fix-spawn-decorator-exitcode
dzhengAP cfc56be
ci: retrigger CI to fix transient pip-compile-xpu 503 error
dzhengAP 9b1ee46
fix: use correct cudagraph_capture_sizes matching test token counts
dzhengAP f54b30b
fix(test): use dispatch key instead of desc_2 for step 4 replay check
dzhengAP cf872f4
test: move test_spawn_decorator.py to tests/utils_/ folder
dzhengAP File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # SPDX-FileCopyrightText: Copyright contributors to the vLLM project | ||
| """Tests for spawn_new_process_for_each_test decorator.""" | ||
|
|
||
| import pytest | ||
|
|
||
| from tests.utils import spawn_new_process_for_each_test | ||
|
|
||
|
|
||
| @spawn_new_process_for_each_test | ||
|
dzhengAP marked this conversation as resolved.
|
||
| def test_spawn_decorator_passing(): | ||
| """Passing function should complete normally.""" | ||
| assert 1 + 1 == 2 | ||
|
|
||
|
|
||
| @pytest.mark.xfail(raises=RuntimeError, strict=True) | ||
| @spawn_new_process_for_each_test | ||
|
dzhengAP marked this conversation as resolved.
|
||
| def test_spawn_decorator_failure_is_caught(): | ||
| """Failing function should raise RuntimeError, never silently pass.""" | ||
| raise ValueError("intentional failure") | ||
|
|
||
|
|
||
| @spawn_new_process_for_each_test | ||
| def test_spawn_decorator_skip(): | ||
| """pytest.skip inside subprocess should propagate correctly.""" | ||
| pytest.skip("intentional skip") | ||
|
|
||
|
|
||
| @spawn_new_process_for_each_test | ||
| @pytest.mark.parametrize("x,y,expected", [(1, 2, 3), (0, 0, 0)]) | ||
| def test_spawn_decorator_parametrized(x, y, expected): | ||
| """Args and kwargs must be forwarded correctly to subprocess.""" | ||
| assert x + y == expected | ||
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.