0

Fuzz coverage: use fewer profraw files.

We were previously keeping up to 200 .profraw files for each fuzzer, and
although we deleted them soon after, that appeared to be enough to fill
up the bots. Let's try keeping fewer.

Bug: 1498406
Change-Id: I2a7f97cad505553d766cd0bb68830db7c82d6c8f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5038698
Auto-Submit: Adrian Taylor <adetaylor@chromium.org>
Commit-Queue: Paul Semel <paulsemel@chromium.org>
Reviewed-by: Paul Semel <paulsemel@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1226160}
This commit is contained in:
Adrian Taylor
2023-11-17 16:44:30 +00:00
committed by Chromium LUCI CQ
parent 43dcf96ec4
commit 897eb96b62

@ -110,13 +110,14 @@ def _run_fuzzer_target(args):
if count > 1000:
print("Skipping remaining test cases - >1000 tried")
break
# And if we've got 200 valid coverage files, assume this is a
# And if we've got 10 valid coverage files, assume this is a
# reasonable approximation of the total coverage. This is partly
# to ensure the profdata command line isn't too huge and partly
# to reduce processing time to something reasonable.
if len(valid_profraws) > 200:
# to ensure the profdata command line isn't too huge, partly
# to reduce processing time to something reasonable, and partly
# because profraw files are huge and can fill up bot disk space.
if len(valid_profraws) > 10:
print(
"Skipping remaining individual test cases, >200 valid profiles recorded."
"Skipping remaining individual test cases, >10 valid profiles recorded."
)
break
if len(valid_profraws) == 0: