-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CI testing for s3 reads from public buckets on 1.0.x - DO NOT MERGE #34793
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
Conversation
@jorisvandenbossche this works for me locally. If you can have a look at the failures in Travis and let me know if we're confident that #34626 is fixed on 1.0.x |
Does the test run on one of the azure builds as well? |
cc @TomAugspurger do you have any experience with this? On travis, the S3 public bucket reading is failing with boto / permission errors. I checked out the 1.0.x branch locally, and can confirm it is working locally. |
Not sure. I notice that the two jobs with failing moto / boto issues have moto==1.3.7. https://travis-ci.org/github/pandas-dev/pandas/jobs/698478225#L1128 has 1.3.14. Perhaps we failed to backport a dependency update? |
But moto shouldn't be used for that test? (unless that is done automatically?) |
Ah I missed that this was for the public bucket. You're correct, I think moto shouldn't be involed here.. |
When you're testing locally, do you run the whole file or just the single test? s3fs does cache things, including the S3FSFileSystem constructor, which might cause this. |
i'll create a failing test to make sure |
I just ran |
But running it with |
if we get the tests passing, does pandas have an amazon account where we can place a test file in a public bucket? |
hmm travis didn't run.
on 3 azure builds, will revert the fail shortly |
This reverts commit c7be2cd.
OK, if it thus was passing on azure, I think we can be confident enough for the 1.0.5 release that this is properly working. And can then figure out the travis failure later when we fix this in master |
OK closing |
We could also already merge it (but then in the master branch), with an xfail, if you want |
i'm not sure about the ethics of using someones public bucket for testing |
Ref my comment here: #34626 (comment) I couldn’t get a test for public buckets working using moto. I propose we use an Amazon Open Data public s3 bucket to test https://aws.amazon.com/opendata/public-datasets/ We can use the tm.network decorator? Would be helpful to catch future regressions - especially since we are moving to fsspec. Thoughts @jorisvandenbossche @simonjayhawkins I can open a PR. |
Using an existing public s3 bucket seems fine for this (we should just find a small dataset). |
xref #34626