mirror of
https://github.com/run-llama/llama_deploy.git
synced 2026-08-24 21:01:26 -04:00
[PR #450] [MERGED] refact: support absolute paths in local source manager #471
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/450
Author: @masci
Created: 2/6/2025
Status: ✅ Merged
Merged: 2/7/2025
Merged by: @masci
Base:
main← Head:massi/source_manager_refact📝 Commits (3)
e755f4drefact: support absolute paths in local source managerdedbd9eremove workaround from tests now that local source works ok7a712b6add unit tests for absolute paths📊 Changes
11 files changed (+117 additions, -34 deletions)
View changed files
📝
e2e_tests/apiserver/rc/deployment.yml(+1 -1)📝
llama_deploy/apiserver/deployment.py(+5 -5)📝
llama_deploy/apiserver/deployment_config_parser.py(+2 -1)📝
llama_deploy/apiserver/source_managers/__init__.py(+2 -16)➕
llama_deploy/apiserver/source_managers/base.py(+20 -0)📝
llama_deploy/apiserver/source_managers/git.py(+3 -1)📝
llama_deploy/apiserver/source_managers/local.py(+6 -3)➕
tests/apiserver/data/local.yaml(+13 -0)📝
tests/apiserver/source_managers/test_git.py(+13 -6)➕
tests/apiserver/source_managers/test_local.py(+51 -0)📝
tests/apiserver/test_deployment.py(+1 -1)📄 Description
This PR introduced the concept that the path for a service with a local source is relative to the deployment file. For example, if you have a deployment file
/foo/bar/deployment.ymlcontaining the following:the local source manager will look for
srcin/foo/bar/src.This change required a refactoring of the source managers:
DeploymentConfiginstance in the constructor, hence the protocol was changed into an abstract classbase_paththat's automatically populated whenfrom_yamlis used.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.