mirror of
https://github.com/run-llama/llama_deploy.git
synced 2026-08-24 21:01:26 -04:00
[PR #503] [MERGED] feat!: improve local source manager #505
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/503
Author: @masci
Created: 5/21/2025
Status: ✅ Merged
Merged: 5/22/2025
Merged by: @masci
Base:
main← Head:massi/local-path📝 Commits (7)
f68ff9ffix deployments path management0eaa7f9add a test for local deployments74cd758extract base_pathfad8b4bfix unit testscc12a25give time to serve() to set internal state5332573fix e2e tests1015a26docs📊 Changes
29 files changed (+174 additions, -100 deletions)
View changed files
📝
docs/docs/module_guides/llama_deploy/10_getting_started.md(+4 -3)📝
e2e_tests/apiserver/deployments/deployment2.yml(+3 -3)📝
e2e_tests/apiserver/deployments/deployment_env_local.yml(+3 -3)📝
e2e_tests/apiserver/deployments/deployment_hitl.yml(+2 -2)📝
e2e_tests/apiserver/deployments/deployment_streaming.yml(+2 -2)📝
e2e_tests/apiserver/test_deploy.py(+20 -5)📝
e2e_tests/apiserver/test_env_vars_git.py(+3 -3)📝
e2e_tests/apiserver/test_env_vars_local.py(+3 -3)📝
e2e_tests/apiserver/test_hitl.py(+5 -3)📝
e2e_tests/apiserver/test_reload.py(+10 -4)📝
e2e_tests/apiserver/test_streaming.py(+6 -4)📝
examples/llamacloud/google_drive/README.md(+2 -2)📝
examples/llamacloud/google_drive/deployment.yml(+2 -2)📝
examples/quick_start/README.md(+2 -2)📝
examples/quick_start/quick_start.yml(+2 -2)📝
llama_deploy/apiserver/deployment.py(+40 -19)📝
llama_deploy/apiserver/deployment_config_parser.py(+0 -3)📝
llama_deploy/apiserver/routers/deployments.py(+2 -1)📝
llama_deploy/apiserver/server.py(+5 -3)📝
llama_deploy/apiserver/source_managers/base.py(+3 -1)...and 9 more files
📄 Description
There was a bit of confusion in the way local sources for a deployment are supposed to work, hopefully this should improve clarity. A few changes were made:
base_pathfrom the deployment configuration. That's the path that's supposed to tell where the config file is, it doesn't make sense to keep it in the config file itself.base_pathexplicitly to the Deployment interface. Since a deployment configuration can be requested over the wire with no config file, in that case it's the user responsibility to define itroot_pathtodeployment_pathin theDeploymentapi. This should help clarify thatdeployment_pathis where the workflows code is copied at deploy time.Deploymentclass are breaking and this reflects on the Python client.base_pathwhenever possible.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.