Skip to content

Conversation

@iquintero
Copy link
Contributor

If the S3 training location is passed as
s3://my_bucket/training/ (with a trailing slash) Then the objects
would have incorrect filenames locally and the container would not find
them. This fixes this bug.

Issue #, if available:

Description of changes:

Merge Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works (if appropriate)
  • I have updated the changelog with a description of my changes (if appropriate)
  • I have updated any necessary documentation (if appropriate)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

If the S3 training location is passed as
s3://my_bucket/training/ (with a trailing slash) Then the objects
would have incorrect filenames locally and the container would not find
them. This fixes this bug.
@iquintero iquintero requested a review from mvsusp May 31, 2018 23:19
@codecov-io
Copy link

codecov-io commented May 31, 2018

Codecov Report

Merging #208 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #208      +/-   ##
==========================================
+ Coverage   91.46%   91.47%   +<.01%     
==========================================
  Files          45       45              
  Lines        3165     3166       +1     
==========================================
+ Hits         2895     2896       +1     
  Misses        270      270
Impacted Files Coverage Δ
src/sagemaker/local/image.py 85.53% <100%> (+0.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e9ed907...09789e6. Read the comment docs.

mvsusp
mvsusp previously approved these changes May 31, 2018
obj_mock.download_file.assert_has_calls(calls)
obj_mock.reset_mock()

sagemaker_container._download_folder(BUCKET_NAME, '/prefix/', '/tmp')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: either parametrize these 2 test cases or add a comment about the difference between then.

@iquintero iquintero merged commit c72121b into aws:master Jun 14, 2018
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.

4 participants