boto3 appears to be out of sync with moto; pin boto3 to earlier version#4276
Conversation
Also revealed multi-file write bug, now fixed
|
I don't think this test is run normally due to |
|
FWIW, looking at the Travis build history and comparing the last build to pass with the first build to fail from the
|
|
@jrbourbeau : I've tried a few combinations now, don't know what the problem is. |
|
Also maybe |
|
That was unexpected... now moto is not mocking at all, hm. |
|
Checking in here. It looks like this is causing CI to fail. Is it sufficient to pin to an older version, or have things broken more fundamentally than that? |
|
Looks like my attempt with |
|
The There's an existing PR in pandas (pandas-dev/pandas#23731) to temporarily set those environment variables during testing (e.g. set |
|
Seems fine to me. I'm generally willing to defer judgement to the pandas devs on most things :) |
|
Seems fine to me. I haven't kept up with the boto issue over on the pandas side. |
|
I switched back to installing This got rid of the |
|
That file does exist: In [1]: import s3fs
In [2]: s3fs.S3FileSystem(anon=True).open('dask-data/nyc-taxi/2015/yellow_tripdata_2015-01.csv')
Out[2]: <S3File dask-data/nyc-taxi/2015/yellow_tripdata_2015-01.csv>I suspect that we're using moto in that test rather than connect to real S3. @martindurant any thoughts on how to address this? |
* Adds a fixture with simulated taxi data * Changes the s3 scope to session
|
I updated the failing test to mock the S3 request. Some potentially controversial things
That |
|
I'm not really sure about the orc failures... @jcrist is there way to write pyarrow tables to ORC files? From the docs it looks like just reading is supported. |
|
Looking more closely at https://travis-ci.org/dask/dask/jobs/468460525#L1735, it seems like the HTTP request is being intercepted by |
|
I was able to reproduce the ORC failure locally with 873c434 fixes it for me locally by using moto's context managers. It seems we were failing to un-mock something previously. |
| pass | ||
| finally: | ||
| m.stop() | ||
| httpretty = pytest.importorskip('httpretty') |
There was a problem hiding this comment.
FYI, this importorskip was redundant since the module is skipped when httpretty isn't available: https://github.com/dask/dask/pull/4276/files#diff-4902633c800b54775a65c28a00366791R14
|
FYI, I'll probably merge this on green, since it's failing master's CI. Happy to do followups if anyone sees things they'd like changed. |
|
Thank you for managing this Tom. My apologies for being absent here.
…On Sun, Dec 16, 2018, 10:10 AM Tom Augspurger ***@***.*** wrote:
Merged #4276 <#4276> into master.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4276 (comment)>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AASszBGvjBHFcUJsMISup-URp96el17yks5u5mKDgaJpZM4ZHQlI>
.
|
|
Not a problem. Thanks to James and Martin as well. This was a team effort
for a small change :)
On Sun, Dec 16, 2018 at 9:16 AM Matthew Rocklin <notifications@github.com>
wrote:
… Thank you for managing this Tom. My apologies for being absent here.
On Sun, Dec 16, 2018, 10:10 AM Tom Augspurger ***@***.***
wrote:
> Merged #4276 <#4276> into master.
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#4276 (comment)>, or mute the
> thread
> <
https://github.com/notifications/unsubscribe-auth/AASszBGvjBHFcUJsMISup-URp96el17yks5u5mKDgaJpZM4ZHQlI
>
> .
>
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#4276 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABQHIp2pNo0CZL8MNjFxaE9uBd1nytZeks5u5mPSgaJpZM4ZHQlI>
.
|
|
Thanks Tom and Martin!! |
Fixes #4273
Also revealed multi-file write bug, now fixed. Why this wasn't apparent before, I don't know - are we sure all the tests actually run?
flake8 dask