Repository navigation
S3Loader: endpoint_url for S3-compatible stores + real MinIO tests — #829/#851 - #852
Merged
Merged
Conversation
…_url (#851) S3Loader could only reach real AWS S3 — no endpoint_url — so MinIO, Cloudflare R2, DigitalOcean Spaces, and LocalStack were unusable (and it couldn't be tested without live AWS). Add an optional endpoint_url parameter and enable path-style addressing when it's set. Additive and non-breaking. Adds real MinIO testcontainers tests (list/download/extract, prefix + extension filters, max_files, sync load, async contract). Part of #829. Closes #851. Co-authored-by: Dhruv Garg <[email protected]>
Closed
18 of 19 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
S3Loader(src/synapsekit/loaders/s3.py) had noendpoint_urlparameter, so it could only talk to real AWS S3 — not S3-compatible stores (MinIO, Cloudflare R2, DigitalOcean Spaces, LocalStack). This also made it untestable without live AWS. Found while adding real testcontainers loader coverage (epic #829).Change (additive, non-breaking)
endpoint_url: str | None = Noneparameter.Config(s3={"addressing_style": "path"})), which S3-compatible endpoints addressed by host:port require.Test
Real MinIO (
minio/minio) testcontainer: list + download + text extraction into Documents, prefix filter, extension filter, max_files, syncload(), async contract. Runs in the CIintegrationjob.Part of epic #829.