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

Refactor some download code for readability + ensure that we checksum resumed downloads #1535

Merged
merged 5 commits into from
Nov 26, 2024

Conversation

yarikoptic
Copy link
Member

@yarikoptic yarikoptic added the minor Increment the minor version when merged label Nov 23, 2024
dandi/download.py Fixed Show resolved Hide resolved
dandi/download.py Fixed Show fixed Hide fixed
Comment on lines +1097 to +1103
# if is_access_denied(exc) or attempt >= 2:
# raise

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
Copy link

codecov bot commented Nov 23, 2024

Codecov Report

Attention: Patch coverage is 38.77551% with 30 lines in your changes missing coverage. Please review.

Project coverage is 88.52%. Comparing base (ff49fd1) to head (7efa0b2).
Report is 9 commits behind head on master.

Files with missing lines Patch % Lines
dandi/download.py 23.07% 30 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1535      +/-   ##
==========================================
+ Coverage   88.44%   88.52%   +0.07%     
==========================================
  Files          78       78              
  Lines       10691    10713      +22     
==========================================
+ Hits         9456     9484      +28     
+ Misses       1235     1229       -6     
Flag Coverage Δ
unittests 88.52% <38.77%> (+0.07%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

…tempts_allowed

no functionality changes should be done.

Also removed some stale TODO comments -- DownloadDirectory already downloads
into a file with ".dandidownload" instead of original filename. And we do
report progress. ETA should be estimated outside IMHO.
@yarikoptic yarikoptic added the release Create a release when this pr is merged label Nov 26, 2024
@yarikoptic yarikoptic merged commit 433297b into master Nov 26, 2024
23 of 25 checks passed
@yarikoptic yarikoptic deleted the enh-digest branch November 26, 2024 04:11
Copy link

🚀 PR was released in 0.65.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Increment the minor version when merged release Create a release when this pr is merged released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add checksumming of the full download in case of retries
2 participants