Skip to content

gdrive: add workaround for downloading empty files #4287

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

Merged
merged 2 commits into from
Jul 28, 2020
Merged

gdrive: add workaround for downloading empty files #4287

merged 2 commits into from
Jul 28, 2020

Conversation

efiop
Copy link
Contributor

@efiop efiop commented Jul 26, 2020

Better to solve it on PyDrive's side:
#4286

Fixes #4286

Thank you for the contribution - we'll try to review it as soon as possible. 🙏

efiop added 2 commits July 27, 2020 00:08
Better to solve it on PyDrive's side:
#4286

Fixes #4286
```
pylint...................................................................Failed
- hook id: pylint
- exit code: 2

Registered custom plugin. Some checks will be disabled for tests.
************* Module dvc.command.experiments
dvc/command/experiments.py:14:4: E0401: Unable to import 'flatten_json'
(import-error)
dvc/command/experiments.py:39:4: E0401: Unable to import 'flatten_json'
(import-error)

-----------------------------------
Your code has been rated at 9.99/10

Registered custom plugin. Some checks will be disabled for tests.
************* Module dvc.utils.diff
dvc/utils/diff.py:38:8: E0401: Unable to import 'flatten_json'
(import-error)
************* Module dvc.command.metrics
dvc/command/metrics.py:17:4: E0401: Unable to import 'flatten_json'
(import-error)

-----------------------------------
```
@codecov
Copy link

codecov bot commented Jul 26, 2020

Codecov Report

Merging #4287 into master will increase coverage by 0.00%.
The diff coverage is 96.42%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4287   +/-   ##
=======================================
  Coverage   91.72%   91.72%           
=======================================
  Files         173      173           
  Lines       11745    11762   +17     
=======================================
+ Hits        10773    10789   +16     
- Misses        972      973    +1     
Impacted Files Coverage Δ
dvc/tree/gdrive.py 81.75% <80.00%> (-0.10%) ⬇️
dvc/ignore.py 95.10% <100.00%> (+0.48%) ⬆️

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 fe9ae2c...edddcdb. Read the comment docs.

@efiop efiop changed the title [WIP] gdrive: add workaround for downloading empty files gdrive: add workaround for downloading empty files Jul 28, 2020
@efiop
Copy link
Contributor Author

efiop commented Jul 28, 2020

User confirmed this working, so in the interest of time I'll merge and release this workaround and will properly handle upload and download in iterative/PyDrive2#48

@efiop efiop merged commit 5d1c1c4 into master Jul 28, 2020
@delete-merged-branch delete-merged-branch bot deleted the fix-4286 branch July 28, 2020 22:25
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.

gdrive: failed to pull empty file
1 participant