summaryrefslogtreecommitdiff
path: root/distbuild
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2014-05-08 16:32:40 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-05-08 16:32:40 +0000
commitf50267b8056076623b694a1dfde00611e6eeab2a (patch)
treeb74b0cfc41c68e7b5b39be78056f3a41306eb88f /distbuild
parentccd99277c0c7ab0d272e540a47380cea9f03d3b6 (diff)
downloadmorph-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