-
Notifications
You must be signed in to change notification settings - Fork 165
doc(BA-3798): Update VFolder Destination Support for Artifact Import #7864
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
Conversation
16cfa69 to
11d8d9b
Compare
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.
Pull request overview
This PR updates the BEP-1020 proposal document to refine the architecture for VFolder destination support in artifact imports. The changes improve the design by introducing a more flexible StorageTarget wrapper class and renaming VFolderStorage to the more accurate VolumeStorageAdapter.
Key changes:
- Simplified API changes documentation by removing the detailed GraphQL mutation example
- Introduced
StorageTargetclass to wrap storage references (string names or storage instances) - Renamed
VFolderStoragetoVolumeStorageAdapterfor better clarity
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
fregataa
left a comment
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.
Is this a short-term plan or an ultimate refactoring plan for the import pipeline?
I will implement this within the current sprint through two or three PRs. |
proposals/BEP-1020-vfolder-destination-support-for-artifact-import.md
Outdated
Show resolved
Hide resolved
| async def stream_upload(self, filepath: str, data_stream: StreamReader) -> None: | ||
| # Delegates to volume.add_file() | ||
| ... | ||
|
|
||
| async def stream_download(self, filepath: str) -> StreamReader: | ||
| # Delegates to volume.read_file() | ||
| ... | ||
|
|
||
| async def delete_file(self, filepath: str) -> None: | ||
| # Delegates to volume.delete_files() | ||
| ... | ||
|
|
||
| async def get_file_info(self, filepath: str) -> VFSFileMetaResponse: | ||
| # Uses volume.sanitize_vfpath() + aiofiles.os.stat() | ||
| ... |
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.
Are they abstract methods from AbstractStorage?
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.
Yes
resolves #7863 (BA-3798)
Checklist: (if applicable)
ai.backend.testdocsdirectory