mirror of
https://github.com/run-llama/llama_deploy.git
synced 2026-08-24 21:01:26 -04:00
[PR #316] [MERGED] CI: migrate end-to-end tests to pytest #388
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/run-llama/llama_deploy/pull/316
Author: @masci
Created: 10/14/2024
Status: ✅ Merged
Merged: 10/14/2024
Merged by: @masci
Base:
main← Head:massi/e2e-pytest📝 Commits (4)
d891d09migrate tests to pytest7fc48e2migrate tests to pytest59c86baadd pytest markers94c9987use pytest in the CI📊 Changes
16 files changed (+156 additions, -187 deletions)
View changed files
📝
.github/workflows/e2e_test.yml(+7 -7)➕
e2e_tests/__init__.py(+0 -0)➕
e2e_tests/basic_streaming/__init__.py(+0 -0)➕
e2e_tests/basic_streaming/conftest.py(+55 -0)➖
e2e_tests/basic_streaming/launch_core.py(+0 -14)➖
e2e_tests/basic_streaming/run.sh(+0 -25)📝
e2e_tests/basic_streaming/test_run_client.py(+15 -20)📝
e2e_tests/basic_streaming/workflow.py(+1 -30)➕
e2e_tests/basic_workflow/__init__.py(+0 -0)➕
e2e_tests/basic_workflow/conftest.py(+55 -0)➖
e2e_tests/basic_workflow/launch_core.py(+0 -14)➖
e2e_tests/basic_workflow/launch_workflow.py(+0 -40)➖
e2e_tests/basic_workflow/run.sh(+0 -25)📝
e2e_tests/basic_workflow/test_run_client.py(+7 -12)➕
e2e_tests/basic_workflow/workflow.py(+11 -0)📝
pyproject.toml(+5 -0)📄 Description
end-to-end tests are very handy to debug the code, but the bash logic doesn't play well with subshells (like poetry virtualenvs) and in case of errors I was left with orphan processes holding up the TCP ports needed by the core components. Leaving the core processes running forever doesn't help either, because when you change the workflow code the core components need to be rebooted.
This PR:
multiprocessto replicate the old logic of running different components in different processes.e2ethat can be used to select-deselect tests (pytest -m"not e2e") for example.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.