diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-05-08 16:32:40 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-05-08 16:32:40 +0000 |
commit | f50267b8056076623b694a1dfde00611e6eeab2a (patch) | |
tree | b74b0cfc41c68e7b5b39be78056f3a41306eb88f /distbuild | |
parent | ccd99277c0c7ab0d272e540a47380cea9f03d3b6 (diff) | |
download | morph-sam/validation.tar.gz |
Add command to validate the local artifact cachesam/validation
This tests the checksums of artifacts and tests any unpacked chunks.
The unpacked chunks are tested by turning them back into tarfiles and
calculating a checksum, which we can rely on being identical to the
chunk artifact in the artifact cache if there is no corruption. That is
pretty cool!
This code doesn't work because the zlib.adler32() code can't be used as
a rolling checksum. I'm going to switch to using hashlib.md5() which
should still be fast enough. Alternately we could go for sha256 right
away, so that when we /do/ have bit-for-bit reproducibility from source,
we can say that everything is totally secure.
Diffstat (limited to 'distbuild')
0 files changed, 0 insertions, 0 deletions