-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
e2e test added #134
e2e test added #134
Conversation
@@ -39,6 +39,12 @@ test-ingest: | |||
poetry run pytest ingest/tests --cov=ingest -v --cov-report=term-missing --cov-fail-under=40 | |||
|
|||
test-django: | |||
docker compose up -d db --wait db |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
duplicated db
statement
data=reformatted_embeddings, | ||
embedding_id=str(uuid4()), | ||
model=model, | ||
model_info=self.get_model_info(model), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we need this model
property if we're also giving back themodel_info
that includes the model name as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can leave it in by all means if you think it would be useful by consuming functions, just spitballing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lmwilki will explain! (i think this is a standard way of representing the response)
ba6af26
to
f635e35
Compare
…ssing-from-core-api-to-elastic-4
Context
As an Engineer I want an e2e test to know that a change i have made in one service has not adversely affected another.
Changes proposed in this pull request
embed_sentences
has been moved inmodel_db.py
Note: Whilst trying to remove all the hardcoded model names I have identified a problem whereby the docker image always preloads the default
paraphrase-albert-small-v2
so any attempt to use a smaller model actually makes this worse by adding another, albeit smaller, model. I have removed the smaller model until we find a way to resolve this.It is not possible to run this test in CI at this time as the disk runs out of space.
Guidance to review
Relevant links
https://technologyprogramme.atlassian.net/browse/REDBOX-44
Things to check