[CI/Build] Move test_utils.py to tests/utils.py#4425
[CI/Build] Move test_utils.py to tests/utils.py#4425rkooo567 merged 9 commits intovllm-project:mainfrom DarkLight1337:move-test-utils
test_utils.py to tests/utils.py#4425Conversation
test_utils to tests/utilstest_utils to tests/utils.py
test_utils to tests/utils.pytest_utils.py to tests/utils.py
- Also move `ServerRunner` to `tests/utils`
|
I'm not that familiar with how the nccl library is handled in vLLM. How would using relative imports cause the library to not be loaded? |
|
I think it should be OK now. |
|
@rkooo567 did you forget to merge this? |
|
oops. sorry .can you resolve the merge conflict? |
See if this passes |
|
Apart from the AMD tests failing due to out of storage space and |
|
amd failure seems unrelated. cc @simon-mo I am merging this |
|
It's a little bit late but I find pytorch also has some testing code in the main library https://github.com/pytorch/pytorch/tree/main/torch/testing . Maybe we need to discuss it. Relative import used in this PR is quite fragile . |
|
Hmm is there a way to just exclude it in actual wheel? |
Not sure. But why do we care about this anyway? It's just a single python file with dozens of lines. |
By this, do you mean that it breaks calling To reinstate this functionality while keeping utilities in the |
Since vllm-project#4335 was merged, I've noticed that the definition of ServerRunner in the tests is the same as in the test for OpenAI API. I have moved the class to the test utilities to avoid code duplication. (Although it only has been repeated twice so far, I will add another similar test suite in vllm-project#4200 which would duplicate the code a third time) Also, I have moved the test utilities file (test_utils.py) to under the test directory (tests/utils.py), since none of its code is actually used in the main package. Note that I have added __init__.py to each test subpackage and updated the ray.init() call in the test utilities file in order to relative import tests/utils.py.
Since vllm-project#4335 was merged, I've noticed that the definition of ServerRunner in the tests is the same as in the test for OpenAI API. I have moved the class to the test utilities to avoid code duplication. (Although it only has been repeated twice so far, I will add another similar test suite in vllm-project#4200 which would duplicate the code a third time) Also, I have moved the test utilities file (test_utils.py) to under the test directory (tests/utils.py), since none of its code is actually used in the main package. Note that I have added __init__.py to each test subpackage and updated the ray.init() call in the test utilities file in order to relative import tests/utils.py.
Since #4335 was merged, I've noticed that the definition of
ServerRunnerin the tests is the same as in the test for OpenAI API. I have moved the class to the test utilities to avoid code duplication. (Although it only has been repeated twice so far, I will add another similar test suite in #4200 which would duplicate the code a third time)Also, I have moved the test utilities file (
test_utils.py) to under the test directory (tests/utils.py), since none of its code is actually used in the main package. Note that I have added__init__.pyto each test subpackage and updated theray.init()call in the test utilities file in order to relative importtests/utils.py.