-
-
Notifications
You must be signed in to change notification settings - Fork 220
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
Support for pmtiles S3 urls #1477
base: main
Are you sure you want to change the base?
Conversation
This seems to be almost ready! The biggest challenge is ... sadly... how to test it? I wonder if we should set up some public s3 bucket with some small dummy pmtiles and use it in all the testing? @birkskyum @louwers any thoughts on where we can place it? P.S. please rebase |
https://pmtilestest.s3.eu-central-1.amazonaws.com/cb_2018_us_zcta510_500k.pmtiles This is in a MapLibre owned bucket. |
@louwers why is a public readonly s3 bucket with only a small downloadable is a bad idea? Seems like it would be no different than exposing that same bucket with the http interface, and it would let us test s3 API |
@nyurik I misunderstood and removed my earlier comment, I thought we need a S3 bucket for various kinds of test assets. Please use the link I provided! :) |
@louwers we do want to upload a bunch of test assets to an s3 bucket (by an admin), but that bucket would be used as a readonly source when running CI tests |
@louwers the link you posted above - do you have a full |
That would be |
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.
few nits about formatting in the docs
4b5196d
to
5a18b12
Compare
I migrated to using pmtiles aws-s3-async feature, which uses aws-sdk-s3 and aws-config libraries. Edit: also added tests for the S3 backed based on your suggestions |
The testcase for You likely need the same environment variables here: martin/.github/workflows/grcov.yml Line 62 in 321af56
|
# Conflicts: # Cargo.lock # martin/src/pmtiles/mod.rs # martin/tests/pmt_server_test.rs
Seems that even after adressing 94f8d43, there is one other issue that prevents this being merged. I or @alamminsalo will need to investigate where this dying is coming from. |
Added support for s3-urls to config.
This is a bit of a rough sketch currently.
The aws config struct does not seem to support sso-login credentials out of the box, I needed to add the credentials to environment variables along with AWS_REGION to get it working.