Skip to content

Comments

Тесты для embedding-service#203

Merged
taaylor merged 4 commits intomainfrom
feature/tests-embedding-service
Aug 3, 2025
Merged

Тесты для embedding-service#203
taaylor merged 4 commits intomainfrom
feature/tests-embedding-service

Conversation

@Kirill67tyar
Copy link
Collaborator

Прогон тестов добавил в main.yml для CI пайплайна, надеюсь всё нормально (переживаю)

Copy link
Owner

@taaylor taaylor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Спасибо, очень круто все покрыл. Красота!



class EmbeddingApi(BaseModel):
host: str = "embedding-service"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[докапываюсь] localhost

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Там из .env просто не читает почему то, и я так бахнул) Попытаюсь пофиксить


response = sock.recv(1024).decode()
code = response.split(" ")[1]
if code == "200":
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[придирка] захардкоржено (статус код), правда я не помню как в других тестах выглядит этот момент. Если там также то можно оставить

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Также, я просто копировал, и немного изменил в другом месте. Вроде это из-за того что в socket статус код отдаётся как str в не int


FROM python:${PYTHON_VERSION}-slim

# ! -=-=-=-=- моя секция -=-=-=-=-
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Убрать коммент

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Мне кажется задачу этого файла в принципе выполняет хелсчек.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Да вроде даже нет, потому что он сразу падал почему то, т.е. не работал как хелсчек. Думаю можно убрать его

@taaylor taaylor merged commit 76326f5 into main Aug 3, 2025
5 checks passed


def backoff(
exception: tuple[Type[Exception], ...],
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Использовать backoff из библиотеки

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants