Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

test scripts failing after native windows code merge #797

@chauhang

Description

@chauhang

The development install and tests scripts are broken after the recent Native windows PR code merge changes.

Following are not working:

  1. Install from source on fresh machine (Install from source not working #796)
  2. Test script for model archiver
  3. Test script for TorchServe
  4. Test script for sanity tests
  5. 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-archiver

Started 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 items

model_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/serve

TorchServe 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/serve

TorchServe 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 !

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions