feat: implement retry logic and exponential backoff for S3 operations (#829)

* feat: implement retry logic and exponential backoff for S3 operations

* test: fix librarian mocks after BlobStore async conversion
This commit is contained in:
Het Patel 2026-04-18 16:35:19 +05:30 committed by GitHub
parent b341bf5ea1
commit 9a1b2463b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 179 additions and 21 deletions

View file

@ -22,6 +22,10 @@ def _make_librarian(min_chunk_size=1):
"""Create a Librarian with mocked blob_store and table_store."""
lib = Librarian.__new__(Librarian)
lib.blob_store = MagicMock()
lib.blob_store.create_multipart_upload = AsyncMock()
lib.blob_store.upload_part = AsyncMock()
lib.blob_store.complete_multipart_upload = AsyncMock()
lib.blob_store.abort_multipart_upload = AsyncMock()
lib.table_store = AsyncMock()
lib.load_document = AsyncMock()
lib.min_chunk_size = min_chunk_size