-
Notifications
You must be signed in to change notification settings - Fork 25
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
Tbox 73 cloud transfer #92
Conversation
Hi we had a docs bug that was blocking the tests from passing, can you merge in develop to your PR. It will allow the tests to pass. Thanks! |
@jun-dao What would you recommend for testing google & AWS uploading/downloading? Thank you. |
hi any progress on trying to do testing? Can I help in any way? |
For now, I'm just looking into the boto3 and botocore libraries. Im not sure whether to try and use |
c1e7bca
to
1cc0795
Compare
1cc0795
to
cb2f7ea
Compare
@ycharm Im getting an issue with asserting that a temp file is a tarfile. Any recommendations for getting around this? |
|
@ycharm I'm realizing that the test would not work through trying to unit test mock it. The mock does not return anything so asserting is impossible on an empty temp file. I've still been unable to find any alternative default credentials or mocking for GCP, but have an idea for testing. testing tarring could be done by adding an optional return to the cloud_upload function (returns file about to be uploaded). |
@DIvkov575 I don't see anything in our guidelines that suggests we shouldn't have the optional return. Especially if you need it for testing. @clint-richardson check out the question please. |
Co-authored-by: skalish <39866163+skalish@users.noreply.github.com>
Co-authored-by: skalish <39866163+skalish@users.noreply.github.com>
Co-authored-by: skalish <39866163+skalish@users.noreply.github.com>
Co-authored-by: skalish <39866163+skalish@users.noreply.github.com>
Co-authored-by: skalish <39866163+skalish@users.noreply.github.com>
Co-authored-by: skalish <39866163+skalish@users.noreply.github.com>
Co-authored-by: skalish <39866163+skalish@users.noreply.github.com>
Co-authored-by: skalish <39866163+skalish@users.noreply.github.com>
Co-authored-by: skalish <39866163+skalish@users.noreply.github.com>
@skalish are there any other changes that I should make? |
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.
There are a couple of dependency definitions to be taken care of. The testing should also be reworked to be a bit cleaner and more complete. I think those will be the last needed changes. Let me know if I can help at all.
Co-authored-by: skalish <39866163+skalish@users.noreply.github.com>
Co-authored-by: skalish <39866163+skalish@users.noreply.github.com>
Co-authored-by: skalish <39866163+skalish@users.noreply.github.com>
Co-authored-by: skalish <39866163+skalish@users.noreply.github.com>
Co-authored-by: skalish <39866163+skalish@users.noreply.github.com>
Co-authored-by: skalish <39866163+skalish@users.noreply.github.com>
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.
After you resolve the one accidental import removal, this is good to go. I also asked a question about the need for the google
package. If you can follow-up on that it would be nice to confirm whether it is necessary, but that isn't absolutely needed. I'll approve as soon as I can once these last changes are made.
I think that the google import / install is necessary because inorder to use the google-cloud-storage client you need to import it with |
We shouldn't spend more time digging in on the Let me know if you'd like me to click to merge this in for you when you're ready. |
@skalish yes, could you merge this. I don't have a merge button. |
↪️ Pull Request
✔️ PR Todo
main()
function in your scripts