jina-ai / executors

internal-only
Apache License 2.0
31 stars 12 forks source link

Refactoring #84

Closed tadejsv closed 3 years ago

tadejsv commented 3 years ago

We need to make sure that all the executors in this repo are rigorously tested, and that the code meets high standards of quality. Here are some things that need to be done:


Here is a checklist based on the discussion below

Integration tests

Unit tests

Dockerfile

config.yml

README

Function APIs

Model downloading


[Discussions in Details]

Testing

Unit tests

On top of the general things mentioned above, unit tests should contain:

Some standards

Downloading (large) models

Unless the framework used by the executor uses some convenient option to download the model (like huggingface), the executor should not download any kind of default model. Not during init, not in the dockerfile.

Instead, if the executor is started and the model file does not exist, a very clear error message should be given to the user, explaining to him that he needs to download the model beforehand, and pointing him to the readme (link!) for further instructions.

The readme should contain explicit, clear and copy-pastable instructions on how to download the model (file), plus instructions on what to do if using executor locally (jinahub://), or in a container (jinahub+docker://).

To do

On hold:

CatStark commented 3 years ago

Reopened because only CI part is finished

bwanglzu commented 3 years ago

audio encoders: https://github.com/jina-ai/executors/pull/223 https://github.com/jina-ai/executors/pull/224

nan-wang commented 3 years ago

FYI, I've added a checklist for this refactoring. Check out the issue description.

CatStark commented 3 years ago

Closing this and we will have a new one for the Indexers and searchers when the one indexer is ready