Skip to content
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

Set mtime of S3 downloaded object when file is closed #1102

Merged
merged 1 commit into from
Jan 17, 2015

Conversation

jamesls
Copy link
Member

@jamesls jamesls commented Jan 17, 2015

This is the original patch from @kirat-singh, but the forked
repo is no longer available.

I've added a unit test for this that shows that the mtime modification
is tied to the execution of an IOCloseRequest instead of the enqueuing
of the IOCloseRequest.

Fixes #1072
Closes #994

cc @kyleknap @danielgtaylor

This is the original patch from @kirat-singh, but the forked
repo is no longer available.

I've added a unit test for this that shows that the mtime modification
is tied to the execution of an IOCloseRequest instead of the enqueuing
of the IOCloseRequest.

Fixes aws#1072
Closes aws#994
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) when pulling 0f2b750 on jamesls:fix-s3-download-mtime into 6c88da2 on aws:develop.

@jamesls
Copy link
Member Author

jamesls commented Jan 17, 2015

Not sure what's going on with coveralls. The only branch I added that could have decreased coverage definitely has test coverage. From coverage.py directly:

$ coverage report -m awscli/customizations/s3/executor.py
Name                                Stmts   Miss Branch BrMiss  Cover   Missing
-------------------------------------------------------------------------------
awscli/customizations/s3/executor     213      6     62      5    96%   211-212, 279-283

Note lines 179-181 are covered.

Feel free to review and let me know if you can see anything I've missed for tests.

@kyleknap
Copy link
Contributor

LGTM 🚢

@jamesls jamesls merged commit 0f2b750 into aws:develop Jan 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

S3 sync bug in setting modified time on multi-part downloads
3 participants