Open awgymer opened 6 months ago
For wittyer the code in the stub test actually looks like this:
touch ${prefix}.json
echo "" | gzip > ${prefix}.vcf.gz
touch ${prefix}.vcf.gz.tbi
When I tested the module using touch to create the .gz.tbi
file did not lead to errors when asserting { assert snapshot(process.out).match() }
, so it seems to me that you would only need to search for modules where the file extension ends with .gz
.
The list was generated before I had tested .gz.*
type files. It does indeed seem that these are not an issue for nf-test
(I think it does a naive check for .gz
file extension before it tries opening as a gzipped file?).
I've revised the list with a regex that excludes such files.
Have you checked the docs?
Description of the bug
Per this slack thread it seems that empty
.gz
files generated by simplytouch <filename>.gz
break the snapshot functionality ofnf-test
by causing anEOFException
because the files are not actually compressed.Per this comment a fix is to replace the
touch
command withecho "" | gzip > <filename>.gz
.A
git grep -cP "touch .*\.gz(\s+.*)*$"
identifies the following 71 modules as using this pattern: