Once upon a time, Zbigniew Jędrzejewski-Szmek zbyszek@in.waw.pl said:
Here, OTOH, I'd just say that the tarball generated from a git clone should be bit-identical to the tar.gz pulled in by the spec.
That might change with zlib-ng... expecting compressed data to match is probably not a reasonable expectation, as there are several that can generate slightly different output at the same level but with other different options (such as multiple threads).
I think it's probably more reasonable to say the compressed file should pass a test by the compressor (e.g. gzip -t) and the uncompressed data should match.