-
Notifications
You must be signed in to change notification settings - Fork 14
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
Replace localstack with minio #491
Conversation
adac8d1
to
f9cb466
Compare
One issue I found is that, if the .env.example is modified, then the integration tests should also be run, just in case the env vars are no longer valid. I can make a follow up PR to amend that. Also, I didn't notice a clear indication that the .env would be generated from the .env.example and used within the docker-compose. If such indication is indeed present, could anyone please point me to it? @agpituk maybe? Thanks in advance. |
cf607fc
to
0ee0acd
Compare
Not sure if it is in the documentation, but you can find it in the Makefile:
|
lumigator/python/mzai/backend/backend/tests/integration/api/routes/test_api_workflows.py
Outdated
Show resolved
Hide resolved
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.
Thanks a lot for the PR @javiermtorres, I think this is great! I tested this and it runs for me (I had a few issues at first, mostly due to old env vars being present and the .env
/.env.example
thing going on, but afterwards things just ran fine). Accessing all persisted data via Web UI is very cool too :-)
Can I ask you to please go through our sources and look for 4566
and localstack
too? I think there are few other spots we might need to update contextually to this change such as:
.env
- documentation (README.md, installation.md, dev.md, etc)
re: conftest.py
, I see we are still using localstack. Do you see the need to move tests to minio too? IMHO it is not something urgent, but testing on the same stack we are running makes a bit more sense (and reduces the amount of dependencies + lumigator's fingerprint)
@aittalam thanks for trying out the PR and checking that it works :) I'll address the concerns first thing on Monday. Once that other PR is in place, we'll remove any dependency on localstack in source and tests. |
That's great @javiermtorres , many thanks! |
379954d
to
4bcf822
Compare
ef2295b
to
02c7ffc
Compare
Leaving the notes on minio persistence here for a future issue, since the original comment is resolved. |
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.
LGTM, thank you!
I saw the branch got out-to-date wrt main, I pre-approve this so you'll be able to land this after merging from main.
Thanks a lot @aittalam :) |
Replace localstack with minio The S3 support is now provided by minio instead of localstack. The .env.example has been changed accordingly. All functionality provided by localstack should still be available.
What's changing
The localstack service is replaced with minio for local deployments.
Closes #487
How to test it
Start lumigator (e.g. using
make local-up
) and check that minio starts instead of localstack.All automated tests should work as usual.
NOTE:
.env
file will need to be recreated based on the.env.example
(or see.env.example
for examples of environment variables that must be configured). This is because some defaults have changed.Additional notes for reviewers
N/A
I already...
/docs
)