Skip to content

S3Loader: endpoint_url for S3-compatible stores + real MinIO tests — #829/#851 - #852

Merged
AmitoVrito merged 2 commits into
mainfrom
feat/issue-829-testcontainers-loaders-s3
Jul 21, 2026
Merged

AmitoVrito merged 2 commits into
mainfrom
feat/issue-829-testcontainers-loaders-s3

Conversation

@AmitoVrito

Copy link
Copy Markdown
Collaborator

Summary

S3Loader (src/synapsekit/loaders/s3.py) had no endpoint_url parameter, 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)

  • Add an optional endpoint_url: str | None = None parameter.
  • When set, pass it to the boto3 client and enable path-style addressing (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, sync load(), async contract. Runs in the CI integration job.

Part of epic #829.

AmitoVrito and others added 2 commits July 22, 2026 00:47
…_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]>
@AmitoVrito
AmitoVrito merged commit d3583bb into main Jul 21, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant