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

Checksum -> Bundle -> Unzip -> Checksum #211

Open
blinkdog opened this issue Oct 12, 2021 · 2 comments
Open

Checksum -> Bundle -> Unzip -> Checksum #211

blinkdog opened this issue Oct 12, 2021 · 2 comments
Assignees

Comments

@blinkdog
Copy link
Contributor

Run checksums on files unzipped from bundles

@blinkdog
Copy link
Contributor Author

blinkdog commented Oct 31, 2022

@dsschult mentioned a Python function on Slack that can help:

[2:51 PM](https://icecube-spno.slack.com/archives/D0AL1LXS6/p1667245875409479)
that's promising.  I'd assume it would error 1 or something, to indicate a problem
New
[2:54](https://icecube-spno.slack.com/archives/D0AL1LXS6/p1667246060058929)
https://docs.python.org/3/library/zipfile.html#zipfile.ZipFile.testzip if you want the python way
[2:54](https://icecube-spno.slack.com/archives/D0AL1LXS6/p1667246081769949)
probably should call that in the bundler, just after we've created it

https://docs.python.org/3/library/zipfile.html#zipfile.ZipFile.testzip

@blinkdog blinkdog self-assigned this Oct 31, 2022
@blinkdog
Copy link
Contributor Author

When unzip -t (verify files in the zip) fails, it returns an error code of 2.
unzip-t-failure-is-2.txt

This can be helpful in verifying zips without having to unpack the 100 GB of data to the disk in the process.

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

No branches or pull requests

1 participant