-
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
download: more consistent and exhaustive logging, new DANDI_DEVEL_AGGRESSIVE_RETRY
mode, respect (?) Retry-After
#1509
base: master
Are you sure you want to change the base?
Commits on Sep 27, 2024
-
ENH: log dandischema version and ensure we log (consistently) path fo…
…r log messages in download
Configuration menu - View commit details
-
Copy full SHA for c784048 - Browse repository at this point
Copy the full SHA c784048View commit details -
Log download directory path and also either we are entering __exit__ …
…with or without exception etc
Configuration menu - View commit details
-
Copy full SHA for 65144ae - Browse repository at this point
Copy the full SHA 65144aeView commit details -
Fix typing check - move assert before use of fp.tell() + shorten the …
…message while at it
Configuration menu - View commit details
-
Copy full SHA for cf3fc19 - Browse repository at this point
Copy the full SHA cf3fc19View commit details -
Add unit-testing for DownloadDirectory to ensure expected operation
Also shortened the log line to not include traceback
Configuration menu - View commit details
-
Copy full SHA for 9ccd782 - Browse repository at this point
Copy the full SHA 9ccd782View commit details -
Add a check that DownloadDirectory moves the file instead of copying …
…(via inode matching)
Configuration menu - View commit details
-
Copy full SHA for 390a657 - Browse repository at this point
Copy the full SHA 390a657View commit details -
Move helper function to module level so it could be pickled
not sure why was not failing for me locally but fails on CI
Configuration menu - View commit details
-
Copy full SHA for 0e2134e - Browse repository at this point
Copy the full SHA 0e2134eView commit details -
Add handling of PermissionError on Windows for an existing directory
That is my guess for what is happening in ________________________ test_DownloadDirectory_basic _________________________ dandi\tests\test_download.py:1048: in test_DownloadDirectory_basic with DownloadDirectory(tmp_path, digests={}) as dl: dandi\download.py:889: in __exit__ self.writefile.replace(self.filepath) C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\pathlib.py:1247: in replace self._accessor.replace(self, target) E PermissionError: [WinError 5] Access is denied: 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\test_DownloadDirectory_basic0.dandidownload\\file' -> 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\test_DownloadDirectory_basic0'
Configuration menu - View commit details
-
Copy full SHA for 519ea3a - Browse repository at this point
Copy the full SHA 519ea3aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3eaef37 - Browse repository at this point
Copy the full SHA 3eaef37View commit details -
Very unlikely but it could be that directory already existed but without checksum file for some reason.
Configuration menu - View commit details
-
Copy full SHA for c9b4dfe - Browse repository at this point
Copy the full SHA c9b4dfeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 945acaa - Browse repository at this point
Copy the full SHA 945acaaView commit details -
RF+ENH: also report requests and urllib3 versions, do not prefix with v
no v prefix since is not providing any information on top; sorting for deterministic order
Configuration menu - View commit details
-
Copy full SHA for a4997d4 - Browse repository at this point
Copy the full SHA a4997d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d9fd06 - Browse repository at this point
Copy the full SHA 4d9fd06View commit details -
Demand urllib3 to be no less than 2.0.0 in which enforce_content_leng…
…th was set to default to True
Configuration menu - View commit details
-
Copy full SHA for 4d0dad3 - Browse repository at this point
Copy the full SHA 4d0dad3View commit details -
ENH: respect/log separately Retry-After + support DANDI_DEVEL_AGGRESS…
…IVE_RETRY mode This is all to address that odd case with 000026 where connection keeps interrupting. Unclear why so adding more specific cases handling and allowing for such an aggressive retrying where we would proceed as long as we are getting something (but sleep would also increase)
Configuration menu - View commit details
-
Copy full SHA for bfb73c0 - Browse repository at this point
Copy the full SHA bfb73c0View commit details