-
Notifications
You must be signed in to change notification settings - Fork 100
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
feat: add optional sha256 to example manifest #446
Conversation
this can prevent upcoming benchmarking tool from pounding relentlessly on activitysim_resources repo, by caching the large file downloads
this is a nice improvement. @jpn-- can we add checksums to each example posted in activitysim_resources? |
@jpn-- please PR to develop when ready |
publish v1.0.3
this can prevent upcoming benchmarking tool from pounding relentlessly on activitysim_resources repo, by caching the large file downloads
…ysim into checksum-downloads # Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
This PR is now ready to merge into |
Looks good. @jpn-- can you update the docs, probably the development and/or example rst pages, with some notes about the checksums and how to update them? Thanks. |
@jpn-- to update documentation |
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.
see comments in issue
@bstabler I've added some docs on checksums. If you agree they are sufficient this is ready to merge. |
looks good, thanks |
This change allows an optional sha256 checksum to be added in the examples manifest. If the file to be downloaded already exists locally in the correct place and matches the checksum, we no longer re-download the file, just use the copy we already have. This can prevent upcoming benchmarking tool #439 from pounding relentlessly on activitysim_resources repo, by caching the large file downloads. (Added bonus, if we do need to download we can validate the checksum after the download and make sure the file is what was expected.)