rust-fuzz / cargo-fuzz

Command line helpers for fuzzing
https://rust-fuzz.github.io/book/cargo-fuzz.html
Apache License 2.0
1.55k stars 109 forks source link

Annotate `coverage`, `artifacts` and `corpus` dirs with CACHEDIR.TAG #369

Closed totikom closed 7 months ago

totikom commented 8 months ago

CACHEDIR.TAG is a widely adopted way to mark directories, that should be excluded from backups, archives and so on. IMO, coverage, artifacts and corpus directories should not be backed up, so this change is beneficial for setups with automatic backups.

totikom commented 8 months ago

CI is failing because of this two tests: image But on my machine they are also failing on main branch. Can someone verify, if everything is ok with this tests on main?

Shnatsel commented 7 months ago

Artifacts are especially valuable and have very low size (~kilobytes), so I see no reason to exclude them from backups.

I also tend to back up my corpora because they took days of compute to acquire, while only taking up single-digit numbers of megabytes even for large corpora (1000+ files).

If you are looking to reduce the size of backups, a much better way to approach it would be excluding the target directory, which is both reproducible without investing days of compute, and is multiple orders of magnitude larger.

Since this change is not clearly beneficial, and none of the maintainers can dogfood it and notice if something breaks, I'm going to go ahead and close this.