From c40f980331ab874d36db4094d4ae03d209d2445b Mon Sep 17 00:00:00 2001 From: Jonathan Metzman Date: Thu, 12 Sep 2024 13:50:41 -0400 Subject: [PATCH] Fix stats uploading Fixes: https://github.com/google/clusterfuzz/issues/4217 --- src/clusterfuzz/_internal/bot/tasks/utasks/fuzz_task.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/clusterfuzz/_internal/bot/tasks/utasks/fuzz_task.py b/src/clusterfuzz/_internal/bot/tasks/utasks/fuzz_task.py index f6763f6b2f..aeb7ea20ef 100644 --- a/src/clusterfuzz/_internal/bot/tasks/utasks/fuzz_task.py +++ b/src/clusterfuzz/_internal/bot/tasks/utasks/fuzz_task.py @@ -859,7 +859,9 @@ def postprocess_process_crashes(uworker_input: uworker_msg_pb2.Input, # Artificial delay to throttle appengine updates. time.sleep(1) - upload_job_run_stats(fully_qualified_fuzzer_name, uworker_input.job_type, + # If there is no fuzz_target, this will be None. + stats_fuzzer_name = fuzz_target or fully_qualified_fuzzer_name + upload_job_run_stats(stats_fuzzer_name, uworker_input.job_type, fuzz_task_output.crash_revision, fuzz_task_output.job_run_timestamp, new_crash_count, known_crash_count, fuzz_task_output.testcases_executed,