build(dev): replace LocalStack with moto for local S3 emulation - #859
Open
bencap wants to merge 1 commit into
Open
build(dev): replace LocalStack with moto for local S3 emulation#859bencap wants to merge 1 commit into
bencap wants to merge 1 commit into
Conversation
LocalStack archived its Community edition in March 2026 and moved S3 behind a paid token, so `docker compose up` fails with auth errors for anyone pulling the current image. Swap in moto (Apache-2.0), which is built for boto3 and runs the CSV upload/download flow with an unmodified client -- no path-style or expect-100-continue workarounds, unlike Adobe S3Mock (Java-SDK-first). moto has no auto-create, so a one-shot curl container PUTs the upload bucket once moto is up; this removes the awslocal-based init script. The app reaches moto at moto:5000 internally; the host port is 5001 to avoid the macOS AirPlay Receiver on 5000. Refs #768
Coverage Report for CI Build 33022288160Coverage decreased (-0.2%) to 88.841%Details
Uncovered ChangesNo uncovered changes found. Coverage Regressions25 previously-covered lines in 4 files lost coverage.
Coverage Stats
💛 - Coveralls |
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
Replaces LocalStack with moto for local S3 emulation. LocalStack archived its Community edition in March 2026 and moved S3 behind a paid token, so
docker compose upfails with auth errors for anyone pulling the current image.Why moto (not S3Mock or Floci)
PutObjectfails against it (tested 4.6.0 and 5.2.0) because its expect-100-continue handshake drops the connection. It would require path-style + Expect workarounds in our shareds3_client()— which also serves production.Changes
docker-compose-dev.yml:localstack→moto+ one-shotmoto-init(curlimages/curl) that PUTs the upload bucket once moto is up.bin/localstack-init.sh(and theawslocaldependency).settings/.env.template:S3_ENDPOINT_URL=http://moto:5000.5001:5000.