-
Notifications
You must be signed in to change notification settings - Fork 71
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
Fix the bug that can not remove the file on aws #124
Conversation
Hello and thanks for the contribution! Seems good so far, could you update the test https://github.com/thumbor-community/aws/blob/master/vows/storage_vows.py#L92 accordingly? |
hey @Bladrak, I've do some changes to CanRemoveImage, please take a look :) |
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.
Beside that seems good!
setup.py
Outdated
@@ -57,6 +57,7 @@ def readme(): | |||
install_requires=[ | |||
'python-dateutil', | |||
'thumbor>=6.0.0,<7', | |||
'botocore==1.5.70', |
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.
We can't fix the versions in here, we need to be compatible. What was the error you encountered?
hi @Bladrak , I'm tring to fix the broken test cases. After checking broken console log in the former commit. I did some changes in the latest commit. Add botocore==1.5.70 into install_requires. moto==1.3.3 to extras_require. The reason why I do this, is because some broken tese cases shows as follow:
And i checked the tornado_botocore code. And for the moto==1.3.3, I found that in my local environment, after use the latest moto-1.3.5, it will shows
On Stackoverflow, someone suggested that upgrades you botocore's version to latest. But I can't, so i Now all the test cases passed. Not sure whether there is a better solution. If you have good idea, tell me, |
Ok, for the first issue, I think we should rather submit a PR on tornado_botocore to update the code to remove the verify call (given it's only for the logger). |
Hi @Bladrak, I am afraid the following error is not related to region settings:
See issue here: getmoto/moto#1767 Cheers, |
@Bladrak , I changed the botocore==1.5.70 to extras_requires, now this package installed only influences the CI environment. And I found that, comment the log.debug in tornado_botocore will still be failed in another method(), shows Thanks :D |
@Bladrak , I've change the setup.py back, Now the code should be safe to be merged. Test cases are broken is because of the compatible issue between latest tornado_botocore and botocore. Not only my branch, the master code also will get broken CI status. I've raised a Issue nanvel/tornado-botocore#18 for this bug, Hope someone will help to fix it. Do you think everything is ok to merge to master ? :p |
Thanks @Tideorz I'll take a look at the tests. Won't be able to release it to pypi now though, I'll need to fix the tests first as the release is automated :) |
@Tideorz I've set the versions constraints while we wait for the issue nanvel/tornado-botocore#18 to be fixed (as you said, it seems tornado botocore is not compatible with the latest botocore versions, and moto require the most recent versions of botocore to work, so we'll have to wait before removing those constraints). If you can rebase your PR (and maybe squash it as well) to ensure your tests pass, we shall be able to merge it then :-) |
hey @Bladrak , I've rebased my PR and squashed the commits. Now test passed. :-) |
Thanks for the contribution @Tideorz :) |
This fix is used to fix the Issue #123 , which I found that you can't delete the file when using delete api. As the remove() without decorator @return_future, and it will never be executed.
My test environment:
Python 2.7.13
You can easily test by using localstack.
create a 'test' bucket on localstack.
change thumbor.conf using localstack s3.
TC_AWS_ENDPOINT='http://localhost:4572'
Upload and image to 'test' bucket and then delete.