-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix local mode not using the right s3 bucket. #144
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
Local Mode should honor the inputs instead of wrongly assuming that everyone is using the default bucket.
Codecov Report
@@ Coverage Diff @@
## master #144 +/- ##
=========================================
+ Coverage 90.27% 90.48% +0.2%
=========================================
Files 36 36
Lines 2438 2438
=========================================
+ Hits 2201 2206 +5
+ Misses 237 232 -5
Continue to review full report at Codecov.
|
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.
As we discussed - can you add unit test(s) so we don't decrease coverage?
tests/unit/test_image.py
Outdated
s3_uri = channel['DataSource']['S3DataSource']['S3Uri'] | ||
if 's3://' in s3_uri: | ||
bucket, prefix = s3_uri.replace('s3://', '').split('/') | ||
download_folder_calls.append(call(bucket, prefix, ANY)) |
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.
Instead of ANY for the channel_dir param - is there a clean way to verify the right argument is being passed?
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.
Also, I'd recommend just hard coding the expect result rather than using this for loop.
Also added the changelog entry
Amazing! Ya'll know when this will be released in stable? |
Updated: README to include video games, TensorFlow BYOM, and basic setup
Description of changes:
Local Mode should honor the inputs instead of wrongly assuming that
everyone is using the default bucket. Fixes #137 #145
Merge Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.