-
Notifications
You must be signed in to change notification settings - Fork 889
test scripts failing after native windows code merge #797
Description
The development install and tests scripts are broken after the recent Native windows PR code merge changes.
Following are not working:
- Install from source on fresh machine (Install from source not working #796)
- Test script for model archiver
- Test script for TorchServe
- Test script for sanity tests
- Tests for API
Detailed error logs
python ./scripts/test_modelarchiver.py
Started model archiver linting
In directory: /home/ubuntu/serve/model-archiver | Executing command: pylint -rn --rcfile=./model_archiver/tests/pylintrc model_archiver/.
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)
Started model archiver pytests - unit tests
In directory: /home/ubuntu/serve/model-archiver | Executing command: python -m pytest --cov-report html:result_units --cov=. model_archiver/tests/unit_tests
ERROR: usage: main.py [options] [file_or_dir] [file_or_dir] [...]
main.py: error: unrecognized arguments: --cov-report --cov=. model_archiver/tests/unit_tests
inifile: None
rootdir: /home/ubuntu/serve/model-archiverStarted model archiver pytests - integration tests
In directory: /home/ubuntu/serve/model-archiver | Executing command: python -m pytest model_archiver/tests/integ_tests
=========================================================== test session starts ===========================================================
platform linux -- Python 3.6.10, pytest-5.4.3, py-1.9.0, pluggy-0.13.1
rootdir: /home/ubuntu/serve/model-archiver
collected 2 itemsmodel_archiver/tests/integ_tests/test_integration_model_archiver.py .. [100%]
============================================================ 2 passed in 0.99s ============================================================
Model archiver Unit Pytests Failed !
python ./scripts/test_torchserve.py
Started torchserve linting
In directory: /home/ubuntu/serve | Executing command: pylint -rn --rcfile=./ts/tests/pylintrc ts/.
Your code has been rated at 10.00/10
Started torchserve pytests
In directory: /home/ubuntu/serve | Executing command: python -m pytest --cov-report html:result_units --cov=ts ts/tests/unit_tests
ERROR: usage: main.py [options] [file_or_dir] [file_or_dir] [...]
main.py: error: unrecognized arguments: --cov-report --cov=ts ts/tests/unit_tests
inifile: None
rootdir: /home/ubuntu/serveTorchServe Pytests Failed !
python ./scripts/test_torchserve.py
Started torchserve linting
In directory: /home/ubuntu/serve | Executing command: pylint -rn --rcfile=./ts/tests/pylintrc ts/.
Your code has been rated at 10.00/10
Started torchserve pytests
In directory: /home/ubuntu/serve | Executing command: python -m pytest --cov-report html:result_units --cov=ts ts/tests/unit_tests
ERROR: usage: main.py [options] [file_or_dir] [file_or_dir] [...]
main.py: error: unrecognized arguments: --cov-report --cov=ts ts/tests/unit_tests
inifile: None
rootdir: /home/ubuntu/serveTorchServe Pytests Failed !
(pytorch_p36) ubuntu@ip-172-31-43-138:~/serve$ python ./scripts/test_sanity.py
Traceback (most recent call last):
File "./scripts/test_sanity.py", line 3, in
import nvgpu
ModuleNotFoundError: No module named 'nvgpu'
python ./scripts/test_api.py management
Starting TorchServe
Console logs redirected to file: ts_console.log
In directory: /home/ubuntu/serve/test | Executing command: torchserve --start --model-store=model_store --ncs >> ts_console.log
Successfully started TorchServe
sh: 1: newman: not found
Stopping TorchServe
In directory: /home/ubuntu/serve/test | Executing command: torchserve --stop
TorchServe has stopped.
Successfully stopped TorchServe
Newman API Tests Failed !