-
-
Notifications
You must be signed in to change notification settings - Fork 11.8k
Fix compilation tests find commands #30194
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -468,7 +468,11 @@ steps: | |
| # tests covered elsewhere. | ||
| # Use `find` to launch multiple instances of pytest so that | ||
| # they do not suffer from https://github.com/vllm-project/vllm/issues/28965 | ||
| - "find compile/ -maxdepth 1 -name 'test_*.py' -exec pytest -s -v {} \\\\;" | ||
| # However, find does not normally propagate error codes, so we combine it with xargs | ||
| # (using -0 for proper path handling) | ||
| - > | ||
| find compile/ -maxdepth 1 -name 'test_*.py' -print0 | | ||
| xargs -0 -n1 -I{} pytest -s -v "{}" | ||
|
|
||
| - label: PyTorch Fullgraph Smoke Test # 15min | ||
| timeout_in_minutes: 30 | ||
|
|
@@ -482,7 +486,11 @@ steps: | |
| # as it is a heavy test that is covered in other steps. | ||
| # Use `find` to launch multiple instances of pytest so that | ||
| # they do not suffer from https://github.com/vllm-project/vllm/issues/28965 | ||
| - "find compile/fullgraph/ -name 'test_*.py' -not -name 'test_full_graph.py' -exec pytest -s -v {} \\\\;" | ||
| # However, find does not normally propagate error codes, so we combine it with xargs | ||
| # (using -0 for proper path handling) | ||
| - > | ||
| find compile/fullgraph -maxdepth 1 -name 'test_*.py' -not -name 'test_full_graph.py' -print0 | | ||
| xargs -0 -n1 -I{} pytest -s -v "{}" | ||
|
||
|
|
||
| - label: PyTorch Fullgraph Test # 27min | ||
| timeout_in_minutes: 40 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While this change correctly propagates
pytestexit codes, it introduces an issue where the step will silently pass iffinddoesn't locate any test files. A test step that is expected to run tests should fail if no tests are found to avoid giving a false sense of security. I suggest adding a check to ensure at least one test file is found.