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

GDrive: fix freezing on errors by improving granularity of retries #3593

Merged
merged 1 commit into from
Apr 6, 2020

Conversation

shcheklein
Copy link
Member

@shcheklein shcheklein commented Apr 5, 2020

Fixes #3580


  • ❗ I have followed the Contributing to DVC checklist.

  • πŸ“– If this PR requires documentation updates, I have created a separate PR (or issue, at least) in dvc.org and linked it here. If the CLI API is changed, I have updated tab completion scripts.

  • ❌ I will check DeepSource, CodeClimate, and other sanity checks below. (We consider them recommendatory and don't expect everything to be addressed. Please fix things that actually improve code or fix bugs.)

Thank you for the contribution - we'll try to review it as soon as possible. πŸ™

@codecov
Copy link

codecov bot commented Apr 5, 2020

Codecov Report

Merging #3593 into master will decrease coverage by 0.06%.
The diff coverage is 10.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3593      +/-   ##
==========================================
- Coverage   90.96%   90.90%   -0.07%     
==========================================
  Files         143      143              
  Lines        9232     9236       +4     
==========================================
- Hits         8398     8396       -2     
- Misses        834      840       +6     
Impacted Files Coverage Ξ”
dvc/remote/gdrive.py 83.46% <10.00%> (-1.34%) ⬇️
dvc/version.py 83.33% <0.00%> (-2.78%) ⬇️
dvc/updater.py 54.65% <0.00%> (-1.17%) ⬇️

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 6ab06bb...2710d65. Read the comment docs.

dvc/remote/gdrive.py Outdated Show resolved Hide resolved
Copy link
Contributor

@jorgeorpinel jorgeorpinel left a comment

Choose a reason for hiding this comment

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

Yes, it's fast now. Thanks!

I just still think the error message is unnecessarily long, it could be shorter and just tell you what the problem is without having to decipher 3-4 lines of error messages:

ERROR: failed to upload '.dvc\cache\aa\6ed9e0f26a6eba784aae8267df1951'
to 'gdrive://1sNSAH4rmBqq8S7yUwZCx0wDYvFxVjH_b/aa/6ed9e0f26a6eba784aae8267df1951' -
<HttpError 403 when requesting https://www.googleapis.com/drive/v2/files?
supportsAllDrives=true&alt=json returned "Insufficient permissions for the specified parent.">
ERROR: failed to push data to the cloud - 1 files failed to upload

@efiop efiop merged commit ca60c8e into master Apr 6, 2020
@efiop efiop deleted the fix-3580 branch April 6, 2020 07:55
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.

push: freezes for a long time without write access to gdrive remote [qa]
3 participants