serve icon indicating copy to clipboard operation
serve copied to clipboard

Regression test suite cannot be run multiple times consecutively in local installs

Open balachandrafb opened this issue 6 years ago • 2 comments

Fails on model registration tests as the mar already exists in the model store. So, we can either

  1. Have instructions to restart the torchserve in a new model_store folder if running collection from PostMan client.
  2. Rename the mar file downloaded with a timestamp so it doesn't clash with currently existing file when model registration API is invoked

balachandrafb avatar May 24 '20 22:05 balachandrafb

@balachandrafb I was not able to reproduce the error described in the issue , however the consecutive runs had failures for management collection only with error "Connection refused on port 8081" on curl command "curl http://127.0.0.1:8081/models" for management collection which was due to stale snapshot of previous run, as TS was started using stale snapshot the inference address port was 8443 and management 8444 respectively .

This has been recitified and tested on ec2 instance. PR398
remedy : cleanup of snapshot and modelstore after https_test_collection

following are other issues observed and addressed .

  • server logs(/tmp/ts.log) used to have partial execution logs of only last executed collection. In case of successful run it only had logs of "https_test_collection.json" execution.

  • text execution logs (/tmp/test_exec.log) had stale logs of previous runs as well current logs.now only most recent run logs will be available .

shivamshriwas avatar May 25 '20 14:05 shivamshriwas

@shivamshriwas If modelstore is cleaned up, you won't see this error. This was one of the suggested fixes that was documented in the original report. Please feel free to close this as a duplicate of PR398

balachandrafb avatar May 25 '20 16:05 balachandrafb